Bug 102985 - Rename the "eden" bit to something more descriptive
Summary: Rename the "eden" bit to something more descriptive
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 15:32 PST by WebKit Review Bot
Modified: 2012-11-22 01:59 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.15 KB, patch)
2012-11-21 20:01 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WebKit Review Bot 2012-11-21 15:32:46 PST
Rename the "eden" bit to something more descriptive
Requested by abarth on #webkit.
Comment 1 Adam Barth 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"
Comment 2 Kentaro Hara 2012-11-21 15:39:37 PST
MaybeInV8NewSpaceFlag ?
Comment 3 Adam Barth 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.
Comment 4 Kentaro Hara 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.
Comment 5 Kentaro Hara 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:)
Comment 6 Kentaro Hara 2012-11-21 20:01:32 PST
Created attachment 175570 [details]
Patch
Comment 7 Adam Barth 2012-11-21 20:27:16 PST
Comment on attachment 175570 [details]
Patch

ok
Comment 8 WebKit Review Bot 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>
Comment 9 WebKit Review Bot 2012-11-22 01:59:30 PST
All reviewed patches have been landed.  Closing bug.