summary refs log tree commit diff stats
path: root/lib/system/gc.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-08-11 18:48:59 +0200
committerAraq <rumpf_a@web.de>2013-08-11 18:48:59 +0200
commit1633e22aec7a4a932a72469d6728d7f5e25d1805 (patch)
treebf43d7e6b40ae7c263f9d58b57df3883fee7793a /lib/system/gc.nim
parentd18c82a9ef1647c6f56e393df959ed5ec370e77c (diff)
parentdb027faf38a47365988962b25086231e6791bb35 (diff)
downloadNim-1633e22aec7a4a932a72469d6728d7f5e25d1805.tar.gz
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib/system/gc.nim')
-rw-r--r--lib/system/gc.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index 0ab5f4d94..cb264fe0d 100644
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -90,6 +90,8 @@ template gcAssert(cond: bool, msg: string) =
   when defined(useGcAssert):
     if not cond:
       echo "[GCASSERT] ", msg
+      GC_disable()
+      writeStackTrace()
       quit 1
 
 proc addZCT(s: var TCellSeq, c: PCell) {.noinline.} =