Closed Bug 467441 Opened 16 years ago Closed 16 years ago

unnecessary js_AddRoot for regex statics

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

References

Details

(Keywords: fixed1.9.0.11, fixed1.9.1, Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files)

Currently js_InitRegExpStatics uses js_AddRoot to root JSContext.regExpStatics->input. This is unnecessary since the GC can trace the statics directly from js_TraceContext avoiding the need to create entries in the global root table.
Attached patch v1 (deleted) — Splinter Review
The patch replaces js_(Add|Remove)Root with the explicit GC tracing and moves all regexp-specific initialization for JSContext to jsregexp.cpp.
Attachment #350880 - Flags: review?(crowder)
Attachment #350880 - Flags: review?(crowder) → review+
Whiteboard: fixed-in-tracemonkey
merged to mc
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: in-litmus-
Attachment #366884 - Flags: approval1.9.0.10?
Comment on attachment 366884 [details] [diff] [review] backport to 1.9.0 (for SpiderMonkey 1.8 source release) Patch 2/4 to fix a crashing bug for embedders that blocks the SpiderMonkey 1.8 source release. See bug 478336 comment 21 for the full list.
Comment on attachment 366884 [details] [diff] [review] backport to 1.9.0 (for SpiderMonkey 1.8 source release) Approved for 1.9.0.10, a=dveditz for release-drivers
Attachment #366884 - Flags: approval1.9.0.10? → approval1.9.0.10+
landed to 1.9.0: Checking in jscntxt.c; /cvsroot/mozilla/js/src/jscntxt.c,v <-- jscntxt.c new revision: 3.137; previous revision: 3.136 done Checking in jsgc.c; /cvsroot/mozilla/js/src/jsgc.c,v <-- jsgc.c new revision: 3.304; previous revision: 3.303 done Checking in jsregexp.c; /cvsroot/mozilla/js/src/jsregexp.c,v <-- jsregexp.c new revision: 3.202; previous revision: 3.201 done Checking in jsregexp.h; /cvsroot/mozilla/js/src/jsregexp.h,v <-- jsregexp.h new revision: 3.31; previous revision: 3.30 done
Keywords: fixed1.9.0.10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: