HRESULT AssemblySpec::InitializeSpecInternal(mdToken kAssemblyToken,
IMDInternalImport *pImport,
- DomainAssembly *pStaticParent,
- BOOL fAllowAllocation)
+ DomainAssembly *pStaticParent)
{
CONTRACTL
{
INSTANCE_CHECK;
- if (fAllowAllocation) {GC_TRIGGERS;} else {GC_NOTRIGGER;};
- if (fAllowAllocation) {INJECT_FAULT(COMPlusThrowOM());} else {FORBID_FAULT;};
+ GC_NOTRIGGER;
NOTHROW;
MODE_ANY;
PRECONDITION(pImport->IsValidToken(kAssemblyToken));
{
INSTANCE_CHECK;
THROWS;
- GC_TRIGGERS;
+ GC_NOTRIGGER;
MODE_ANY;
PRECONDITION(CheckPointer(pFile));
INJECT_FAULT(COMPlusThrowOM(););
HRESULT InitializeSpecInternal(mdToken kAssemblyRefOrDef,
IMDInternalImport *pImport,
- DomainAssembly *pStaticParent,
- BOOL fAllowAllocation);
+ DomainAssembly *pStaticParent);
// InitializeSpecInternal should be used very carefully so it's made private.
// functions that take special care (and thus are allowed to use the function) are listed below
CONTRACTL
{
INSTANCE_CHECK;
- GC_TRIGGERS;
+ GC_NOTRIGGER;
THROWS;
MODE_ANY;
}
CONTRACTL_END;
- HRESULT hr=InitializeSpecInternal(kAssemblyRefOrDef, pImport,pStaticParent,TRUE);
+ HRESULT hr=InitializeSpecInternal(kAssemblyRefOrDef, pImport,pStaticParent);
if(FAILED(hr))
EEFileLoadException::Throw(this,hr);
};
AssemblySpec spec;
if (FAILED(spec.InitializeSpecInternal(kAssemblyRef,
pMDImport,
- pCurAssemblyInExamineDomain,
- FALSE /*fAllowAllocation*/)))
+ pCurAssemblyInExamineDomain)))
{
continue;
}
{
PRECONDITION(CheckValue(result));
THROWS;
- GC_TRIGGERS;
+ GC_NOTRIGGER;
MODE_ANY;
}
CONTRACTL_END;