private event ModuleResolveEventHandler _ModuleResolve;
private string? m_fullname;
private object? m_syncRoot; // Used to keep collectible types alive and as the syncroot for reflection.emit
+#pragma warning disable 169
private IntPtr m_assembly; // slack for ptr datum on unmanaged side
+#pragma warning restore 169
#endregion
{
dwUseIdentityFlags &= ~AssemblyIdentity::IDENTITY_FLAG_CONTENT_TYPE;
}
+ if ((dwIncludeFlags & INCLUDE_PUBLIC_KEY_TOKEN) == 0)
+ {
+ dwUseIdentityFlags &= ~AssemblyIdentity::IDENTITY_FLAG_PUBLIC_KEY;
+ dwUseIdentityFlags &= ~AssemblyIdentity::IDENTITY_FLAG_PUBLIC_KEY_TOKEN;
+ }
+ if ((dwIncludeFlags & EXCLUDE_CULTURE) != 0)
+ {
+ dwUseIdentityFlags &= ~AssemblyIdentity::IDENTITY_FLAG_CULTURE;
+ }
dwHash ^= static_cast<DWORD>(HashCaseInsensitive(GetSimpleName()));
dwHash = _rotl(dwHash, 4);
else
{
// Compute parent assembly
- if (gc.requestingAssembly == NULL)
+ if (gc.requestingAssembly != NULL)
{
- pRefAssembly = SystemDomain::GetCallersAssembly(stackMark);
+ pRefAssembly = gc.requestingAssembly->GetAssembly();
}
- else
+ else if (ptrLoadContextBinder == NULL)
{
- pRefAssembly = gc.requestingAssembly->GetAssembly();
+ pRefAssembly = SystemDomain::GetCallersAssembly(stackMark);
}
if (pRefAssembly)
{
- pParentAssembly= pRefAssembly->GetDomainAssembly();
+ pParentAssembly = pRefAssembly->GetDomainAssembly();
}
}
}
},
{
+ "name": "System.Runtime.Loader.DefaultContext.Tests",
+ "enabled": true,
+ "exclusions": {
+ "namespaces": null,
+ "classes": null,
+ "methods": [
+ {
+ "name" : "System.Runtime.Loader.Tests.DefaultLoadContextTests.LoadInDefaultContext",
+ "reason" : "Waiting for https://github.com/dotnet/corefx/pull/37071"
+ }
+ ]
+ }
+ },
+ {
"name": "System.Runtime.Loader.Tests",
"enabled": true,
"exclusions": {
{
TestAssemblyLoad(isolated, (string assemblyName) => Assembly.Load(assemblyName));
TestAssemblyLoad(isolated, (string assemblyName) => Assembly.Load(new AssemblyName(assemblyName)));
+#pragma warning disable 618
+ TestAssemblyLoad(isolated, (string assemblyName) => Assembly.LoadWithPartialName(assemblyName));
+#pragma warning restore 618
}
void TestAssemblyLoad(bool isolated, Func<string, Assembly> assemblyLoad)
TestMockAssemblyThrows();
}
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
public void RunTestsIsolated()
{
VerifyIsolationAlc();
Assembly alcAssembly { get; }
Type alcProgramType { get; }
IProgram alcProgramInstance { get; }
- [MethodImplAttribute(MethodImplOptions.NoInlining)]
void RunTestsIsolated();
}