X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fjit-info.c;h=e94b73d590cfe85fd055d00b341fc8d84198c924;hb=58e8a9f85176c9607e605b888ef45db01a0f6997;hp=2f4be6663ff503b84ec0f3f1983d4587fca2d875;hpb=4428d538123e48267b4ced413e1be2fdc4011b9a;p=mono.git diff --git a/mono/metadata/jit-info.c b/mono/metadata/jit-info.c index 2f4be6663ff..e94b73d590c 100644 --- a/mono/metadata/jit-info.c +++ b/mono/metadata/jit-info.c @@ -8,6 +8,7 @@ * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2009 Novell, Inc (http://www.novell.com) * Copyright 2011-2012 Xamarin, Inc (http://www.xamarin.com) + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include @@ -613,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; @@ -691,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); }