aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-09-23 12:18:36 -0700
committerJason Evans <jasone@canonware.com>2016-09-23 12:21:34 -0700
commit0222fb41d1fc8e882f7872999ddaa09193d58912 (patch)
treea9e54ad357551250e2d12f92f861e638b08bad0a /include
parent73868b60f22d40404572d124aa7e08de1d70724f (diff)
downloadplatform_external_jemalloc_new-0222fb41d1fc8e882f7872999ddaa09193d58912.tar.gz
platform_external_jemalloc_new-0222fb41d1fc8e882f7872999ddaa09193d58912.tar.bz2
platform_external_jemalloc_new-0222fb41d1fc8e882f7872999ddaa09193d58912.zip
Add various mutex ownership assertions.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/arena.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h
index cee90b50..1758dd02 100644
--- a/include/jemalloc/internal/arena.h
+++ b/include/jemalloc/internal/arena.h
@@ -521,6 +521,8 @@ JEMALLOC_ALWAYS_INLINE void
arena_decay_tick(tsdn_t *tsdn, arena_t *arena)
{
+ malloc_mutex_assert_not_owner(tsdn, &arena->lock);
+
arena_decay_ticks(tsdn, arena, 1);
}