summary refs log tree commit diff stats
path: root/lib/system/alloc.nim
diff options
context:
space:
mode:
authorEugene Kabanov <ka@hardcore.kiev.ua>2017-03-23 17:13:38 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-03-23 16:13:38 +0100
commit254fbcc548247865cf15200a200436024258e647 (patch)
treed72374034135985df44bb7fb1f12327a1cde6079 /lib/system/alloc.nim
parentd508303fadc65bacbf15ada83da37660f5552107 (diff)
downloadNim-254fbcc548247865cf15200a200436024258e647.tar.gz
Fixes #4719. (#5585)
Diffstat (limited to 'lib/system/alloc.nim')
-rw-r--r--lib/system/alloc.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim
index cde17bead..edd8ececb 100644
--- a/lib/system/alloc.nim
+++ b/lib/system/alloc.nim
@@ -763,6 +763,8 @@ proc getOccupiedMem(a: MemRegion): int {.inline.} =
 # ---------------------- thread memory region -------------------------------
 
 template instantiateForRegion(allocator: untyped) =
+  {.push stackTrace: off.}
+
   when defined(fulldebug):
     proc interiorAllocatedPtr*(p: pointer): pointer =
       result = interiorAllocatedPtr(allocator, p)
@@ -850,5 +852,6 @@ template instantiateForRegion(allocator: untyped) =
 
     proc getOccupiedSharedMem(): int =
       sharedMemStatsShared(sharedHeap.currMem - sharedHeap.freeMem)
+  {.pop.}
 
 {.pop.}