runtime: Save all registers on stack for GC scan.

From-SVN: r184098
This commit is contained in:
Ian Lance Taylor 2012-02-10 15:52:37 +00:00
parent a8fc985552
commit c91e24907b
1 changed files with 4 additions and 0 deletions

View File

@ -936,6 +936,10 @@ runtime_gc(int32 force)
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