Revert "bugfix: emulated thread vars used in combination with the mark & sweep GC"
This reverts commit 420789c278.
This commit is contained in:
parent
ede5ce9ac1
commit
75c586bbe1
3 changed files with 4 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue