Loading linux/memory.c +2 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ void * toku_malloc(size_t size) { void *p = t_malloc ? t_malloc(size) : os_malloc(size); if (p) { ANNOTATE_NEW_MEMORY(p, size); ANNOTATE_NEW_MEMORY(p, size); // see #4671 and https://bugs.kde.org/show_bug.cgi?id=297147 if (toku_memory_do_stats) { size_t used = my_malloc_usable_size(p); __sync_add_and_fetch(&status.malloc_count, 1); Loading Loading @@ -187,7 +187,7 @@ toku_xmalloc(size_t size) { void *p = t_xmalloc ? t_xmalloc(size) : os_malloc(size); if (p == NULL) // avoid function call in common case resource_assert(p); ANNOTATE_NEW_MEMORY(p, size); ANNOTATE_NEW_MEMORY(p, size); // see #4671 and https://bugs.kde.org/show_bug.cgi?id=297147 if (toku_memory_do_stats) { size_t used = my_malloc_usable_size(p); __sync_add_and_fetch(&status.malloc_count, 1); Loading Loading
linux/memory.c +2 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,7 @@ void * toku_malloc(size_t size) { void *p = t_malloc ? t_malloc(size) : os_malloc(size); if (p) { ANNOTATE_NEW_MEMORY(p, size); ANNOTATE_NEW_MEMORY(p, size); // see #4671 and https://bugs.kde.org/show_bug.cgi?id=297147 if (toku_memory_do_stats) { size_t used = my_malloc_usable_size(p); __sync_add_and_fetch(&status.malloc_count, 1); Loading Loading @@ -187,7 +187,7 @@ toku_xmalloc(size_t size) { void *p = t_xmalloc ? t_xmalloc(size) : os_malloc(size); if (p == NULL) // avoid function call in common case resource_assert(p); ANNOTATE_NEW_MEMORY(p, size); ANNOTATE_NEW_MEMORY(p, size); // see #4671 and https://bugs.kde.org/show_bug.cgi?id=297147 if (toku_memory_do_stats) { size_t used = my_malloc_usable_size(p); __sync_add_and_fetch(&status.malloc_count, 1); Loading