aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-10-15 16:00:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-16 06:36:47 +0200
commitad7f91c59a87564d2d1d9baad407ba7b07a075a7 (patch)
tree951e50673fe2baee0123832af3909e528242ef4d /tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp
parent0c6743749f8bab4bbace3f3c3d1172d1ca959f7c (diff)
Turn on exact garbage collection by default
Keep conservative GC as a fallback for testing Enable all tests again that were skipped due to GC issues. Change-Id: I8e0fa728207bdd39a96d0acf95e27841157d8402 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp')
-rw-r--r--tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp b/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp
index 408baeffee..dbf28a5471 100644
--- a/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp
+++ b/tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp
@@ -96,18 +96,8 @@ public slots:
}
};
-// The JavaScriptCore GC marks the C stack. To try to ensure that there is
-// no JSObject* left in stack memory by the compiler, we call this function
-// to zap some bytes of memory before calling collectGarbage().
-static void zapSomeStack()
-{
- char *buf = (char*)alloca(4096);
- memset(buf, 0, 4096);
-}
-
static void gc(QQmlEngine &engine)
{
- zapSomeStack();
engine.collectGarbage();
QCoreApplication::sendPostedEvents(0, QEvent::DeferredDelete);
QCoreApplication::processEvents();