Reduce memory pressure on system malloc when allocating large items on the GC heap
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Mon, 27 Oct 2014 12:51:27 +0000 (13:51 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 27 Oct 2014 14:19:15 +0000 (15:19 +0100)
commit327d0886c3d9e9854849f5bebda4d6825e94a62e
tree43aff65ead92aefcdece2e34edaf6769b38dcc4e
parent57e5407178ce05f577bd032a7bab2508434a4b02
Reduce memory pressure on system malloc when allocating large items on the GC heap

Try to free our large items for every 8 megabytes of additional large item
memory we allocate. This helps in particular on 32-bit builds and was noticable
in tst_qqmlecmascript::push_and_shift().

Change-Id: I4cc0b188e58ccaf32026e38c7aaf1cfadc83148b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4mm.cpp