Backed out changeset 3e3d2d8cc70f (bug 492483 - fixing !JS_THREADSAFE build failure.) to try to fix Tshutdown regression.

This commit is contained in:
Peter Van der Beken 2009-05-15 14:35:14 +02:00
Родитель 8cfde3fc8e
Коммит 5183c4b1f3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -582,7 +582,6 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode)
JSContextCallback cxCallback;
JSBool last;
rt = cx->runtime;
#ifdef JS_THREADSAFE
/*
* For API compatibility we allow to destroy contexts without a thread in
@ -592,9 +591,10 @@ js_DestroyContext(JSContext *cx, JSDestroyContextMode mode)
JS_ASSERT(cx->thread && CURRENT_THREAD_IS_ME(cx->thread));
if (!cx->thread)
JS_SetContextThread(cx);
#endif
rt = cx->runtime;
JS_ASSERT_IF(rt->gcRunning, cx->outstandingRequests == 0);
#endif
if (mode != JSDCM_NEW_FAILED) {
cxCallback = rt->cxCallback;