diff options
author | Arne Döring <arne.doering@gmx.net> | 2019-05-29 22:21:51 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-29 22:21:51 +0200 |
commit | 5b27b263fd76484fa6251ccd29520c2764b55818 (patch) | |
tree | 0629164266d4183ace4503d77f0d2a999fc9693f /lib/system | |
parent | eb471acffb02ebb14ada8483f8c8043a1c8e8210 (diff) | |
download | Nim-5b27b263fd76484fa6251ccd29520c2764b55818.tar.gz |
Remove immediate pragma (#11308)
* remove immediate from tests * remove immediate from the compiler
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!".} |