Commit bebdb218 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

use the doug mallocator

git-svn-id: file:///svn/toku/tokudb.1032b@8443 c7de825b-a66e-492c-adef-691d508d4ae1
parent 050f50e1
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// hook my_malloc_always_fails into malloc to control malloc and verify // hook my_malloc_always_fails into malloc to control malloc and verify
// the correct recovery from malloc failures // the correct recovery from malloc failures
#if defined(__linux__) #if defined(__linux__)
#define DO_MALLOC_HOOK 1 #define DO_MALLOC_HOOK 0
#else #else
#define DO_MALLOC_HOOK 0 #define DO_MALLOC_HOOK 0
#endif #endif
...@@ -31,7 +31,7 @@ test_cachetable_create(void) { ...@@ -31,7 +31,7 @@ test_cachetable_create(void) {
} }
// verify that cachetable create with no memory returns ENOMEM // verify that cachetable create with no memory returns ENOMEM
#if defined(__linux__) #if DO_MALLOC_HOOK
static void static void
test_cachetable_create_no_memory (void) { test_cachetable_create_no_memory (void) {
...@@ -668,7 +668,7 @@ test_main (int argc, const char *argv[]) { ...@@ -668,7 +668,7 @@ test_main (int argc, const char *argv[]) {
test_multi_filehandles(); test_multi_filehandles();
#endif #endif
test_cachetable_create(); test_cachetable_create();
#if defined(__linux__) #if DO_MALLOC_HOOK
if (do_malloc_fail) if (do_malloc_fail)
test_cachetable_create_no_memory(); // fails with valgrind test_cachetable_create_no_memory(); // fails with valgrind
#endif #endif
......
...@@ -73,7 +73,7 @@ fidle (void *arg) { ...@@ -73,7 +73,7 @@ fidle (void *arg) {
} }
#if defined(__linux__) #if defined(__linux__)
#define DO_MALLOC_HOOK 1 #define DO_MALLOC_HOOK 0
#else #else
#define DO_MALLOC_HOOK 0 #define DO_MALLOC_HOOK 0
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment