797 |
ILImage **images; |
ILImage **images; |
798 |
ILImage **ptr; |
ILImage **ptr; |
799 |
|
|
800 |
IL_METADATA_RDLOCK(thread); |
IL_METADATA_RDLOCK(_ILExecThreadProcess(thread)); |
801 |
|
|
802 |
context = thread->process->context; |
context = thread->process->context; |
803 |
|
|
812 |
/* create the image array */ |
/* create the image array */ |
813 |
if (!(images = (ILImage **)ILMalloc(sizeof(ILImage *)*num))) |
if (!(images = (ILImage **)ILMalloc(sizeof(ILImage *)*num))) |
814 |
{ |
{ |
815 |
IL_METADATA_UNLOCK(thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(thread)); |
816 |
ILExecThreadThrowOutOfMemory(thread); |
ILExecThreadThrowOutOfMemory(thread); |
817 |
return 0; |
return 0; |
818 |
} |
} |
826 |
++ptr; |
++ptr; |
827 |
} |
} |
828 |
|
|
829 |
IL_METADATA_UNLOCK(thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(thread)); |
830 |
|
|
831 |
/* create the assembly array */ |
/* create the assembly array */ |
832 |
array = (System_Array *)ILExecThreadNew(thread, |
array = (System_Array *)ILExecThreadNew(thread, |
2683 |
if(method) |
if(method) |
2684 |
{ |
{ |
2685 |
/* Create a closure for the method, without a delegate around it */ |
/* Create a closure for the method, without a delegate around it */ |
2686 |
return (ILNativeInt)(_ILMakeClosureForDelegate(0, method)); |
return (ILNativeInt)(_ILMakeClosureForDelegate(_ILExecThreadProcess(thread), |
2687 |
|
0, method)); |
2688 |
} |
} |
2689 |
else |
else |
2690 |
#endif |
#endif |