X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fjit-info.c;h=e94b73d590cfe85fd055d00b341fc8d84198c924;hb=58e8a9f85176c9607e605b888ef45db01a0f6997;hp=c8d5f588322040c152b1d18ec78c60ad5aa10cef;hpb=5275f3f3c638856c811a3b842e0f0b0d0fce4b43;p=mono.git diff --git a/mono/metadata/jit-info.c b/mono/metadata/jit-info.c index c8d5f588322..e94b73d590c 100644 --- a/mono/metadata/jit-info.c +++ b/mono/metadata/jit-info.c @@ -614,7 +614,7 @@ jit_info_table_add (MonoDomain *domain, MonoJitInfoTable *volatile *table_ptr, M *table_ptr = new_table; mono_memory_barrier (); domain->num_jit_info_tables++; - mono_thread_hazardous_free_or_queue (table, (MonoHazardousFreeFunc)mono_jit_info_table_free, HAZARD_FREE_MAY_LOCK, HAZARD_FREE_SAFE_CTX); + mono_thread_hazardous_try_free (table, (MonoHazardousFreeFunc)mono_jit_info_table_free); table = new_table; goto restart; @@ -692,7 +692,7 @@ mono_jit_info_free_or_queue (MonoDomain *domain, MonoJitInfo *ji) if (domain->num_jit_info_tables <= 1) { /* Can it actually happen that we only have one table but ji is still hazardous? */ - mono_thread_hazardous_free_or_queue (ji, g_free, HAZARD_FREE_MAY_LOCK, HAZARD_FREE_SAFE_CTX); + mono_thread_hazardous_try_free (ji, g_free); } else { domain->jit_info_free_queue = g_slist_prepend (domain->jit_info_free_queue, ji); }