From 71687b8b089995adeb99fad9ec44f4d5b41a5715 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Wed, 14 Aug 2019 03:33:58 -0700 Subject: [PATCH] Make small_id_mutex not recursive. (mono/mono#15485) (Later non-recursive Windows mutexes should be SRWLOCK and only statically initialized.) Commit migrated from https://github.com/mono/mono/commit/60ac98ee29d267646629bc39558f44e4e5af8b4e --- src/mono/mono/utils/hazard-pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/utils/hazard-pointer.c b/src/mono/mono/utils/hazard-pointer.c index 86f8d21..8fe373e 100644 --- a/src/mono/mono/utils/hazard-pointer.c +++ b/src/mono/mono/utils/hazard-pointer.c @@ -401,7 +401,7 @@ mono_thread_smr_init (void) { int i; - mono_os_mutex_init_recursive(&small_id_mutex); + mono_os_mutex_init (&small_id_mutex); mono_counters_register ("Hazardous pointers", MONO_COUNTER_JIT | MONO_COUNTER_INT, &hazardous_pointer_count); for (i = 0; i < HAZARD_TABLE_OVERFLOW; ++i) { -- 2.7.4