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

Unified Diff: third_party/WebKit/Source/wtf/PageAllocator.h

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 | « no previous file | third_party/WebKit/Source/wtf/PageAllocator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/PageAllocator.h
diff --git a/third_party/WebKit/Source/wtf/PageAllocator.h b/third_party/WebKit/Source/wtf/PageAllocator.h
index 5714f1692020b607e9fbf562bbbf1ef046f772b1..59bc7ea8673e3b6d3d6e6e9f38905c36e033b2b8 100644
--- a/third_party/WebKit/Source/wtf/PageAllocator.h
+++ b/third_party/WebKit/Source/wtf/PageAllocator.h
@@ -136,6 +136,12 @@ WTF_EXPORT ALWAYS_INLINE uintptr_t roundDownToSystemPage(uintptr_t address)
return address & kSystemPageBaseMask;
}
+// Only allowed inside WTF for investigating WTF::initializeWithoutV8 crashes.
+// Guess, the function fails because of mmap (or VirtualAlloc) failure.
+// The following function returns errno (or GetLastError code) when mmap
+// (or VirtualAlloc) fails.
+uint32_t getAllocPageErrorCode();
+
} // namespace WTF
#endif // WTF_PageAllocator_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/PageAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698