cpu.x86: save context before calling new_context() since it can trigger GC (bug reported by Sascha Matzke)

Slava Pestov 2010-07-30 01:07:31 -04:00
parent a86981cbde
commit c1ab48f44b
2 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,7 @@ IN: bootstrap.x86
: jit-start-context ( -- )
! Create the new context in return-reg
jit-load-vm
jit-save-context
ESP [] vm-reg MOV
"new_context" jit-call

View File

@ -270,6 +270,7 @@ IN: bootstrap.x86
: jit-start-context ( -- )
! Create the new context in return-reg
jit-save-context
arg1 vm-reg MOV
"new_context" jit-call