Bug 188201

Summary: [JSC] Remove unnecessary cellLock() in JSObject's GC marking if IndexingType is contiguous
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, fpizlo, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch keith_miller: review+

Description Yusuke Suzuki 2018-07-31 11:16:50 PDT
[JSC] Remove unnecessary cellLock() in JSObject's GC marking if IndexingType is contiguous
Comment 1 Yusuke Suzuki 2018-07-31 11:19:41 PDT
Created attachment 346181 [details]
Patch
Comment 2 Keith Miller 2018-07-31 11:34:02 PDT
Comment on attachment 346181 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346181&action=review

r=me.

> Source/JavaScriptCore/runtime/JSObject.cpp:400
> +        // that can happen when the butterfly is used for array storage.

Nit: Add a comment here repeating what you said in the change log about always reallocating the butterfly when converting to ArrayStorage.
Comment 3 Yusuke Suzuki 2018-07-31 11:39:17 PDT
Comment on attachment 346181 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346181&action=review

Thanks!

>> Source/JavaScriptCore/runtime/JSObject.cpp:400
>> +        // that can happen when the butterfly is used for array storage.
> 
> Nit: Add a comment here repeating what you said in the change log about always reallocating the butterfly when converting to ArrayStorage.

Sounds nice. Added.
Comment 4 Yusuke Suzuki 2018-07-31 11:48:49 PDT
Committed r234434: <https://trac.webkit.org/changeset/234434>
Comment 5 Radar WebKit Bug Importer 2018-07-31 11:49:26 PDT
<rdar://problem/42781022>