WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
143449
Simplify ownership model of RefCounter::Count
https://bugs.webkit.org/show_bug.cgi?id=143449
Summary
Simplify ownership model of RefCounter::Count
Gavin Barraclough
Reported
2015-04-06 11:52:17 PDT
Currently the count manipulated by ref/deref does not fully determine the lifetime of the object - the object is either kept alive if the refcount is non-zero, or if the owner RefCounter is still alive (separately determined). Make the object lifetime simpler by making it purely determined by the RefCount (and as such RefCounter::Count can just become a regular RefCounted). Add a new variable to track the counter value. This patch is a step towards adding a token type that doesn't increment the count (to be able to avoid bogus churn & keep the count accurate).
Attachments
Fix
(7.75 KB, patch)
2015-04-06 12:01 PDT
,
Gavin Barraclough
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2015-04-06 12:01:14 PDT
Created
attachment 250216
[details]
Fix
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