GC: enable precise global/thread local storage tracing

This commit is contained in:
Araq 2018-01-15 17:41:05 +01:00
commit f1089db175
4 changed files with 47 additions and 63 deletions

View file

@ -401,6 +401,7 @@ var
globalMarkers: array[0.. 3499, GlobalMarkerProc]
threadLocalMarkersLen: int
threadLocalMarkers: array[0.. 3499, GlobalMarkerProc]
gHeapidGenerator: int
proc nimRegisterGlobalMarker(markerProc: GlobalMarkerProc) {.compilerProc.} =
if globalMarkersLen <= high(globalMarkers):