Skip to content

Commit 2ae2a3a

Browse files
committed
Adding jl_main_module as root for MMTk
1 parent 304fb39 commit 2ae2a3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gc-mmtk.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@ JL_DLLEXPORT void jl_gc_scan_vm_specific_roots(RootsWorkClosure* closure)
506506
// add module
507507
add_node_to_roots_buffer(closure, &buf, &len, jl_main_module);
508508

509+
// add global_method_table
510+
add_node_to_roots_buffer(closure, &buf, &len, jl_method_table);
511+
509512
// buildin values
510513
add_node_to_roots_buffer(closure, &buf, &len, jl_an_empty_vec_any);
511514
add_node_to_roots_buffer(closure, &buf, &len, jl_module_init_order);

0 commit comments

Comments
 (0)