summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/code
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-04-28 14:25:53 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2022-05-02 09:40:02 +0200
commitd5113384c9ef9a3b01a856b7317d7d756023af91 (patch)
tree27d1f8e0da60335d930650c205edd67fc369043a /src/testlib/doc/snippets/code
parentb41b1a3f6ffb51a9c62cbe49ff2b7fc6a6af62cc (diff)
AppleUnifiedLogger: Remove manually managed os_log_t cache
The os_log_create API documents that the logging subsystem will maintain a global list of logs, and will return existing logs for subsequent calls for the same category and subsystem, so we don't need to maintain our own log. This also avoids a crash were we would end up in the logging backend during application shutdown, when destructor functions run, for example via QLibraryStore::cleanup(). In this case local static such as our log cache had already been destroyed, leading to use after free. Pick-to: 6.2 6.3 5.15 Change-Id: I91abfef6c56f8ca6dd8d602ac83aa163ce3d6860 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions