Bug 199498 - Scribble Heap::m_worldState on destructor
Summary: Scribble Heap::m_worldState on destructor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tadeu Zagallo
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-07-04 07:46 PDT by Tadeu Zagallo
Modified: 2019-07-05 11:58 PDT (History)
11 users (show)

See Also:


Attachments
Patch (1.27 KB, patch)
2019-07-04 07:49 PDT, Tadeu Zagallo
no flags Details | Formatted Diff | Diff
Patch for landing (1.37 KB, patch)
2019-07-05 01:10 PDT, Tadeu Zagallo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tadeu Zagallo 2019-07-04 07:46:20 PDT
...
Comment 1 Tadeu Zagallo 2019-07-04 07:49:50 PDT
Created attachment 373465 [details]
Patch
Comment 2 Sam Weinig 2019-07-04 15:24:32 PDT
Comment on attachment 373465 [details]
Patch

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

> Source/JavaScriptCore/heap/Heap.cpp:342
> +    m_worldState.store(0xbadbeef0u);

I think a comment here clarifying why this store is being made would be instructive.
Comment 3 Tadeu Zagallo 2019-07-05 01:08:01 PDT
Comment on attachment 373465 [details]
Patch

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

Thanks for the review!

>> Source/JavaScriptCore/heap/Heap.cpp:342
>> +    m_worldState.store(0xbadbeef0u);
> 
> I think a comment here clarifying why this store is being made would be instructive.

That makes sense, I'll add it.
Comment 4 Tadeu Zagallo 2019-07-05 01:10:22 PDT
Created attachment 373483 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2019-07-05 09:38:47 PDT
Comment on attachment 373483 [details]
Patch for landing

Clearing flags on attachment: 373483

Committed r247160: <https://trac.webkit.org/changeset/247160>
Comment 6 WebKit Commit Bot 2019-07-05 09:38:48 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2019-07-05 09:39:15 PDT
<rdar://problem/52690607>
Comment 8 Tadeu Zagallo 2019-07-05 11:37:40 PDT
I just realized this value won't work... it will clear the conn bit. I'll land a follow-up patch to change it to 0xbadbeeff.
Comment 9 Tadeu Zagallo 2019-07-05 11:58:07 PDT
Committed r247166: <https://trac.webkit.org/changeset/247166>