WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
105339
Restrictions on oversize CopiedBlock allocations should be relaxed
https://bugs.webkit.org/show_bug.cgi?id=105339
Summary
Restrictions on oversize CopiedBlock allocations should be relaxed
Mark Hahnenberg
Reported
2012-12-18 12:59:00 PST
Currently the DFG has a single branch in the inline allocation path for property/array storage where it checks to see if the number of bytes requested will fit in the current block. This does not match what the C++ allocation path does; it checks if the requested number of bytes is oversize, and then if it's not, it tries to fit it in the current block. The garbage collector assumes that ALL allocations that are greater than 16KB are in oversize blocks. Therefore, this mismatch can lead to crashes when the collector tries to perform some operation on a CopiedBlock. To avoid adding an extra branch to the inline allocation path in the JIT, we should make it so that oversize blocks are allocated on the same alignment boundaries so that there is a single mask to find the block header of any CopiedBlock (rather than two, one for normal and one for oversize blocks), and we should figure out if a block is oversize by some other method than just whatever the JSObject says it is. One way we could record this info Region of the block, since we allocate a one-off Region for oversize blocks.
Attachments
Patch
(11.83 KB, patch)
2012-12-18 13:13 PST
,
Mark Hahnenberg
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Hahnenberg
Comment 1
2012-12-18 13:01:00 PST
<
rdar://problem/12814946
>
Mark Hahnenberg
Comment 2
2012-12-18 13:13:23 PST
Created
attachment 180012
[details]
Patch
WebKit Review Bot
Comment 3
2012-12-18 14:02:37 PST
Comment on
attachment 180012
[details]
Patch Clearing flags on attachment: 180012 Committed
r138067
: <
http://trac.webkit.org/changeset/138067
>
WebKit Review Bot
Comment 4
2012-12-18 14:02:40 PST
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