ZJIT: Actually call rb_zjit_root_update_references()

Previously unused.
This commit is contained in:
Alan Wu 2025-09-25 16:18:15 -04:00
parent 6ea7557353
commit 63483e75b8
2 changed files with 10 additions and 0 deletions

1
depend
View File

@ -5797,6 +5797,7 @@ gc.$(OBJEXT): {$(VPATH)}vm_debug.h
gc.$(OBJEXT): {$(VPATH)}vm_opts.h
gc.$(OBJEXT): {$(VPATH)}vm_sync.h
gc.$(OBJEXT): {$(VPATH)}yjit.h
gc.$(OBJEXT): {$(VPATH)}zjit.h
goruby.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
goruby.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
goruby.$(OBJEXT): $(CCAN_DIR)/list/list.h

9
gc.c
View File

@ -127,6 +127,7 @@
#include "vm_callinfo.h"
#include "ractor_core.h"
#include "yjit.h"
#include "zjit.h"
#include "builtin.h"
#include "shape.h"
@ -4106,6 +4107,14 @@ rb_gc_update_vm_references(void *objspace)
rb_yjit_root_update_references();
}
#endif
#if USE_ZJIT
void rb_zjit_root_update_references(void); // in Rust
if (rb_zjit_enabled_p) {
rb_zjit_root_update_references();
}
#endif
}
void