From ccde666b24499a4cbdbe108f2342020c799d5deb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 16 Aug 2010 13:37:47 -0400 Subject: [PATCH] Disable recursion for heavyweight functions (bug 583757, r=jorendorff). --- js/src/jstracer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index b00d3a4c63..214af0e3e7 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -10348,7 +10348,7 @@ IsTraceableRecursion(JSContext *cx) return false; if (*fp->script->code != JSOP_TRACE) return false; - return true; + return !fp->fun->isHeavyweight(); } JS_REQUIRES_STACK AbortableRecordingStatus -- 2.11.4.GIT