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

Unified Diff: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp

Issue 2130293003: Change OOMs to raise custom exception rather than breakpoint on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 5 months 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
« no previous file with comments | « third_party/WebKit/Source/wtf/Assertions.h ('k') | third_party/WebKit/Source/wtf/allocator/Partitions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
index ffd84069396e9947b61599846b82d80924034681..43f82f570224f5e87243d6882b83e23b387761b0 100644
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
+++ b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp
@@ -308,7 +308,7 @@ bool partitionAllocGenericShutdown(PartitionRootGeneric* root)
#if !CPU(64BIT)
static NEVER_INLINE void partitionOutOfMemoryWithLotsOfUncommitedPages()
{
- IMMEDIATE_CRASH();
+ OOM_CRASH();
}
#endif
@@ -323,17 +323,17 @@ static NEVER_INLINE void partitionOutOfMemory(const PartitionRootBase* root)
#endif
if (PartitionRootBase::gOomHandlingFunction)
(*PartitionRootBase::gOomHandlingFunction)();
- IMMEDIATE_CRASH();
+ OOM_CRASH();
}
static NEVER_INLINE void partitionExcessiveAllocationSize()
{
- IMMEDIATE_CRASH();
+ OOM_CRASH();
}
static NEVER_INLINE void partitionBucketFull()
{
- IMMEDIATE_CRASH();
+ OOM_CRASH();
}
// partitionPageStateIs*
« no previous file with comments | « third_party/WebKit/Source/wtf/Assertions.h ('k') | third_party/WebKit/Source/wtf/allocator/Partitions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698