Closed
Bug 1237445
Opened 9 years ago
Closed 9 years ago
Migrate more hashtable users to GC-aware versions, including those needing rekeying
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla46
People
(Reporter: sfink, Assigned: sfink)
References
Details
Attachments
(3 files, 1 obsolete file)
2.27 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
4.20 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
1.70 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
Bug 1225298 went into the previous release cycle, so opening a new bug for the remaining landings.
Assignee | ||
Comment 1•9 years ago
|
||
I still don't have everything working, but one big chunk is the things that required rekeying. This patch makes a GCRekeyableHashMap for those so I can land them in advance of any future rekeying removal.
Attachment #8704847 -
Flags: review?(terrence)
Comment 2•9 years ago
|
||
Comment on attachment 8704847 [details] [diff] [review]
Implement GCRekeyableHashMap
Review of attachment 8704847 [details] [diff] [review]:
-----------------------------------------------------------------
WFM
Attachment #8704847 -
Flags: review?(terrence) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/9d0643d45a74
https://hg.mozilla.org/integration/mozilla-inbound/rev/e003fb68a47c
https://hg.mozilla.org/integration/mozilla-inbound/rev/7a2a11b4cee1
https://hg.mozilla.org/integration/mozilla-inbound/rev/28657e5774d0
https://hg.mozilla.org/integration/mozilla-inbound/rev/5d93baf4ff9c
Assignee | ||
Comment 4•9 years ago
|
||
Note to anyone suspicious: the patches landing here are attached and marked r+ in bug 1225298.
Next time I'm going to use a constellation of separate bugs.
Comment 5•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9d0643d45a74
https://hg.mozilla.org/mozilla-central/rev/e003fb68a47c
https://hg.mozilla.org/mozilla-central/rev/7a2a11b4cee1
https://hg.mozilla.org/mozilla-central/rev/28657e5774d0
https://hg.mozilla.org/mozilla-central/rev/5d93baf4ff9c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Assignee | ||
Comment 6•9 years ago
|
||
This is the bug I wanted to use.
This is now a very minimal refactoring change to make it look more like GCHashSet without actually using GCHashSet (which I hope wouldn't compile at this point, since no zero-arg needsSweep is defined for RegExpShared so set_->sweep() can't be defined.)
Totally optional at this point. Pretty much irrelevant, since it'll be scrapped either way if we make RegExpShared into a gc thing.
Attachment #8709606 -
Flags: review?(terrence)
Comment 7•9 years ago
|
||
Comment on attachment 8709606 [details] [diff] [review]
Use GCHashSet for RegExpShared sweeping
Review of attachment 8709606 [details] [diff] [review]:
-----------------------------------------------------------------
I like it.
::: js/src/vm/RegExpObject.cpp
@@ +828,5 @@
> e.removeFront();
> }
> }
>
> if (matchResultTemplateObject_ &&
Just noticed that !set_.initialized() implies !matchResultTemplateObject_. Is it worth asserting this relation.
Attachment #8709606 -
Flags: review?(terrence) → review+
Updated•9 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•9 years ago
|
||
As mentioned on IRC, this table still needs rekeying.
Attachment #8710012 -
Flags: review?(terrence)
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8710012 [details] [diff] [review]
Rekey ArrayObjectTable
Gah. Wrong patch from wrong terminal.
Attachment #8710012 -
Attachment is obsolete: true
Attachment #8710012 -
Flags: review?(terrence)
Assignee | ||
Comment 10•9 years ago
|
||
Ok, let's try this again.
Attachment #8710016 -
Flags: review?(terrence)
Comment 11•9 years ago
|
||
Comment on attachment 8710016 [details] [diff] [review]
Rekey ArrayObjectTable
Review of attachment 8710016 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #8710016 -
Flags: review?(terrence) → review+
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d0b106a76c7f
https://hg.mozilla.org/mozilla-central/rev/c1153dc8ccd1
https://hg.mozilla.org/mozilla-central/rev/d8f94c805684
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Comment 14•9 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•