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