qtbase/tests/benchmarks/corelib
Sona Kurazyan 614847eae9 Use QPromise when creating continuations to avoid memory leaks
Continuations were using QFutureInterface to create and return the
associated future to the user. Attaching a continuation to the returned
future could cause memory leaks (described in an earlier commit). Use a
QPromise when saving the continuation, to make sure that the attached
continuation is cleaned in the destructor of the associated QPromise, so
that it doesn't keep any ref-counted copies to the shared data, thus
preventing it from being deleted.

Task-number: QTBUG-99534
Pick-to: 6.3 6.2
Change-Id: I52d5501292095d41d1e060b7dd140c8e5d01335c
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2022-01-21 01:51:20 +01:00
..
io QAbstractFileEngine: Add permission argument to open() 2021-12-04 01:27:08 +01:00
itemmodels Standardise layout and naming in corelib benchmarks 2021-08-30 19:21:08 +02:00
json Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
kernel Standardise layout and naming in corelib benchmarks 2021-08-30 19:21:08 +02:00
mimetypes Optimize QMimeDatabase::mimeTypeForFile(f, MatchDefault) 2021-12-06 22:55:06 +02:00
plugin Standardise layout and naming in corelib benchmarks 2021-08-30 19:21:08 +02:00
text Standardise layout and naming in corelib benchmarks 2021-08-30 19:21:08 +02:00
thread Use QPromise when creating continuations to avoid memory leaks 2022-01-21 01:51:20 +01:00
time Standardise layout and naming in corelib benchmarks 2021-08-30 19:21:08 +02:00
tools Fix the benchmark for QList::removeAll() 2021-12-09 03:45:08 +01:00
CMakeLists.txt Add QSortFilterProxyModel clear-filter benchmark 2021-04-25 13:25:01 +03:00