https://bugs.kde.org/show_bug.cgi?id=507186

--- Comment #3 from Milian Wolff <[email protected]> ---
Does something like this help in your case?

```
diff --git a/src/track/libheaptrack.cpp b/src/track/libheaptrack.cpp
index 4be3dcd..07c24a9 100644
--- a/src/track/libheaptrack.cpp
+++ b/src/track/libheaptrack.cpp
@@ -108,11 +108,9 @@ struct RecursionGuard
     }

     const bool wasLocked;
-    static thread_local bool isActive;
+    inline static thread_local bool isActive
__attribute((tls_model("initial-exec"))) = false;
 };

-thread_local bool RecursionGuard::isActive = false;
-
 enum DebugVerbosity
 {
     WarningOutput,

```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to