This commit is contained in:
Eugene Kabanov 2017-03-23 17:13:38 +02:00 • committed by Andreas Rumpf
commit 254fbcc548
4 changed files with 84 additions and 19 deletions

View file

@ -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.}