include/vcl/dropcache.hxx        |   10 ++++++++++
 sc/source/ui/unoobj/shapeuno.cxx |    2 ++
 2 files changed, 12 insertions(+)

New commits:
commit b50b8c227a014c2f5590be6ff1a8e9d7594d2382
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Jun 8 10:53:16 2025 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Jun 8 19:46:37 2025 +0200

    cid#1648524 silence Data race condition
    
    Change-Id: I7a1df9310558c0edc6fe783d0cd2969b7bfcd477
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186264
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/include/vcl/dropcache.hxx b/include/vcl/dropcache.hxx
index 3a9854f203f9..13bf55c99364 100644
--- a/include/vcl/dropcache.hxx
+++ b/include/vcl/dropcache.hxx
@@ -11,6 +11,16 @@
 
 #include <vcl/dllapi.h>
 
+#if defined(__COVERITY__)
+#define THREAD_UNSAFE_DUMP_BEGIN                                               
                    \
+    _Pragma(                                                                   
                    \
+        "coverity compliance block deviate MISSING_LOCK \"Intentionally 
thread-unsafe dumping\"")
+#define THREAD_UNSAFE_DUMP_END _Pragma("coverity compliance end_block 
MISSING_LOCK")
+#else
+#define THREAD_UNSAFE_DUMP_BEGIN
+#define THREAD_UNSAFE_DUMP_END
+#endif
+
 namespace rtl
 {
 class OStringBuffer;
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 88d31031e7ba..171eb0a2371f 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -240,8 +240,10 @@ private:
 
     virtual void dumpState(rtl::OStringBuffer& rState) override
     {
+        THREAD_UNSAFE_DUMP_BEGIN
         rState.append("
PropertySetInfoCache:   ");
         rState.append(static_cast<sal_Int32>(gCacheMap.size()));
+        THREAD_UNSAFE_DUMP_END
     }
 
     std::mutex gCacheMutex;

Reply via email to