+2003-02-11 Zoltan Varga <vargaz@freemail.hu>
+
+ * trampoline.c (arch_create_jit_trampoline): This function should
+ allways return a trampoline for managed methods. Fixes bug #29859.
+
2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* debug.c: allocate debug->source_files. Fixes GLib-CRITICAL upon
gpointer
arch_create_jit_trampoline (MonoMethod *method)
{
- MonoDomain *domain = mono_domain_get ();
guint8 *code, *buf;
- GHashTable *jit_code_hash;
/* previously created trampoline code */
if (method->info)
return method->info;
}
- /* check if we already have JITed code */
- if (mono_jit_share_code)
- jit_code_hash = mono_root_domain->jit_code_hash;
- else
- jit_code_hash = domain->jit_code_hash;
-
- if ((code = g_hash_table_lookup (jit_code_hash, method))) {
- mono_jit_stats.methods_lookups++;
- return code;
- }
-
if (!mono_generic_trampoline_code) {
mono_generic_trampoline_code = buf = g_malloc (256);
/* save caller save regs because we need to do a call */