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

(cherry picked from commit 9e62876647)
This commit is contained in:
genotrance
2019-10-11 00:39:18 -05:00
committed by narimiran
parent 63d710f5a1
commit 8f1dea614e

View File

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