X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fobject.c;h=565285f5b14be303b2c164f5abbcdf6e19de70c4;hb=5b558abeeb255a3179d4ca6a85617e051c6abd38;hp=f65b690c4e7608d66d5e370652ee1c991e5d8f68;hpb=45890e8b46ac438d2b8ccc1bd0d74eea31870de1;p=mono.git diff --git a/mono/metadata/object.c b/mono/metadata/object.c index f65b690c4e7..565285f5b14 100644 --- a/mono/metadata/object.c +++ b/mono/metadata/object.c @@ -1709,8 +1709,12 @@ mono_method_add_generic_virtual_invocation (MonoDomain *domain, MonoVTable *vtab g_ptr_array_free (sorted, TRUE); } +#ifndef __native_client__ + /* We don't re-use any thunks as there is a lot of overhead */ + /* to deleting and re-using code in Native Client. */ if (old_thunk != vtable_trampoline && old_thunk != imt_trampoline) invalidate_generic_virtual_thunk (domain, old_thunk); +#endif } mono_domain_unlock (domain);