mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Forgot to #ifdef JS_THREADSAFE last change (no effect on Mozilla build; fixes broken standalone/single-threaded JS builds, sanity-sr=shaver).
This commit is contained in:
parent
03f9222af7
commit
3f8594ea0e
@ -167,6 +167,7 @@ js_DestroyContext(JSContext *cx, JSGCMode gcmode)
|
||||
JS_UNLOCK_GC(rt);
|
||||
|
||||
if (last) {
|
||||
#ifdef JS_THREADSAFE
|
||||
/*
|
||||
* If cx is not in a request already, begin one now so that we wait
|
||||
* for any racing GC started on a not-last context to finish, before
|
||||
@ -179,6 +180,7 @@ js_DestroyContext(JSContext *cx, JSGCMode gcmode)
|
||||
*/
|
||||
if (cx->requestDepth == 0)
|
||||
JS_BeginRequest(cx);
|
||||
#endif
|
||||
|
||||
/* Unpin all pinned atoms before final GC. */
|
||||
js_UnpinPinnedAtoms(&rt->atomState);
|
||||
|
Loading…
Reference in New Issue
Block a user