mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
initialize traceMonitor in threadsafe builds
This commit is contained in:
parent
d7595f89c6
commit
d21c77279f
@ -147,6 +147,9 @@ js_GetCurrentThread(JSRuntime *rt)
|
||||
JS_INIT_CLIST(&thread->contextList);
|
||||
thread->id = js_CurrentThreadId();
|
||||
thread->gcMallocBytes = 0;
|
||||
#ifdef JS_TRACER
|
||||
memset(&thread->traceMonitor, 0, sizeof(thread->traceMonitor));
|
||||
#endif
|
||||
|
||||
/*
|
||||
* js_SetContextThread initializes the remaining fields as necessary.
|
||||
|
Loading…
Reference in New Issue
Block a user