RESOLVED FIXED 102985
Rename the "eden" bit to something more descriptive
https://bugs.webkit.org/show_bug.cgi?id=102985
Summary Rename the "eden" bit to something more descriptive
WebKit Review Bot
Reported 2012-11-21 15:32:46 PST
Rename the "eden" bit to something more descriptive Requested by abarth on #webkit.
Attachments
Patch (4.15 KB, patch)
2012-11-21 20:01 PST, Kentaro Hara
no flags
Adam Barth
Comment 1 2012-11-21 15:38:52 PST
3:14 PM <anttik> abarth: ping 3:14 PM <abarth> anttik: hi 3:14 PM <rniwa> anttik: and here comes the patch: https://bugs.webkit.org/show_bug.cgi?id=102983 :D 3:14 PM <anttik> abarth: what is InEdenFlag in Node.h? 3:15 PM <abarth> anttik: it's a bit that records whether this node has participated in a minor GC cycle 3:16 PM <anttik> abarth: is that some v8 specific name? it makes no sense at all 3:16 PM <abarth> anttik: its from https://bugs.webkit.org/show_bug.cgi?id=98725 3:16 PM <abarth> anttik: it's just a name we made up. we can change the name if you like 3:16 PM <abarth> it refers to the garden of eden 3:16 PM <anttik> abarth: the webkit style prefers descriptive names 3:17 PM <anttik> so yeah, it should be renamed 3:26 PM <othermaciej> anttik, abarth: if you flip the polarity it could be HasSurvivedV8Collection 3:26 PM <othermaciej> or something 3:26 PM <othermaciej> I also thought "eden" was a bit of a wonky name, sorry for not commenting earlier 3:26 PM <abarth> yeah, i think eric mentioned not liking the name either 3:27 PM <abarth> MightBeReachableFromOutsideTheV8NewSpace 3:28 PM <anttik> Flag 3:28 PM <abarth> flag? 3:29 PM <anttik> MightBeReachableFromOutsideTheV8NewSpaceFlag :D 3:29 PM <abarth> .com 3:31 PM <othermaciej> abarth: what does "in eden" actually mean? 3:31 PM <othermaciej> from the patch it seemed like, mechanically, it would be unset if you survive a minor collection, but I may have misunderstood 3:33 PM <abarth> what it really means is "its too hard to calculate the reachability of this node during minor gc---you'll need to wait for a major gc"
Kentaro Hara
Comment 2 2012-11-21 15:39:37 PST
MaybeInV8NewSpaceFlag ?
Adam Barth
Comment 3 2012-11-21 15:41:17 PST
We might need to flip the bit in the future if the node is reachable from something like a MuationObserver that has a complicated lifetime. Hopefully we can find a name that will scale to that case as well.
Kentaro Hara
Comment 4 2012-11-21 16:10:47 PST
In IRC, it looks like we have reached "CollectableOnlyDuringV8MajorGC". If you have no objection, I'll rename it.
Kentaro Hara
Comment 5 2012-11-21 20:01:12 PST
The conclusion in IRC was V8CollectableOnlyDuringMajorGCFlag. However, I noticed that then we need to set the bit in a Node constructor. To avoid the overhead (though I don't know it's a problem), I would suggest V8CollectableDuringMinorGCFlag. It's shorter than V8CollectableOnlyDuringMajorGCFlag:)
Kentaro Hara
Comment 6 2012-11-21 20:01:32 PST
Adam Barth
Comment 7 2012-11-21 20:27:16 PST
Comment on attachment 175570 [details] Patch ok
WebKit Review Bot
Comment 8 2012-11-22 01:59:26 PST
Comment on attachment 175570 [details] Patch Clearing flags on attachment: 175570 Committed r135498: <http://trac.webkit.org/changeset/135498>
WebKit Review Bot
Comment 9 2012-11-22 01:59:30 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.