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

Unified Diff: third_party/WebKit/Source/wtf/Partitions.cpp

Issue 1718123002: Added errno (or GetLastError code) to crash dump when systemAllocPages fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modify handleOutOfMemory Created 4 years, 10 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/PageAllocator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Partitions.cpp
diff --git a/third_party/WebKit/Source/wtf/Partitions.cpp b/third_party/WebKit/Source/wtf/Partitions.cpp
index b0e587de8d3639e4a85ff7feb4c3b70274bf787a..f86bf235b378abfd320cf483d32e36f5f1d82dd4 100644
--- a/third_party/WebKit/Source/wtf/Partitions.cpp
+++ b/third_party/WebKit/Source/wtf/Partitions.cpp
@@ -195,6 +195,8 @@ static NEVER_INLINE void partitionsOutOfMemoryUsingLessThan16M()
void Partitions::handleOutOfMemory()
{
volatile size_t totalUsage = totalSizeOfCommittedPages();
+ uint32_t allocPageErrorCode = getAllocPageErrorCode();
+ base::debug::Alias(&allocPageErrorCode);
if (totalUsage >= 2UL * 1024 * 1024 * 1024)
partitionsOutOfMemoryUsing2G();
« no previous file with comments | « third_party/WebKit/Source/wtf/PageAllocator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698