naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
923a60
From 7ae5fed80b6d7dbe70a36e85ab05415b11bbbc00 Mon Sep 17 00:00:00 2001
923a60
From: Jan Synacek <jsynacek@redhat.com>
923a60
Date: Tue, 5 Mar 2019 10:21:55 +0100
923a60
Subject: [PATCH] hashmap: don't use mempool
923a60
923a60
RHEL-only
923a60
923a60
Resolves: #1609349
923a60
---
923a60
 src/shared/hashmap.c | 3 ++-
923a60
 1 file changed, 2 insertions(+), 1 deletion(-)
923a60
923a60
diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c
923a60
index e63ba4bb5a..c05f79a393 100644
923a60
--- a/src/shared/hashmap.c
923a60
+++ b/src/shared/hashmap.c
923a60
@@ -776,7 +776,8 @@ static struct HashmapBase *hashmap_base_new(const struct hash_ops *hash_ops, enu
923a60
         const struct hashmap_type_info *hi = &hashmap_type_info[type];
923a60
         bool use_pool;
923a60
 
923a60
-        use_pool = is_main_thread();
923a60
+        /* RHEL-only. See #1609349. */
923a60
+        use_pool = false;
923a60
 
923a60
         h = use_pool ? mempool_alloc0_tile(hi->mempool) : malloc0(hi->head_size);
923a60