X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-threads.c;h=0b142ee1c3f0024fedbce186aa41c65df83e484e;hb=58e8a9f85176c9607e605b888ef45db01a0f6997;hp=21fae2f60784525c7d4592470a95c0532d4a898b;hpb=5275f3f3c638856c811a3b842e0f0b0d0fce4b43;p=mono.git diff --git a/mono/utils/mono-threads.c b/mono/utils/mono-threads.c index 21fae2f6078..0b142ee1c3f 100644 --- a/mono/utils/mono-threads.c +++ b/mono/utils/mono-threads.c @@ -425,7 +425,10 @@ unregister_thread (void *arg) g_byte_array_free (info->stackdata, /*free_segment=*/TRUE); /*now it's safe to free the thread info.*/ - mono_thread_hazardous_free_or_queue (info, free_thread_info, HAZARD_FREE_MAY_LOCK, HAZARD_FREE_SAFE_CTX); + mono_thread_hazardous_try_free (info, free_thread_info); + /* Pump the HP queue */ + mono_thread_hazardous_try_free_some (); + mono_thread_small_id_free (small_id); }