Closed
Bug 1220310
Opened 9 years ago
Closed 9 years ago
Make DefaultTracer into a generic GCPolicy
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: terrence, Assigned: terrence)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
25.91 KB,
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
I'd like to add "Sweepable" containers as the weak reflection of "Traceable"'s strong container. Rather than adding another DefaultFoo<T> for everything, i'd like to settle on a generic GCPolicy structure that tells us how any particular type interfaces with the GC. I'm not sure how this intersects with GCMethods yet -- there's probably enough overlap to merge, but I'd like to keep them separate for now.
Attachment #8681523 -
Flags: review?(sphink)
Comment 1•9 years ago
|
||
Comment on attachment 8681523 [details] [diff] [review] DefaultTracer_to_DefaultGCPolicy-v0.diff Review of attachment 8681523 [details] [diff] [review]: ----------------------------------------------------------------- This great! I took a brief stab at unifying Traceable with GCMethods, but quickly ran away and hid in a corner. This is a great direction to be moving in. Hopefully we can incrementally shift stuff over. ::: js/public/TraceableHashTable.h @@ +161,4 @@ > {}; > > // A TraceableHashSet is a HashSet with an additional trace method that knows > +// how to visit all set element. HashSets that contain GC pointers that must I don't actually see a change in this line, but anyway: s/element/elements/
Attachment #8681523 -
Flags: review?(sphink) → review+
Assignee | ||
Comment 2•9 years ago
|
||
> > // A TraceableHashSet is a HashSet with an additional trace method that knows
> > +// how to visit all set element. HashSets that contain GC pointers that must
>
> I don't actually see a change in this line, but anyway: s/element/elements/
I changed the inter-sentence spacing to 1.
Assignee | ||
Comment 3•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7001fffefd3d
Comment 4•9 years ago
|
||
Looks happy to me: https://treeherder.mozilla.org/#/jobs?repo=try&revision=28bd81e170a5
Assignee | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=bf48dcfef48b
Assignee | ||
Comment 6•9 years ago
|
||
Oh, I didn't realize Steve had already re-tried this. :-P Guess I'll just go cancel the try and push to m-i then.
Assignee | ||
Comment 7•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ba5c3654f4854fc4d80532105b7ef4729b991bd9 Bug 1220310 - Generalize GC container trace function dispatch as GCPolicy; r=sfink
Comment 8•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ba5c3654f485
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•