@@ -266,8 +266,6 @@ static gboolean debugger_enabled = FALSE;
266266
267267static MonoException * do_transform_method (InterpMethod * imethod , InterpFrame * method , ThreadContext * context );
268268
269- static InterpMethod * lookup_method_pointer (gpointer addr );
270-
271269typedef void (* ICallMethod ) (InterpFrame * frame );
272270
273271static MonoNativeTlsKey thread_context_id ;
@@ -3262,20 +3260,6 @@ interp_compile_interp_method (MonoMethod *method, MonoError *error)
32623260 return imethod -> jinfo ;
32633261}
32643262
3265- static InterpMethod *
3266- lookup_method_pointer (gpointer addr )
3267- {
3268- InterpMethod * res = NULL ;
3269- MonoJitMemoryManager * jit_mm = get_default_jit_mm ();
3270-
3271- jit_mm_lock (jit_mm );
3272- if (jit_mm -> interp_method_pointer_hash )
3273- res = (InterpMethod * )g_hash_table_lookup (jit_mm -> interp_method_pointer_hash , addr );
3274- jit_mm_unlock (jit_mm );
3275-
3276- return res ;
3277- }
3278-
32793263#ifndef MONO_ARCH_HAVE_INTERP_NATIVE_TO_MANAGED
32803264static void
32813265interp_no_native_to_managed (void )
@@ -3380,13 +3364,6 @@ interp_create_method_pointer_llvmonly (MonoMethod *method, gboolean unbox, MonoE
33803364
33813365 addr = mini_llvmonly_create_ftndesc (method , entry_wrapper , entry_ftndesc );
33823366
3383- MonoJitMemoryManager * jit_mm = jit_mm_for_method (method );
3384- jit_mm_lock (jit_mm );
3385- if (!jit_mm -> interp_method_pointer_hash )
3386- jit_mm -> interp_method_pointer_hash = g_hash_table_new (NULL , NULL );
3387- g_hash_table_insert (jit_mm -> interp_method_pointer_hash , addr , imethod );
3388- jit_mm_unlock (jit_mm );
3389-
33903367 mono_memory_barrier ();
33913368 if (unbox )
33923369 imethod -> llvmonly_unbox_entry = addr ;
@@ -3538,13 +3515,6 @@ interp_create_method_pointer (MonoMethod *method, gboolean compile, MonoError *e
35383515
35393516 addr = mono_create_ftnptr_arg_trampoline (ftndesc , entry_wrapper );
35403517
3541- MonoJitMemoryManager * jit_mm = get_default_jit_mm ();
3542- jit_mm_lock (jit_mm );
3543- if (!jit_mm -> interp_method_pointer_hash )
3544- jit_mm -> interp_method_pointer_hash = g_hash_table_new (NULL , NULL );
3545- g_hash_table_insert (jit_mm -> interp_method_pointer_hash , addr , imethod );
3546- jit_mm_unlock (jit_mm );
3547-
35483518 mono_memory_barrier ();
35493519 imethod -> jit_entry = addr ;
35503520
@@ -3555,23 +3525,16 @@ static void
35553525interp_free_method (MonoMethod * method )
35563526{
35573527 MonoJitMemoryManager * jit_mm = jit_mm_for_method (method );
3558- InterpMethod * imethod ;
35593528 MonoDynamicMethod * dmethod = (MonoDynamicMethod * )method ;
35603529
35613530 jit_mm_lock (jit_mm );
3562- imethod = (InterpMethod * )mono_internal_hash_table_lookup (& jit_mm -> interp_code_hash , method );
35633531
35643532#if HOST_BROWSER
3533+ InterpMethod * imethod = (InterpMethod * )mono_internal_hash_table_lookup (& jit_mm -> interp_code_hash , method );
35653534 mono_jiterp_free_method_data (method , imethod );
35663535#endif
35673536
35683537 mono_internal_hash_table_remove (& jit_mm -> interp_code_hash , method );
3569- if (imethod && jit_mm -> interp_method_pointer_hash ) {
3570- if (imethod -> jit_entry )
3571- g_hash_table_remove (jit_mm -> interp_method_pointer_hash , imethod -> jit_entry );
3572- if (imethod -> llvmonly_unbox_entry )
3573- g_hash_table_remove (jit_mm -> interp_method_pointer_hash , imethod -> llvmonly_unbox_entry );
3574- }
35753538 jit_mm_unlock (jit_mm );
35763539
35773540 if (dmethod -> mp ) {
0 commit comments