diff options
| author | Antonio Napolitano <anton@polit.no> | 2023-12-30 19:11:32 +0100 |
|---|---|---|
| committer | Antonio Napolitano <anton@polit.no> | 2024-01-30 11:06:03 +0100 |
| commit | 524d260c5c135d193e06350e48357444ddb13ddb (patch) | |
| tree | d867a9b06d0ba64c61c4d0dfd5dbc00bae534edc /src/qml/jsruntime/qv4object.cpp | |
| parent | 5d79b207c7a47ac96a32c9aff3527e052364b209 (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
Pick-to: 5.15 6.2 6.5 6.6 6.7
Change-Id: I6f1a8968853cc5e61561371bd2a435a686eaf0e4
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4object.cpp')
0 files changed, 0 insertions, 0 deletions
