diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-02-15 15:40:27 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-03-09 08:59:23 +0000 |
commit | e772081db104e09e95ed09e8d1f0076e07fc53f6 (patch) | |
tree | 1261b71d754b8de8520335ee545707e6d64b544e /src/qml/memory/qv4mmdefs_p.h | |
parent | 2a554434a571dcefd26cf10ef8c5ae8b3b7d66db (diff) |
Incremental garbage collection
Add an incremental mode to the garbage collector, that will
get used for many collections. This should significantly
reduce average stop times for GC.
Make sure that manual calls to gc() still do a full collection,
to ensure consistency and keep tests that rely on gc() working.
Change-Id: I87b13529377b7639ce993dbd99e85ff0a555acd8
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/memory/qv4mmdefs_p.h')
-rw-r--r-- | src/qml/memory/qv4mmdefs_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/memory/qv4mmdefs_p.h b/src/qml/memory/qv4mmdefs_p.h index 987e669040..75f567b9e5 100644 --- a/src/qml/memory/qv4mmdefs_p.h +++ b/src/qml/memory/qv4mmdefs_p.h @@ -176,6 +176,8 @@ struct Chunk { void sweep(); void freeAll(); + void resetBlackBits(); + void collectGrayItems(ExecutionEngine *engine); void sortIntoBins(HeapItem **bins, uint nBins); }; |