diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-20 17:15:29 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-03-26 08:57:59 +0000 |
commit | d8110b53ed9ee4d69b92e602e812c6311c1b863b (patch) | |
tree | 5f8dd40ac25a1f2dbb8a9da794e0252919cdfb58 /tests/README | |
parent | 156066d4753243143970aeb0b740f8f429e7916b (diff) |
Trigger the garbage collector when allocating InternalClass objects
As we check the icAllocator's slots on shouldRunGC() we should also
check shouldRunGC() when adding slots. Otherwise we might never run the
GC when only allocating InternalClasses. In addition, account for the
"unmanaged" size of the PropertyAttributes that are part of the
InternalClass objects. Those can be large.
In cases where an excessive number of large InternalClass objects is
created the garbage collector is now invoked frequently, which costs a
significant number of CPU cycles, but prevents the memory usage from
growing indefinitely.
Task-number: QTBUG-58559
Change-Id: Icf102cb6100f6dba212b8bffe1c178897880eda0
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/README')
0 files changed, 0 insertions, 0 deletions