Closed
Bug 403678
Opened 17 years ago
Closed 17 years ago
Removal of GC thing callback
Categories
(Core :: JavaScript Engine, enhancement, P4)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: igor, Assigned: igor)
References
Details
Attachments
(1 file, 1 obsolete file)
6.67 KB,
patch
|
brendan
:
review+
brendan
:
approval1.9+
|
Details | Diff | Splinter Review |
With the bug 401687 fixed the GC thing callback infrastructure added to JS GC to support the cycle collector is no longer necessary and can be safely removed. It would be nice to do it before FF3 is released and GC thing callback becomes a part of public API.
Flags: blocking1.9?
Assignee | ||
Comment 1•17 years ago
|
||
The patch removes gcThingCallback and related code.
Attachment #288554 -
Flags: review?(brendan)
Comment 2•17 years ago
|
||
Blocking with low priority so we get a clean public bug
Flags: blocking1.9? → blocking1.9+
Priority: -- → P4
Comment 3•17 years ago
|
||
Comment on attachment 288554 [details] [diff] [review] v1 >Index: js/src/jsgc.c >=================================================================== >@@ -2086,34 +2081,22 @@ gc_lock_traversal(JSDHashTable *table, J >+ if (!IS_GC_MARKING_TRACER(trc)) { >+ for (n = lhe->count - 1; n != 0; --n) >+ JS_CALL_TRACER(trc, thing, traceKind, "locked object"); > } Note that since the cycle collector doesn't refcount it doesn't rely on this anymore either. Unless you want to keep it for other users feel free to drop it too.
Assignee | ||
Comment 4•17 years ago
|
||
The new version removes that "lock count transfer to the tracer".
Attachment #288554 -
Attachment is obsolete: true
Attachment #288677 -
Flags: review?(brendan)
Attachment #288554 -
Flags: review?(brendan)
Comment 5•17 years ago
|
||
Comment on attachment 288677 [details] [diff] [review] v2 Yay! Thanks. /be
Attachment #288677 -
Flags: review?(brendan) → review+
Updated•17 years ago
|
Attachment #288677 -
Flags: approval1.9+
Assignee | ||
Comment 6•17 years ago
|
||
I checked in the patch from comment 4 to CVS trunk: http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&branch=HEAD&cvsroot=%2Fcvsroot&date=explicit&mindate=1195469790&maxdate=1195469824&who=igor%mir2.org
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite-
Flags: in-litmus-
You need to log in
before you can comment on or make changes to this bug.
Description
•