Changeset 38673 in webkit for trunk/JavaScriptCore/runtime


Ignore:
Timestamp:
Nov 21, 2008, 1:20:41 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Dan Bernstein.

https://bugs.webkit.org/show_bug.cgi?id=22402
Replace abort() with CRASH()

  • wtf/Assertions.h: Added a different method to crash, which should work even is 0xbbadbeef is a valid memory address.
  • runtime/Collector.cpp:
  • wtf/FastMalloc.cpp:
  • wtf/FastMalloc.h:
  • wtf/TCSpinLock.h: Replace abort() with CRASH().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Collector.cpp

    r38672 r38673  
    284284    ASSERT(heapType == PrimaryHeap || heap.extraCost == 0);
    285285    // FIXME: If another global variable access here doesn't hurt performance
    286     // too much, we could abort() in NDEBUG builds, which could help ensure we
     286    // too much, we could CRASH() in NDEBUG builds, which could help ensure we
    287287    // don't spend any time debugging cases where we allocate inside an object's
    288288    // deallocation code.
     
    975975    ASSERT((primaryHeap.operationInProgress == NoOperation) | (numberHeap.operationInProgress == NoOperation));
    976976    if ((primaryHeap.operationInProgress != NoOperation) | (numberHeap.operationInProgress != NoOperation))
    977         abort();
     977        CRASH();
    978978
    979979    JAVASCRIPTCORE_GC_BEGIN();
Note: See TracChangeset for help on using the changeset viewer.