Changeset 247160 in webkit


Ignore:
Timestamp:
Jul 5, 2019 9:38:40 AM (5 years ago)
Author:
Tadeu Zagallo
Message:

Scribble Heap::m_worldState on destructor
https://bugs.webkit.org/show_bug.cgi?id=199498

Reviewed by Sam Weinig.

The worldState is dumped when we crash due to a failed checkConn, and
this will make it clear if the heap has already been destroyed.

  • heap/Heap.cpp:

(JSC::Heap::~Heap):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r247102 r247160  
     12019-07-05  Tadeu Zagallo  <tzagallo@apple.com>
     2
     3        Scribble Heap::m_worldState on destructor
     4        https://bugs.webkit.org/show_bug.cgi?id=199498
     5
     6        Reviewed by Sam Weinig.
     7
     8        The worldState is dumped when we crash due to a failed checkConn, and
     9        this will make it clear if the heap has already been destroyed.
     10
     11        * heap/Heap.cpp:
     12        (JSC::Heap::~Heap):
     13
    1142019-07-03  Sam Weinig  <weinig@apple.com>
    215
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r246881 r247160  
    340340Heap::~Heap()
    341341{
     342    // Scribble m_worldState to make it clear that the heap has already been destroyed if we crash in checkConn
     343    m_worldState.store(0xbadbeef0u);
     344
    342345    forEachSlotVisitor(
    343346        [&] (SlotVisitor& visitor) {
Note: See TracChangeset for help on using the changeset viewer.