Don't run the GC too often
authorLars Knoll <lars.knoll@digia.com>
Sat, 2 Nov 2013 17:39:55 +0000 (18:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 5 Nov 2013 21:23:25 +0000 (22:23 +0100)
commitcb7948caec77b282adabbbdc1a6900be5830021c
tree6b6cb66a13c14df91bab76485943aa923ec3deff
parent26db9863f18d7f7e89cec88b720e4fb4c674dd5b
Don't run the GC too often

Some test cases were badly trashing the GC, running it
way too often. Fix this by only running the GC after
we allocated more than 50% of the amount of available
items.

Change-Id: Icfe6d0730552ef2298963de706213ebc9e3e342c
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4mm.cpp