vm: fix GC safety issue in non-optimizing compiler

db4
Slava Pestov 2009-10-18 18:57:41 -05:00
parent b5455bd9df
commit 2b63029da8
1 changed files with 3 additions and 2 deletions

View File

@ -25,9 +25,10 @@ struct jit {
emit_with(parent_vm->userenv[JIT_PUSH_IMMEDIATE],literal);
}
void word_jump(cell word) {
void word_jump(cell word_) {
gc_root<word> word(word_,parent_vm);
literal(tag_fixnum(xt_tail_pic_offset));
literal(word);
literal(word.value());
emit(parent_vm->userenv[JIT_WORD_JUMP]);
}