From 46271b4716189d4b166f115e7b66c1b7830bc03c Mon Sep 17 00:00:00 2001 From: "brendan@mozilla.org" Date: Tue, 29 Jan 2008 21:12:45 -0800 Subject: [PATCH] Oops. --- js/src/jsgc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsgc.c b/js/src/jsgc.c index ef10f939829..72b969fa953 100644 --- a/js/src/jsgc.c +++ b/js/src/jsgc.c @@ -2379,10 +2379,10 @@ js_GC(JSContext *cx, JSGCInvocationKind gckind) if (callback) { JSBool ok; - if (gckind & GC_LOCK_HELD) + if (gckind != GC_LAST_DITCH) JS_UNLOCK_GC(rt); ok = callback(cx, JSGC_BEGIN); - if (gckind & GC_LOCK_HELD) + if (gckind != GC_LAST_DITCH) JS_LOCK_GC(rt); if (!ok && gckind != GC_LAST_CONTEXT) return;