summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-08-13 06:37:37 +0200
committerGitHub <noreply@github.com>2019-08-13 06:37:37 +0200
commit433613e2675064583ee5055d47aa89a43184e7f2 (patch)
tree5bf9c7abfc77ab2661a5fec98201dce06da9ea12 /lib/core
parent322ce1872fd13e7b3029db800727ecdc886ad8a3 (diff)
downloadNim-433613e2675064583ee5055d47aa89a43184e7f2.tar.gz
fixes #11844 (#11935)
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/allocators.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/core/allocators.nim b/lib/core/allocators.nim
index 962a99fd6..259319ca2 100644
--- a/lib/core/allocators.nim
+++ b/lib/core/allocators.nim
@@ -13,10 +13,10 @@ type
     ZerosMem    ## the allocator always zeros the memory on an allocation
   Allocator* = ptr AllocatorObj
   AllocatorObj* {.inheritable, compilerproc.} = object
-    alloc*: proc (a: Allocator; size: int; alignment: int = 8): pointer {.nimcall, raises: [], tags: [].}
-    dealloc*: proc (a: Allocator; p: pointer; size: int) {.nimcall, raises: [], tags: [].}
-    realloc*: proc (a: Allocator; p: pointer; oldSize, newSize: int): pointer {.nimcall, raises: [], tags: [].}
-    deallocAll*: proc (a: Allocator) {.nimcall, raises: [], tags: [].}
+    alloc*: proc (a: Allocator; size: int; alignment: int = 8): pointer {.nimcall, raises: [], tags: [], gcsafe.}
+    dealloc*: proc (a: Allocator; p: pointer; size: int) {.nimcall, raises: [], tags: [], gcsafe.}
+    realloc*: proc (a: Allocator; p: pointer; oldSize, newSize: int): pointer {.nimcall, raises: [], tags: [], gcsafe.}
+    deallocAll*: proc (a: Allocator) {.nimcall, raises: [], tags: [], gcsafe.}
     flags*: set[AllocatorFlag]
     name*: cstring
     allocCount: int