Last Comment Bug 569451 - JS shell function for triggering GC "soon"
: JS shell function for triggering GC "soon"
[sg:want P2]
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: Trunk
: All All
-- enhancement (vote)
: ---
Assigned To: Bill McCloskey (:billm)
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2010-06-01 14:04 PDT by Jesse Ruderman
Modified: 2011-06-03 13:34 PDT (History)
4 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image Jesse Ruderman 2010-06-01 14:04:03 PDT
Split from bug 562734 comment 32:

To test the effects of GC on the tracing JIT, let's add a shell function that triggers garbage collection after exactly N allocations.

gczeal() is too harsh, preventing tracing-JIT altogether.  gc() is too limited, since it can only happen when script can run, rather than at any allocation site.

Once this is added, I'll have jsfunfuzz call the function with values of N between 1 and 100(?).  Unfortunately, making reduced testcases will require reducing N as I whittle away at the script, but I think it's better this way than random.
Comment 1 User image Jesse Ruderman 2010-08-03 16:34:35 PDT
dvander thought anygregor might want to grab this.
Comment 2 User image Jesse Ruderman 2011-06-03 13:34:36 PDT
The patch for bug 650978 includes a fix for this bug, in the form of schedulegc().

Note You need to log in before you can comment on or make changes to this bug.