mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 03:54:35 +00:00
bug 492483 - fixing !JS_THREADSAFE build failure. r=mrbkap.
This commit is contained in:
parent
8443f4d14c
commit
d4158c6c45
@ -582,6 +582,7 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode)
|
|||||||
JSContextCallback cxCallback;
|
JSContextCallback cxCallback;
|
||||||
JSBool last;
|
JSBool last;
|
||||||
|
|
||||||
|
rt = cx->runtime;
|
||||||
#ifdef JS_THREADSAFE
|
#ifdef JS_THREADSAFE
|
||||||
/*
|
/*
|
||||||
* For API compatibility we allow to destroy contexts without a thread in
|
* For API compatibility we allow to destroy contexts without a thread in
|
||||||
@ -591,10 +592,9 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode)
|
|||||||
JS_ASSERT(cx->thread && CURRENT_THREAD_IS_ME(cx->thread));
|
JS_ASSERT(cx->thread && CURRENT_THREAD_IS_ME(cx->thread));
|
||||||
if (!cx->thread)
|
if (!cx->thread)
|
||||||
JS_SetContextThread(cx);
|
JS_SetContextThread(cx);
|
||||||
#endif
|
|
||||||
rt = cx->runtime;
|
|
||||||
|
|
||||||
JS_ASSERT_IF(rt->gcRunning, cx->outstandingRequests == 0);
|
JS_ASSERT_IF(rt->gcRunning, cx->outstandingRequests == 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (mode != JSDCM_NEW_FAILED) {
|
if (mode != JSDCM_NEW_FAILED) {
|
||||||
cxCallback = rt->cxCallback;
|
cxCallback = rt->cxCallback;
|
||||||
|
Loading…
Reference in New Issue
Block a user