The default bug view has changed. See this FAQ.

JS shell function for triggering GC "soon"

RESOLVED FIXED

Status

()

Core
JavaScript Engine
--
enhancement
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: Jesse Ruderman, Assigned: billm)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sg:want P2])

(Reporter)

Description

7 years ago
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.
(Reporter)

Comment 1

7 years ago
dvander thought anygregor might want to grab this.
(Reporter)

Comment 2

6 years ago
The patch for bug 650978 includes a fix for this bug, in the form of schedulegc().
Assignee: gal → wmccloskey
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.