mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 09:07:18 +03:00
Fix tsd bootstrapping for a0malloc().
This commit is contained in:
parent
919e4a0ea9
commit
0c12dcabc5
7 changed files with 101 additions and 43 deletions
19
test/unit/a0.c
Normal file
19
test/unit/a0.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "test/jemalloc_test.h"
|
||||
|
||||
TEST_BEGIN(test_a0)
|
||||
{
|
||||
void *p;
|
||||
|
||||
p = a0malloc(1);
|
||||
assert_ptr_not_null(p, "Unexpected a0malloc() error");
|
||||
a0dalloc(p);
|
||||
}
|
||||
TEST_END
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
|
||||
return (test_no_malloc_init(
|
||||
test_a0));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue