diff options
| author | Antonio Napolitano <anton@polit.no> | 2023-12-30 19:11:32 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-02-07 13:11:35 +0000 |
| commit | f1d0468a0c9ccf16d115aaca925468ffcddff568 (patch) | |
| tree | c21fc2dc7e4cf11d0ae330f0ff8b31af441260a7 /examples/qml/referenceexamples/adding/example.qml | |
| parent | bba76cd15f718c79f9c5e6f5e297ed211887f5f4 (diff) | |
masm: Don't crash on failed MADV_DONTNEED on Linux
The application could call mlockall(MCL_CURRENT|MCL_FUTURE) to lock all
its memory for performance reasons, causing the madvise call to fail.
There's no need to crash. Instead, manually zero-out the memory when
decommitting.
Fixes: QTBUG-120450
Change-Id: I6f1a8968853cc5e61561371bd2a435a686eaf0e4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 524d260c5c135d193e06350e48357444ddb13ddb)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 1ead022dfea5a6b3bed8ca80de85c20cea6c809f)
(cherry picked from commit a2e0061317954fdab6f9af1ab0490944bca33873)
(cherry picked from commit 5c42f57e88681be521e3d59f9e527d3bcd4d5732)
(cherry picked from commit cb8ecdbf482d11c01115964e345f132a65bc365f)
Diffstat (limited to 'examples/qml/referenceexamples/adding/example.qml')
0 files changed, 0 insertions, 0 deletions
