[runtime] Make mono_class_is_assignable_from lazy resolve its arguments.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 7 Jan 2014 22:41:26 +0000 (17:41 -0500)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 7 Jan 2014 22:41:26 +0000 (17:41 -0500)
commitdecc91e8dae894cc57a43acce0293f5b05f67be2
treec65b7c4ce5d1ab80b81a8a3b82ed8d40ff1698dc
parentbc6387b7ddb863877dc403d976af3a6c57fbf08f
[runtime] Make mono_class_is_assignable_from lazy resolve its arguments.

Drop the requirement to call mono_class_init in mono_class_is_assignable_from.

The solution is not ideal as it relies on mono_class_implement_interface_slow which
is significantly slower than the regular checks and is less tested / complete.

The right approach here would be to promote setup_offsets to have proper laziness and
not be hidden behind vtable initialization. Until this happen we can't drop the
usage of the slow variant here.
mono/metadata/class.c