diff --git a/include/jemalloc/internal/atomic.h b/include/jemalloc/internal/atomic.h index 84fbbdfb..866adff0 100644 --- a/include/jemalloc/internal/atomic.h +++ b/include/jemalloc/internal/atomic.h @@ -98,6 +98,9 @@ JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(unsigned, u) JEMALLOC_GENERATE_INT_ATOMICS(size_t, zu, LG_SIZEOF_PTR) JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(size_t, zu) +JEMALLOC_GENERATE_INT_ATOMICS(ssize_t, zd, LG_SIZEOF_PTR) +JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(ssize_t, zd) + JEMALLOC_GENERATE_INT_ATOMICS(uint32_t, u32, 2) JEMALLOC_GENERATE_COMPATABILITY_INT_ATOMICS(uint32_t, u32) diff --git a/test/unit/atomic.c b/test/unit/atomic.c index 237c7474..fa24415a 100644 --- a/test/unit/atomic.c +++ b/test/unit/atomic.c @@ -249,6 +249,13 @@ TEST_BEGIN(test_atomic_zu) { } TEST_END +TEST_STRUCT(ssize_t, zd); +TEST_BEGIN(test_atomic_zd) { + INTEGER_TEST_BODY(ssize_t, zd); +} +TEST_END + + TEST_STRUCT(unsigned, u); TEST_BEGIN(test_atomic_u) { INTEGER_TEST_BODY(unsigned, u); @@ -262,5 +269,6 @@ main(void) { test_atomic_u32, test_atomic_p, test_atomic_zu, + test_atomic_zd, test_atomic_u); }