Index: include/core/SkPostConfig.h |
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h |
index 2156519b2d3967e139888c6a4fdc41d912028507..dc76522ac15ac6b10d5b580cb470e6154962636b 100644 |
--- a/include/core/SkPostConfig.h |
+++ b/include/core/SkPostConfig.h |
@@ -120,12 +120,12 @@ |
* SK_ENABLE_INST_COUNT controlls printing how many reference counted objects |
* are still held on exit. |
* Defaults to 1 in DEBUG and 0 in RELEASE. |
- * FIXME: currently always 0, since it fails if multiple threads run at once |
- * (see skbug.com/1219 ). |
*/ |
#ifndef SK_ENABLE_INST_COUNT |
# ifdef SK_DEBUG |
-# define SK_ENABLE_INST_COUNT 0 |
+// Only enabled for static builds, because instance counting relies on static |
+// variables in functions defined in header files. |
+# define SK_ENABLE_INST_COUNT !defined(SKIA_DLL) |
# else |
# define SK_ENABLE_INST_COUNT 0 |
# endif |