Ignore:
Timestamp:
Nov 21, 2008, 10:49:03 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Sam Weinig.

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

  • wtf/Assertions.h: Added abort() after an attempt to crash for extra safety.
  • 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/wtf/Assertions.h

    r35900 r38665  
    5151#endif
    5252
     53#include <stdlib.h>
     54
    5355#ifdef NDEBUG
    5456#define ASSERTIONS_DISABLED_DEFAULT 1
     
    121123
    122124#ifndef CRASH
    123 #define CRASH() *(int *)(uintptr_t)0xbbadbeef = 0
     125#define CRASH() do { \
     126    *(int *)(uintptr_t)0xbbadbeef = 0; \
     127    abort(); \
     128} while (false)
    124129#endif
    125130
Note: See TracChangeset for help on using the changeset viewer.