WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
96708
Remove the Zapped BlockState
https://bugs.webkit.org/show_bug.cgi?id=96708
Summary
Remove the Zapped BlockState
Mark Hahnenberg
Reported
2012-09-13 17:04:34 PDT
The Zapped block state is rather confusing. It indicates that a block is in one of two different states that we can't tell the difference between: 1) I have run all destructors of things that are zapped, and I have not allocated any more objects. This block is ready for reclaiming if you so choose. 2) I have run all the destructors of things that are zapped, but I have allocated more stuff since then, so it is not safe to reclaim this block. This state adds a lot of complexity to our state transition model for MarkedBlocks. We should get rid of it. We can replace this state by making sure mark bits represent all of the liveness information we need when running our conservative stack scan. Instead of zapping the free list when canonicalizing cell liveness data prior to a conservative scan, we can instead mark all objects in the block except for those in the free list. This should incur no performance penalty since we're doing it on a very small O(1) number of blocks at the beginning of the collection. For the time being we still need to use zapping to determine whether we have run an object's destructor or not.
Attachments
Patch
(13.11 KB, patch)
2012-09-13 17:23 PDT
,
Mark Hahnenberg
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Hahnenberg
Comment 1
2012-09-13 17:23:02 PDT
Created
attachment 164009
[details]
Patch
Geoffrey Garen
Comment 2
2012-09-13 18:29:17 PDT
Comment on
attachment 164009
[details]
Patch r=me
WebKit Review Bot
Comment 3
2012-09-14 00:06:01 PDT
Comment on
attachment 164009
[details]
Patch Clearing flags on attachment: 164009 Committed
r128563
: <
http://trac.webkit.org/changeset/128563
>
WebKit Review Bot
Comment 4
2012-09-14 00:06:04 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug