mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Followup for Bug 605011
This commit is contained in:
parent
be7e16c677
commit
27a81f5957
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user