Can't allocate new stack chunks while on trace (484524, r=brendan).

This commit is contained in:
Andreas Gal 2009-03-21 00:26:03 -07:00
parent a7b8dad8aa
commit b438fd1512
2 changed files with 3 additions and 2 deletions

View File

@ -563,6 +563,9 @@ js_AllocRawStack(JSContext *cx, uintN nslots, void **markp)
{
jsval *sp;
JS_ASSERT(nslots != 0);
js_LeaveTrace(cx);
if (!cx->stackPool.first.next) {
int64 *timestamp;

View File

@ -1543,8 +1543,6 @@ find_replen(JSContext *cx, ReplaceData *rdata, size_t *sizep)
void *mark;
JSBool ok;
JS_ASSERT_NOT_ON_TRACE(cx);
/*
* Save the regExpStatics from the current regexp, since they may be
* clobbered by a RegExp usage in the lambda function. Note that all