Index: Source/wtf/FastMalloc.cpp |
diff --git a/Source/wtf/FastMalloc.cpp b/Source/wtf/FastMalloc.cpp |
index cddf0617cf693a2dde2e16057ed600c35cb12f7c..fb99c379f2971c2fb850c76eb116cf5b1b43003c 100644 |
--- a/Source/wtf/FastMalloc.cpp |
+++ b/Source/wtf/FastMalloc.cpp |
@@ -136,20 +136,6 @@ static bool isForbidden() |
} |
#endif |
-void fastMallocForbid() |
-{ |
- if (isForibiddenTlsIndex == TLS_OUT_OF_INDEXES) |
- isForibiddenTlsIndex = TlsAlloc(); // a little racey, but close enough for debug only |
- TlsSetValue(isForibiddenTlsIndex, kTlsForbiddenValue); |
-} |
- |
-void fastMallocAllow() |
-{ |
- if (isForibiddenTlsIndex == TLS_OUT_OF_INDEXES) |
- return; |
- TlsSetValue(isForibiddenTlsIndex, kTlsAllowValue); |
-} |
- |
#else // !OS(WIN) |
static pthread_key_t isForbiddenKey; |
@@ -166,18 +152,6 @@ static bool isForbidden() |
return !!pthread_getspecific(isForbiddenKey); |
} |
#endif |
- |
-void fastMallocForbid() |
-{ |
- pthread_once(&isForbiddenKeyOnce, initializeIsForbiddenKey); |
- pthread_setspecific(isForbiddenKey, &isForbiddenKey); |
-} |
- |
-void fastMallocAllow() |
-{ |
- pthread_once(&isForbiddenKeyOnce, initializeIsForbiddenKey); |
- pthread_setspecific(isForbiddenKey, 0); |
-} |
#endif // OS(WIN) |
} // namespace WTF |