Threading: increase TLS size for new allocator

This commit is contained in:
Araq
2017-12-07 13:15:00 +01:00
parent 7e7ce19ec1
commit dc7a69cb66

View File

@@ -255,9 +255,9 @@ when emulatedThreadVars:
proc nimThreadVarsSize(): int {.noconv, importc: "NimThreadVarsSize".}
# we preallocate a fixed size for thread local storage, so that no heap
# allocations are needed. Currently less than 7K are used on a 64bit machine.
# allocations are needed. Currently less than 16K are used on a 64bit machine.
# We use ``float`` for proper alignment:
const nimTlsSize {.intdefine.} = 8000
const nimTlsSize {.intdefine.} = 16000
type
ThreadLocalStorage = array[0..(nimTlsSize div sizeof(float)), float]