From 9e62876647e4b7d5c31854abf16596b76cd03b4a Mon Sep 17 00:00:00 2001 From: genotrance Date: Fri, 11 Oct 2019 00:39:18 -0500 Subject: [PATCH] Fixes #12286 - require explicit disabling of boehm interior pointer checking (#12406) [backport] --- lib/system/mmdisp.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index ae30dbc733..cba88104d4 100644 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -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()