Skip to content

Commit 63483e7

Browse files
committed
ZJIT: Actually call rb_zjit_root_update_references()
Previously unused.
1 parent 6ea7557 commit 63483e7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

depend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5797,6 +5797,7 @@ gc.$(OBJEXT): {$(VPATH)}vm_debug.h
57975797
gc.$(OBJEXT): {$(VPATH)}vm_opts.h
57985798
gc.$(OBJEXT): {$(VPATH)}vm_sync.h
57995799
gc.$(OBJEXT): {$(VPATH)}yjit.h
5800+
gc.$(OBJEXT): {$(VPATH)}zjit.h
58005801
goruby.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
58015802
goruby.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
58025803
goruby.$(OBJEXT): $(CCAN_DIR)/list/list.h

gc.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
#include "vm_callinfo.h"
128128
#include "ractor_core.h"
129129
#include "yjit.h"
130+
#include "zjit.h"
130131

131132
#include "builtin.h"
132133
#include "shape.h"
@@ -4106,6 +4107,14 @@ rb_gc_update_vm_references(void *objspace)
41064107
rb_yjit_root_update_references();
41074108
}
41084109
#endif
4110+
4111+
#if USE_ZJIT
4112+
void rb_zjit_root_update_references(void); // in Rust
4113+
4114+
if (rb_zjit_enabled_p) {
4115+
rb_zjit_root_update_references();
4116+
}
4117+
#endif
41094118
}
41104119

41114120
void

0 commit comments

Comments
 (0)