Closed Bug 403678 Opened 17 years ago Closed 17 years ago

Removal of GC thing callback

Categories

(Core :: JavaScript Engine, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

References

Details

Attachments

(1 file, 1 obsolete file)

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?
Blocks: 378742
Attached patch v1 (obsolete) — Splinter Review
The patch removes gcThingCallback and related code.
Attachment #288554 - Flags: review?(brendan)
Blocking with low priority so we get a clean public bug
Flags: blocking1.9? → blocking1.9+
Priority: -- → P4
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.
Attached patch v2Splinter Review
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 on attachment 288677 [details] [diff] [review]
v2

Yay! Thanks.

/be
Attachment #288677 - Flags: review?(brendan) → review+
Attachment #288677 - Flags: approval1.9+
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
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: