Index: tools/tsan.supp |
diff --git a/tools/tsan.supp b/tools/tsan.supp |
index 8d97964f60dbf848cc07b914e1fe3258a150082b..d87f48609f93b161f97319502809eb7262b4e245 100644 |
--- a/tools/tsan.supp |
+++ b/tools/tsan.supp |
@@ -4,4 +4,9 @@ |
race:third_party/externals/libwebp |
# skia:2459 Seemingly misdiagnosed use-after-free, having something to do with software GL drivers. |
-race:swrast_dri.so # If this doesn't work, it's got to be SkGLContextHelper::init :( |
+race:SkGLContextHelper::init # We don't always get swrast_dri.so in the stack or we'd use that. |
+ |
+# For now assume anything using SkOnce and calls on SkRefCntBase (ref, unref, unique) are safe. |
+# TODO(mtklein): teach TSAN about SkOnce, SkRefCnt and SkSpinlock correctly. |
+race:SkOnce |
+race:SkRefCntBase |