WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195698
Remove unneeded --tradeDestructorBlocks option.
https://bugs.webkit.org/show_bug.cgi?id=195698
Summary
Remove unneeded --tradeDestructorBlocks option.
Mark Lam
Reported
2019-03-13 14:03:44 PDT
There's no reason why we would ever want --tradeDestructorBlocs to be false. <
rdar://problem/39681388
>
Attachments
proposed patch.
(5.01 KB, patch)
2019-03-13 14:28 PDT
,
Mark Lam
ysuzuki
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Lam
Comment 1
2019-03-13 14:28:20 PDT
Created
attachment 364572
[details]
proposed patch.
Yusuke Suzuki
Comment 2
2019-03-13 14:47:15 PDT
Comment on
attachment 364572
[details]
proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=364572&action=review
r=me
> Source/JavaScriptCore/ChangeLog:16 > + (!Options::tradeDestructorBlocks() && needsDestruction()). This assertion is > + outdated because the BlockDirectory's m_empty set used to mean the set of all > + blocks that have no live (as in not reachable by GC) objects and dead objects > + also do not require destructors to be called on them. The current meaning of > + m_empty is that it is the set of all blocks that have no live objects,
OK, now, it is separated as "m_destructible".
> Source/JavaScriptCore/heap/LocalAllocator.cpp:190 >
OK, it is always calling `block->sweep(nullptr)`. So we can get blocks even if m_directory is destructible (trade-destructor-blocks).
Mark Lam
Comment 3
2019-03-13 15:06:09 PDT
Thanks for the review. Landed in
r242912
: <
http://trac.webkit.org/r242912
>.
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