Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68)

Unified Diff: libgo/runtime/panic.c

Issue 153950043: code review 153950043: runtime: Check callers in can_recover if return address... (Closed)
Patch Set: 50bdfe92960f4b78fe2ed3c032cdad64c0b259c1 https://iant%40golang.org@code.google.com/p/gofrontend/ Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libgo/runtime/go-recover.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libgo/runtime/panic.c
===================================================================
--- a/libgo/runtime/panic.c
+++ b/libgo/runtime/panic.c
@@ -49,8 +49,10 @@
}
// Run all deferred functions for the current goroutine.
+// This is noinline for go_can_recover.
+static void __go_rundefer (void) __attribute__ ((noinline));
static void
-rundefer(void)
+__go_rundefer(void)
{
G *g;
Defer *d;
@@ -219,7 +221,7 @@
void
runtime_Goexit(void)
{
- rundefer();
+ __go_rundefer();
runtime_goexit();
}
« no previous file with comments | « libgo/runtime/go-recover.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b