path: root/src/quick/items/context2d
diff options
authorLars Knoll <lars.knoll@digia.com>2017-04-21 11:57:22 +0200
committerLars Knoll <lars.knoll@qt.io>2017-04-21 10:12:28 +0000
commit3d05a10e40d4349b01e292dbc297036f8de38049 (patch)
tree5b05c0369d3e3fbe0a28ea77b9b9f8ac420a2eeb /src/quick/items/context2d
parent85eaae8b4c7e3cf0cf7eb69e3ba0affb820ac08e (diff)
Fix GC corruption on macOS and possibly some other OSes
Marking mmap'ed memory as unneeded, leads to it being zeroed out on both Linux and Windows. Unfortunately that behavior is not defined by POSIX, so BSD based OSes (and possible others as well) do not do this. We do however rely on getting zeroed out memory whenever we allocate a new Chunk for the garbage collector. To work around this, zero out memory we deallocate on those platforms. Task-number: QTBUG-59278 Task-number: QTBUG-59977 Change-Id: Idde812db8537b63b9e9df7de41620ce0df09b6de Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/quick/items/context2d')
0 files changed, 0 insertions, 0 deletions