diff options
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/alloc.nim | 3 | ||||
-rw-r--r-- | lib/system/inclrtl.nim | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index 47e3318fd..1de9258d6 100644 --- a/lib/system/alloc.nim +++ b/lib/system/alloc.nim @@ -1063,8 +1063,7 @@ template instantiateForRegion(allocator: untyped) = result = realloc(p, newSize) when hasThreadSupport: - - template sharedMemStatsShared(v: int) {.immediate.} = + template sharedMemStatsShared(v: int) = acquireSys(heapLock) result = v releaseSys(heapLock) diff --git a/lib/system/inclrtl.nim b/lib/system/inclrtl.nim index f9e6754ef..3caeefcbc 100644 --- a/lib/system/inclrtl.nim +++ b/lib/system/inclrtl.nim @@ -19,11 +19,6 @@ when not defined(nimNewShared): {.pragma: gcsafe.} -when not defined(nimImmediateDeprecated): - {.pragma: oldimmediate, immediate.} -else: - {.pragma: oldimmediate.} - when defined(createNimRtl): when defined(useNimRtl): {.error: "Cannot create and use nimrtl at the same time!".} |