132 |
} |
} |
133 |
|
|
134 |
/* Make sure that the class has been laid out */ |
/* Make sure that the class has been laid out */ |
135 |
IL_METADATA_WRLOCK(thread); |
IL_METADATA_WRLOCK(_ILExecThreadProcess(thread)); |
136 |
if(!_ILLayoutClass(classInfo)) |
if(!_ILLayoutClass(_ILExecThreadProcess(thread), classInfo)) |
137 |
{ |
{ |
138 |
IL_METADATA_UNLOCK(thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(thread)); |
139 |
thread->thrownException = _ILSystemException |
thread->thrownException = _ILSystemException |
140 |
(thread, "System.TypeInitializationException"); |
(thread, "System.TypeInitializationException"); |
141 |
return 0; |
return 0; |
142 |
} |
} |
143 |
IL_METADATA_UNLOCK(thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(thread)); |
144 |
|
|
145 |
/* Does the class already have a "ClrType" instance? */ |
/* Does the class already have a "ClrType" instance? */ |
146 |
if(((ILClassPrivate *)(classInfo->userData))->clrType) |
if(((ILClassPrivate *)(classInfo->userData))->clrType) |