Closed
Bug 1480233
Opened 6 years ago
Closed 6 years ago
Define in AllocKinds.h which kinds support compacting
Categories
(Core :: JavaScript: GC, enhancement)
Core
JavaScript: GC
Tracking
()
RESOLVED
DUPLICATE
of bug 1479937
People
(Reporter: tcampbell, Assigned: tcampbell)
Details
Attachments
(1 file, 1 obsolete file)
24.38 KB,
patch
|
tcampbell
:
review+
|
Details | Diff | Splinter Review |
Currently, we define the AllocKind that support compacting in [1]. It might be nicer to track this info in the AllocKinds.h table instead. This makes it clearer what types *do not* support compacting. [1] https://searchfox.org/mozilla-central/rev/d0a0ae30d534dc55e712bd3eedc1b4553ba56323/js/src/gc/GC.cpp#2173-2200
Assignee | ||
Comment 1•6 years ago
|
||
Move the AllocKindsToRelocate table into AllocKind macro-table instead.
Attachment #8996855 -
Flags: review?(sphink)
Assignee | ||
Comment 2•6 years ago
|
||
Comment on attachment 8996855 [details] [diff] [review] 0001-Bug-1480233-Define-compacting-GC-support-in-AllocKin.patch Review of attachment 8996855 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/gc/GC.cpp @@ +2482,5 @@ > // Check that we did as much compaction as we should have. There > // should always be less than one arena's worth of free cells. > + for (auto kind : AllAllocKinds()) { > + if (!IsMovableKind(kind)) > + continue; Simplify this to > for (auto kind : MovableAllocKinds()) {
Comment 3•6 years ago
|
||
What do you think of my attempt in bug 1479937? Too weird? Merge them?
Assignee | ||
Comment 4•6 years ago
|
||
Should have checked first..
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/1765ed67a90a Define compacting GC support in AllocKind.h. r=sfink
Assignee | ||
Comment 6•6 years ago
|
||
I dun goofed. Review of this patch was done on Bug 1479937. Stamping here for posterity. https://bugzilla.mozilla.org/show_bug.cgi?id=1479937#c5
Attachment #8996855 -
Attachment is obsolete: true
Attachment #8996855 -
Flags: review?(sphink)
Attachment #8997007 -
Flags: review+
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1765ed67a90a
You need to log in
before you can comment on or make changes to this bug.
Description
•