| Index: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
|
| index 90b9a53d7e15d51b290ae0e05f640d69672cd0d9..79d307f440c26953872839edc9041cf9c63bf3e8 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
|
| @@ -391,16 +391,12 @@
|
| TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, "data", InspectorUpdateCountersEvent::data());
|
| }
|
|
|
| -void V8GCController::collectGarbage(v8::Isolate* isolate, bool onlyMinorGC)
|
| +void V8GCController::collectGarbage(v8::Isolate* isolate)
|
| {
|
| v8::HandleScope handleScope(isolate);
|
| RefPtr<ScriptState> scriptState = ScriptState::create(v8::Context::New(isolate), DOMWrapperWorld::create(isolate));
|
| ScriptState::Scope scope(scriptState.get());
|
| - StringBuilder builder;
|
| - builder.append("if (gc) gc(");
|
| - builder.append(onlyMinorGC ? "true" : "false");
|
| - builder.append(")");
|
| - V8ScriptRunner::compileAndRunInternalScript(v8String(isolate, builder.toString()), isolate);
|
| + V8ScriptRunner::compileAndRunInternalScript(v8String(isolate, "if (gc) gc();"), isolate);
|
| scriptState->disposePerContextData();
|
| }
|
|
|
|
|