On Jun 21, 2013, at 7:42 PM, Dan Barowy <m...@ettinsmoor.net> wrote:
>  [MethodImplAttribute(MethodImplOptions.InternalCall)]
>  private extern static int GetTargetHandle(object obj, int handle, 
> GCHandleType type);

MethodImplOptions.InternalCall means "implemented in libmono*.so", so you need 
to look in mono/mono.

The easiest way is usually a recursive grep, which would find:

        https://github.com/mono/mono/blob/master/mono/metadata/gc.c#L527
        https://github.com/mono/mono/blob/master/mono/metadata/gc.c#L550

The C# method is hooked up to the above C method via 

        https://github.com/mono/mono/blob/master/mono/metadata/icall-def.h#L667
        https://github.com/mono/mono/blob/master/mono/metadata/icall.c

 - Jon

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to