static void reportOOMErrorInMainThread(const char* location, bool isJsHeap) { int memoryUsageMB = Platform::current()->actualMemoryUsageMB(); DVLOG(1) << "V8 " << (isJsHeap ? "javascript" : "process") << " OOM: (" << location << "). Current memory usage: " << memoryUsageMB << " MB"; OOM_CRASH(); }
// Distinguish memory allocation failures from other errors. // https://groups.google.com/a/chromium.org/d/msg/platform-architecture-dev/MP0k9WGnCjA/zIBiJtilBwAJ static NEVER_INLINE void ICUOutOfMemory() { OOM_CRASH(); }