Fixes #12286 - require explicit disabling of boehm interior pointer checking (#12406) [backport]

This commit is contained in:
genotrance 2019-10-11 00:39:18 -05:00 • committed by Andreas Rumpf
commit 9e62876647

View file

@ -152,7 +152,9 @@ when defined(boehmgc):
proc nimGC_setStackBottom(theStackBottom: pointer) = discard proc nimGC_setStackBottom(theStackBottom: pointer) = discard
proc initGC() = proc initGC() =
boehmGC_set_all_interior_pointers(0) when defined(boehmNoIntPtr):
# See #12286
boehmGC_set_all_interior_pointers(0)
boehmGCinit() boehmGCinit()
when hasThreadSupport: when hasThreadSupport:
boehmGC_allow_register_threads() boehmGC_allow_register_threads()