Revert "bugfix: emulated thread vars used in combination with the mark & sweep GC"

This reverts commit 420789c278.
This commit is contained in:
Araq 2013-05-27 23:20:20 +02:00
commit 75c586bbe1
3 changed files with 4 additions and 11 deletions

View file

@ -12,10 +12,10 @@
# included from cgen.nim
proc emulatedThreadVars(): bool =
proc emulatedThreadVars(): bool {.inline.} =
result = {optThreads, optTlsEmulation} <= gGlobalOptions
proc accessThreadLocalVar(p: BProc, s: PSym) =
proc AccessThreadLocalVar(p: BProc, s: PSym) =
if emulatedThreadVars() and not p.ThreadVarAccessed:
p.ThreadVarAccessed = true
p.module.usesThreadVars = true