Followup for Bug 605011

This commit is contained in:
Gregor Wagner 2010-10-19 16:12:08 -07:00
parent be7e16c677
commit 27a81f5957

View File

@ -2564,8 +2564,9 @@ js_GC(JSContext *cx, JSGCInvocationKind gckind)
#ifdef DEBUG
int stackDummy;
# if JS_STACK_GROWTH_DIRECTION > 0
/* cx->stackLimit is set to jsuword(-1). */
JS_ASSERT_IF(cx->stackLimit, JS_CHECK_STACK_SIZE(cx->stackLimit, &stackDummy));
/* cx->stackLimit is set to jsuword(-1) by default. */
JS_ASSERT_IF(cx->stackLimit != jsuword(-1),
JS_CHECK_STACK_SIZE(cx->stackLimit + 4096, &stackDummy));
# else
/* -4k because it is possible to perform a GC during an overrecursion report. */
JS_ASSERT_IF(cx->stackLimit, JS_CHECK_STACK_SIZE(cx->stackLimit - 4096, &stackDummy));