diff options
author | Qi Wang <interwq@gwu.edu> | 2019-04-02 20:02:56 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-04-02 23:53:00 (GMT) |
commit | 6fe11633b066d74bdbb0f037a373af6e12a8b6c2 (patch) | |
tree | 6cf66eaeb07d4478519b61471b026f6780c9ff44 | |
parent | 064d6e570e7073096471413f6a5159541478eb01 (diff) | |
download | jemalloc-6fe11633b066d74bdbb0f037a373af6e12a8b6c2.zip jemalloc-6fe11633b066d74bdbb0f037a373af6e12a8b6c2.tar.gz jemalloc-6fe11633b066d74bdbb0f037a373af6e12a8b6c2.tar.bz2 |
Fix the binshard unit test.
The test attempts to trigger usage of multiple sharded bins, which percpu_arena
makes it less reliable.
-rw-r--r-- | test/unit/binshard.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/binshard.c b/test/unit/binshard.c index 406c46c..d7a8df8 100644 --- a/test/unit/binshard.c +++ b/test/unit/binshard.c @@ -82,6 +82,9 @@ thd_start(void *varg) { } TEST_BEGIN(test_bin_shard_mt) { + test_skip_if(have_percpu_arena && + PERCPU_ARENA_ENABLED(opt_percpu_arena)); + thd_t thds[NTHREADS]; unsigned i; for (i = 0; i < NTHREADS; i++) { |