Re: Age code to allow reclaiming old unexecuted functions (issue 10837037)
11 views
Skip to first unread message
mstar...@chromium.org
unread,
Oct 2, 2012, 10:58:59 AM10/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to da...@chromium.org, v8-...@googlegroups.com
Second round with some follow-up comments, now that I am working on the
incremental code flushing. Also as discussed offline, this CL will require
rebasing after I land one of my CLs.
https://codereview.chromium.org/10837037/diff/16023/src/mark-compact.cc#newcode1210 src/mark-compact.cc:1210: if (!shared_info->code()->IsOld()) return
false;
1) We shouldn't remove the check for the marking bit of the code,
because it makes sure that we don't throw away un-optimized code that is
required for bailout from optimized code.
2) Also I don't think it makes much sense to flush code that is strongly
reachable through other paths, that will rather lead to increased memory
consumption because we keep recompiling code without actually collecting
it.
3) Also it might be better to move this check further to the bottom,
because it is more expensive than the others I guess. But I don't have a
strong opinion about this last point.