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

Unified Diff: third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp

Issue 2630453004: Increase heap limit for DevTools isolate. (Closed)
Patch Set: fix comment Created 3 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
index 637f5d8cd273ef2c0efcffa263ac2d9ab098d3e6..935c30d2b4bc2ada948b3e98d901ecd1b562bb4e 100644
--- a/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsFrontendImpl.cpp
@@ -65,6 +65,9 @@ WebDevToolsFrontendImpl::~WebDevToolsFrontendImpl() {
void WebDevToolsFrontendImpl::didClearWindowObject(WebLocalFrameImpl* frame) {
if (m_webFrame == frame) {
v8::Isolate* isolate = v8::Isolate::GetCurrent();
+ // Use higher limit for DevTools isolate so that it does not OOM when
+ // profiling large heaps.
+ isolate->IncreaseHeapLimitForDebugging();
ScriptState* scriptState = ScriptState::forMainWorld(m_webFrame->frame());
DCHECK(scriptState);
ScriptState::Scope scope(scriptState);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698