Changeset 238469 in webkit
- Timestamp:
- Nov 24, 2018, 7:13:15 AM (8 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
wtf/Assertions.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r238467 r238469 1 2018-11-24 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 CRASH() should call abort() except on Darwin and in developer builds 4 https://bugs.webkit.org/show_bug.cgi?id=184408 5 6 Reviewed by Daniel Bates. 7 8 CRASH() should call abort() except on Darwin and in developer builds, as discussed on 9 webkit-dev. This should be slightly nicer than dereferencing 0xbadbeef. 10 11 On Darwin, CRASH() uses a breakpoint trap, which seems to corrupt the stack on Linux, so we 12 can't do that. 13 14 Continue to call WTFCrash() in developer mode, and make no changes to WTFCrash(), since it 15 is reportedly useful in nightmare scenarios where core dumps are unavailable. 16 17 * wtf/Assertions.h: 18 1 19 2018-11-23 Sam Weinig <sam@webkit.org> 2 20 -
trunk/Source/WTF/wtf/Assertions.h
r237266 r238469 45 45 #include <stdbool.h> 46 46 #include <stddef.h> 47 #include <stdlib.h> 47 48 #include <wtf/ExportMacros.h> 48 49 … … 240 241 __builtin_unreachable(); \ 241 242 } while (0) 243 #elif !ENABLE(DEVELOPER_MODE) && !OS(DARWIN) 244 #define CRASH() abort() 242 245 #else 243 246 #define CRASH() WTFCrash()
Note:
See TracChangeset
for help on using the changeset viewer.