summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-src/source/common/cmemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/icu/icu-src/source/common/cmemory.cpp')
-rw-r--r--Build/source/libs/icu/icu-src/source/common/cmemory.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/Build/source/libs/icu/icu-src/source/common/cmemory.cpp b/Build/source/libs/icu/icu-src/source/common/cmemory.cpp
index 2176c929e84..663c1411e4c 100644
--- a/Build/source/libs/icu/icu-src/source/common/cmemory.cpp
+++ b/Build/source/libs/icu/icu-src/source/common/cmemory.cpp
@@ -41,30 +41,6 @@ static int n=0;
static long b=0;
#endif
-#if U_DEBUG
-
-static char gValidMemorySink = 0;
-
-U_CAPI void uprv_checkValidMemory(const void *p, size_t n) {
- /*
- * Access the memory to ensure that it's all valid.
- * Load and save a computed value to try to ensure that the compiler
- * does not throw away the whole loop.
- * A thread analyzer might complain about un-mutexed access to gValidMemorySink
- * which is true but harmless because no one ever uses the value in gValidMemorySink.
- */
- const char *s = (const char *)p;
- char c = gValidMemorySink;
- size_t i;
- U_ASSERT(p != NULL);
- for(i = 0; i < n; ++i) {
- c ^= s[i];
- }
- gValidMemorySink = c;
-}
-
-#endif /* U_DEBUG */
-
U_CAPI void * U_EXPORT2
uprv_malloc(size_t s) {
#if U_DEBUG && defined(UPRV_MALLOC_COUNT)