teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0742-hashmap-don-t-use-mempool.patch

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