Closed Bug 569451 Opened 14 years ago Closed 13 years ago

JS shell function for triggering GC "soon"

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: billm)

Details

(Whiteboard: [sg:want P2])

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.
dvander thought anygregor might want to grab this.
The patch for bug 650978 includes a fix for this bug, in the form of schedulegc().
Assignee: gal → wmccloskey
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.