Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2356)

Unified Diff: base/logging.h

Issue 2518253002: Move Partition Allocator into Chromium base. (Closed)
Patch Set: Move OOM_CRASH into its own, more specific header. Fixes Windows build. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/logging.h
diff --git a/base/logging.h b/base/logging.h
index fb7a3ebb558d1d7e5b2c1f1a4ed8a87c4fc83137..2d1a83e364934af23be2eef6e990cb04294f31ff 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -466,18 +466,6 @@ class CheckOpResult {
#define IMMEDIATE_CRASH() ((void)(*(volatile char*)0 = 0))
#endif
-// Specialization of IMMEDIATE_CRASH which will raise a custom exception on
-// Windows to signal this is OOM and not a normal assert.
-#if defined(OS_WIN)
-#define OOM_CRASH() \
- do { \
- ::RaiseException(0xE0000008, EXCEPTION_NONCONTINUABLE, 0, nullptr); \
- IMMEDIATE_CRASH(); \
- } while (0)
-#else
-#define OOM_CRASH() IMMEDIATE_CRASH()
-#endif
-
// CHECK dies with a fatal error if condition is not true. It is *not*
// controlled by NDEBUG, so the check will be executed regardless of
// compilation mode.

Powered by Google App Engine
This is Rietveld 408576698