@@ -7,6 +7,7 @@ $if !no_gc_threads ? {
77$if use_bundled_libgc ? {
88 #flag -DGC_BUILTIN_ATOMIC=1
99 #flag -I @VEXEROOT/thirdparty/libgc/include
10+ #flag -DALL_INTERIOR_POINTERS=1
1011 #flag @VEXEROOT/thirdparty/libgc/gc.o
1112}
1213
@@ -23,6 +24,7 @@ $if dynamic_boehm ? {
2324 #flag -DGC_WIN32_THREADS=1
2425 #flag -DGC_BUILTIN_ATOMIC=1
2526 #flag -I @VEXEROOT/thirdparty/libgc/include
27+ #flag -DALL_INTERIOR_POINTERS=1
2628 #flag @VEXEROOT/thirdparty/libgc/gc.o
2729 }
2830 } $else {
@@ -48,6 +50,7 @@ $if dynamic_boehm ? {
4850 #flag -I @VEXEROOT/thirdparty/libgc/include
4951 $if (prod && ! tinyc && ! debug) || ! (amd64 || arm64 || i386 || arm32 || rv64 ) {
5052 // TODO: replace the architecture check with a `!$exists("@VEXEROOT/thirdparty/tcc/lib/libgc.a")` comptime call
53+ #flag -DALL_INTERIOR_POINTERS=1
5154 #flag @VEXEROOT/thirdparty/libgc/gc.o
5255 } $else {
5356 $if ! use_bundled_libgc ? {
@@ -95,6 +98,7 @@ $if dynamic_boehm ? {
9598 #flag -DGC_BUILTIN_ATOMIC=1
9699 $if ! tinyc {
97100 #flag -I @VEXEROOT/thirdparty/libgc/include
101+ #flag -DALL_INTERIOR_POINTERS=1
98102 #flag @VEXEROOT/thirdparty/libgc/gc.o
99103 }
100104 $if tinyc {
@@ -123,10 +127,12 @@ $if dynamic_boehm ? {
123127 #flag -I @VEXEROOT/thirdparty/libatomic_ops
124128
125129 #flag -I @VEXEROOT/thirdparty/libgc/include
130+ #flag -DALL_INTERIOR_POINTERS=1
126131 #flag @VEXEROOT/thirdparty/libgc/gc.o
127132 } $else {
128133 #flag -DGC_BUILTIN_ATOMIC=1
129134 #flag -I @VEXEROOT/thirdparty/libgc/include
135+ #flag -DALL_INTERIOR_POINTERS=1
130136 #flag @VEXEROOT/thirdparty/libgc/gc.o
131137 }
132138 } $else $if $pkgconfig ('bdw-gc' ) {
@@ -180,7 +186,7 @@ fn C.GC_set_no_dls(i32)
180186// protect memory block from being freed before this call
181187fn C.GC_reachable_here (voidptr )
182188
183- // gc_is_enabled() returns true, if the GC is enabled at runtime.
189+ // gc_is_enabled returns true, if the GC is enabled at runtime.
184190// See also gc_disable() and gc_enable().
185191pub fn gc_is_enabled () bool {
186192 return 0 == C.GC_is_disabled ()
0 commit comments