diff options
| author | Qi Wang <interwq@gwu.edu> | 2017-06-06 21:44:39 -0700 |
|---|---|---|
| committer | Qi Wang <interwq@gmail.com> | 2017-06-07 11:03:49 -0700 |
| commit | 00869e39a334f3d869dfb9f8e651c2de3dded76f (patch) | |
| tree | 41502cb2f1679d9e0e1132fb2c92eec1f2b5a7b3 /test | |
| parent | 29c2577ee0bfa57009a5827bd44cab04b738a914 (diff) | |
| download | platform_external_jemalloc_new-00869e39a334f3d869dfb9f8e651c2de3dded76f.tar.gz platform_external_jemalloc_new-00869e39a334f3d869dfb9f8e651c2de3dded76f.tar.bz2 platform_external_jemalloc_new-00869e39a334f3d869dfb9f8e651c2de3dded76f.zip | |
Make tsd no-cleanup during tsd reincarnation.
Since tsd cleanup isn't guaranteed when reincarnated, we set up tsd in a way
that needs no cleanup, by making it going through slow path instead.
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/tsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/tsd.c b/test/unit/tsd.c index c9a7d809..6c479139 100644 --- a/test/unit/tsd.c +++ b/test/unit/tsd.c @@ -106,8 +106,8 @@ thd_start_reincarnated(void *arg) { "TSD state should be reincarnated\n"); p = mallocx(1, MALLOCX_TCACHE_NONE); assert_ptr_not_null(p, "Unexpected malloc() failure"); - assert_ptr_not_null(*tsd_arenap_get_unsafe(tsd), - "Should have tsd arena set after reincarnation."); + assert_ptr_null(*tsd_arenap_get_unsafe(tsd), + "Should not have tsd arena set after reincarnation."); free(p); tsd_cleanup((void *)tsd); |
