mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-23 21:36:22 +03:00
Hide methods from jemalloc_init.h that are not used in other units
This commit is contained in:
parent
a34a8c5e13
commit
6e7c364e90
3 changed files with 4 additions and 18 deletions
|
|
@ -11,19 +11,6 @@ TEST_BEGIN(test_malloc_init_hard_idempotent) {
|
|||
}
|
||||
TEST_END
|
||||
|
||||
TEST_BEGIN(test_malloc_initializer_set_idempotent_on_main) {
|
||||
test_skip_if(!malloc_is_initializer());
|
||||
|
||||
malloc_initializer_set();
|
||||
|
||||
expect_true(malloc_is_initializer(),
|
||||
"malloc_is_initializer should still be true after re-setting "
|
||||
"from the same thread");
|
||||
expect_true(malloc_initializer_is_set(),
|
||||
"malloc_initializer_is_set should still be true after re-setting");
|
||||
}
|
||||
TEST_END
|
||||
|
||||
#ifdef JEMALLOC_THREADED_INIT
|
||||
static atomic_b_t initializer_worker_done;
|
||||
static atomic_b_t initializer_worker_result;
|
||||
|
|
@ -69,6 +56,5 @@ TEST_END
|
|||
int
|
||||
main(void) {
|
||||
return test(test_malloc_init_hard_idempotent,
|
||||
test_malloc_initializer_set_idempotent_on_main,
|
||||
test_malloc_is_initializer_false_in_worker);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue