| Submitter | Ian Taylor |
|---|---|
| Date | Feb. 10, 2012, 3:52 p.m. |
| Message ID | <mcrpqdmn0s8.fsf@dhcp-172-18-216-180.mtv.corp.google.com> |
| Download | mbox | patch |
| Permalink | /patch/140678/ |
| State | New |
| Headers | show |
Comments
Patch
diff -r 1f6696441eeb libgo/runtime/mgc0.c --- a/libgo/runtime/mgc0.c Fri Feb 10 06:07:07 2012 -0800 +++ b/libgo/runtime/mgc0.c Fri Feb 10 07:50:20 2012 -0800 @@ -936,6 +936,10 @@ const byte *p; bool extra; + // Make sure all registers are saved on stack so that + // scanstack sees them. + __builtin_unwind_init(); + // The gc is turned off (via enablegc) until // the bootstrap has completed. // Also, malloc gets called in the guts