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().