From 206f9680303134731862a35338618f2cbd225651 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Thu, 11 Apr 2019 00:20:39 -0400 Subject: Contextual reflection (#23740) * Add ContextualReflection APIs Add ContextualReflection APIs approved in dotnet/corefx#36236 Fix issue #22213 * SetParentAssembly even when IsCollectible() * ContextualReflection tests * PR Feedback * Add more usage tests Add using statement tests Add bad usage tests including Assert.Throws<> * Only initialize on set * Add XML API comments * Unify VerifyIsolation * Fix unused expectedAssembly * Remove ContextualReflectionScope throw * Clean up TestResolveMissingAssembly et. al * Remove unused QCall::AppDomainHandle * Remove AppDomainBaseObject * Pass AssemblyLoadContext as managed object to native * Fix AssemblyLoadContextBaseObject packing * AssemblyLoadContext backing stores Use explicit backing stores for events and properties * Remove StaticAsyncLocalCurrentContextualReflectionContext * Remove PermissionSetObject --- src/vm/qcall.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/vm/qcall.cpp') diff --git a/src/vm/qcall.cpp b/src/vm/qcall.cpp index 3b35f9089f..1b7bbda3b7 100644 --- a/src/vm/qcall.cpp +++ b/src/vm/qcall.cpp @@ -76,25 +76,3 @@ void QCall::ObjectHandleOnStack::SetGuidArray(const GUID * p, COUNT_T length) memcpyNoGCRefs(arr->GetDataPtr(), p, length * sizeof(GUID)); Set(arr); } - -// -// Helpers for passing an AppDomain to a QCall -// - -#ifdef _DEBUG - -//--------------------------------------------------------------------------------------- -// -// Verify that the AppDomain being passed from the BCL is valid for use in a QCall. Note: some additional -// checks are in System.AppDomain.GetNativeHandle() -// - -void QCall::AppDomainHandle::VerifyDomainHandle() const -{ - LIMITED_METHOD_CONTRACT; - - // System.AppDomain.GetNativeHandle() should ensure that we're not calling through with a null AppDomain pointer. - _ASSERTE(m_pAppDomain); -} - -#endif // _DEBUG -- cgit v1.2.3