runtime: Save all registers on stack for GC scan.
From-SVN: r184098
This commit is contained in:
parent
a8fc985552
commit
c91e24907b
|
@ -936,6 +936,10 @@ runtime_gc(int32 force)
|
||||||
const byte *p;
|
const byte *p;
|
||||||
bool extra;
|
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 gc is turned off (via enablegc) until
|
||||||
// the bootstrap has completed.
|
// the bootstrap has completed.
|
||||||
// Also, malloc gets called in the guts
|
// Also, malloc gets called in the guts
|
||||||
|
|
Loading…
Reference in New Issue