Commit f56ef744 authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:3092] Replace raw abort() calls with resource_assert() calls in xmalloc...

[t:3092] Replace raw abort() calls with resource_assert() calls in xmalloc functions.  This will provide more information in error logs on crash.

git-svn-id: file:///svn/toku/tokudb@26163 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3c3d05f4
......@@ -78,7 +78,7 @@ toku_free_n(void* p, size_t size __attribute__((unused)))
void *
toku_xmalloc(size_t size) {
void *r = toku_malloc(size);
if (r==0) abort();
resource_assert(r);
return r;
}
......@@ -95,7 +95,7 @@ void *
toku_xrealloc(void *v, size_t size)
{
void *r = toku_realloc(v, size);
if (r==0) abort();
resource_assert(r);
return r;
}
......
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