summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-12 08:47:31 +0200
committerAraq <rumpf_a@web.de>2014-08-12 08:47:31 +0200
commitb8ce3a41753fa3aeeeee1e91401e9909d63cfbe7 (patch)
tree1ee182fb5ae5f9bbf8b2980131815f3e35b59f81 /lib/system.nim
parent05dbba0e3899d86a4f7dbc6e81b1b5f9771aa2e0 (diff)
downloadNim-b8ce3a41753fa3aeeeee1e91401e9909d63cfbe7.tar.gz
fixes 'gcsafe'
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 03275b8fa..66eda5741 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1997,16 +1997,16 @@ when not defined(nimrodVM) and hostOS != "standalone":
     ## returns an informative string about the GC's activity. This may be useful
     ## for tweaking.
     
-  proc GC_ref*[T](x: ref T) {.magic: "GCref".}
-  proc GC_ref*[T](x: seq[T]) {.magic: "GCref".}
-  proc GC_ref*(x: string) {.magic: "GCref".}
+  proc GC_ref*[T](x: ref T) {.magic: "GCref", gcsafe.}
+  proc GC_ref*[T](x: seq[T]) {.magic: "GCref", gcsafe.}
+  proc GC_ref*(x: string) {.magic: "GCref", gcsafe.}
     ## marks the object `x` as referenced, so that it will not be freed until
     ## it is unmarked via `GC_unref`. If called n-times for the same object `x`,
     ## n calls to `GC_unref` are needed to unmark `x`. 
     
-  proc GC_unref*[T](x: ref T) {.magic: "GCunref".}
-  proc GC_unref*[T](x: seq[T]) {.magic: "GCunref".}
-  proc GC_unref*(x: string) {.magic: "GCunref".}
+  proc GC_unref*[T](x: ref T) {.magic: "GCunref", gcsafe.}
+  proc GC_unref*[T](x: seq[T]) {.magic: "GCunref", gcsafe.}
+  proc GC_unref*(x: string) {.magic: "GCunref", gcsafe.}
     ## see the documentation of `GC_ref`.
 
 template accumulateResult*(iter: expr) =