Closed Bug 106790 Opened 24 years ago Closed 24 years ago

Need JS_ClearNewbornRoots()

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: epstein, Assigned: brendan)

Details

(Keywords: js1.5)

Attachments

(2 files)

There needs to be a way for API users to clear the newborn roots of a context to avoid having objects (strings, doubles) stick around if a context goes unused for a while. Patch coming up.
Attached patch patchSplinter Review
I'd like to make the humble suggestion that a patch to the Spidermonkey APIDOC source be made for this new funciton as well. (Or at least a comment in jsapi.h...)
Formally confirming bug for consideration -
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: patch
Very cool -- only change I'll make is to make it void. This API is infallible, no one should worry about it failing. Thanks for doing this. /be
Status: NEW → ASSIGNED
Keywords: js1.5, mozilla0.9.6
Priority: -- → P1
Target Milestone: --- → mozilla0.9.6
Comment on attachment 55170 [details] [diff] [review] revised patch (big comment, void return) r=brendan@mozilla.org
Attachment #55170 - Flags: review+
Comment on attachment 55170 [details] [diff] [review] revised patch (big comment, void return) sr=jband We should figure out how to use this from the DOM code.
Attachment #55170 - Flags: superreview+
Fix is in. /be
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking Verified -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: