From d6bc1041f3b87c7823d0f389e4d8e81ce1adbd62 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 15 Apr 2013 22:49:54 +0200 Subject: [PATCH] Implement v8::LowMemoryNotification and IdleNotification Avoids some failed assertions when explicitly triggering a gc(). Change-Id: I60345f7b971e0a756229931c8162039f3d0f72a2 Reviewed-by: Simon Hausmann --- src/qml/qml/v4vm/qv4v8.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qml/qml/v4vm/qv4v8.cpp b/src/qml/qml/v4vm/qv4v8.cpp index 6c1abe0..cc1ff1c 100644 --- a/src/qml/qml/v4vm/qv4v8.cpp +++ b/src/qml/qml/v4vm/qv4v8.cpp @@ -2002,14 +2002,12 @@ bool V8::Dispose() bool V8::IdleNotification(int hint) { - Q_UNIMPLEMENTED(); - Q_UNREACHABLE(); + return true; } void V8::LowMemoryNotification() { - Q_UNIMPLEMENTED(); - Q_UNREACHABLE(); + currentEngine()->memoryManager->runGC(); } -- 2.7.4