initialize traceMonitor in threadsafe builds

This commit is contained in:
shaver@mozilla.org 2008-07-12 09:57:23 -04:00
parent d7595f89c6
commit d21c77279f

View File

@ -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.