Reduce usage of the loader lock in method lookup.
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 27 Oct 2014 04:52:52 +0000 (21:52 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 12 Nov 2014 16:29:06 +0000 (11:29 -0500)
commit532420cc6402ce1cc9a209044b56092b45c155c5
treebbb365b7ebe5e49c5d1dfebcb93a1e12e5489174
parent50e286b2e77a7f1d51ebc98522c323a314493b6e
Reduce usage of the loader lock in method lookup.

The function mono_method_inflated_lookup no longer needs the loader lock to be held
as the hashtable is now protected by the imageset lock.

This means that mono_class_inflate_generic_method_full_checked doesn't need to take the
loader lock.

The function mono_method_set_generic_container uses mono_image_property_insert which takes
the image lock and not the loader lock. Adjust the locking comment.
mono/metadata/class.c
mono/metadata/metadata.c