diff options
author | Araq <rumpf_a@web.de> | 2011-11-02 00:55:29 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-02 00:55:29 +0100 |
commit | 351e89e705c05bd9968010ab1af1674e7eda0d59 (patch) | |
tree | ebdbb14eba617b56c0a65df891889ca165c0576f /lib/system | |
parent | 47f523cfb8b5d430d1105c608440200950183bb1 (diff) | |
download | Nim-351e89e705c05bd9968010ab1af1674e7eda0d59.tar.gz |
better code generation for constant aggregates
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/gc.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim index 9e0e88612..293c6eeea 100755 --- a/lib/system/gc.nim +++ b/lib/system/gc.nim @@ -63,10 +63,11 @@ type region: TMemRegion # garbage collected region stat: TGcStat -var - gch {.rtlThreadVar.}: TGcHeap +when not defined(useNimRtl): + var + gch {.rtlThreadVar.}: TGcHeap -InstantiateForRegion(gch.region) + InstantiateForRegion(gch.region) proc acquire(gch: var TGcHeap) {.inline.} = when hasThreadSupport and hasSharedHeap: |