aboutsummaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/background_thread_inlines.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/jemalloc/internal/background_thread_inlines.h')
-rw-r--r--include/jemalloc/internal/background_thread_inlines.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/jemalloc/internal/background_thread_inlines.h b/include/jemalloc/internal/background_thread_inlines.h
index fd5095f2..ef50231e 100644
--- a/include/jemalloc/internal/background_thread_inlines.h
+++ b/include/jemalloc/internal/background_thread_inlines.h
@@ -41,8 +41,9 @@ background_thread_indefinite_sleep(background_thread_info_t *info) {
}
JEMALLOC_ALWAYS_INLINE void
-arena_background_thread_inactivity_check(tsdn_t *tsdn, arena_t *arena) {
- if (!background_thread_enabled()) {
+arena_background_thread_inactivity_check(tsdn_t *tsdn, arena_t *arena,
+ bool is_background_thread) {
+ if (!background_thread_enabled() || is_background_thread) {
return;
}
background_thread_info_t *info =