diff options
author | antofik <antofik@gmail.com> | 2018-01-22 05:03:51 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-01-21 18:03:51 -0800 |
commit | 59714b683f40fac869050ca08acc5503e84dc776 (patch) | |
tree | 1512f4562d579977288002abb6432b32a2df2e8f /src/vm/callhelpers.cpp | |
parent | 3bd16103e76fbad8de7a37cb37f6a6f74ce46dfd (diff) | |
download | coreclr-59714b683f40fac869050ca08acc5503e84dc776.tar.gz coreclr-59714b683f40fac869050ca08acc5503e84dc776.tar.bz2 coreclr-59714b683f40fac869050ca08acc5503e84dc776.zip |
Remove AppDomainLeaks configuration option (#15956)
Removed all usages of AppDomainLeaks configuration option and
CHECK_APP_DOMAIN_LEAKS feature
Fix #12094
Diffstat (limited to 'src/vm/callhelpers.cpp')
-rw-r--r-- | src/vm/callhelpers.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/vm/callhelpers.cpp b/src/vm/callhelpers.cpp index c575ee615d..c555751c23 100644 --- a/src/vm/callhelpers.cpp +++ b/src/vm/callhelpers.cpp @@ -418,20 +418,6 @@ void MethodDescCallSite::CallTargetWorker(const ARG_SLOT *pArguments, ARG_SLOT * } #endif // DEBUGGING_SUPPORTED -#if CHECK_APP_DOMAIN_LEAKS - if (g_pConfig->AppDomainLeaks()) - { - // See if we are in the correct domain to call on the object - if (m_methodSig.HasThis() && !m_pMD->GetMethodTable()->IsValueType()) - { - CONTRACT_VIOLATION(ThrowsViolation|GCViolation|FaultViolation); - OBJECTREF pThis = ArgSlotToObj(pArguments[0]); - if (!pThis->AssignAppDomain(GetAppDomain())) - _ASSERTE(!"Attempt to call method on object in wrong domain"); - } - } -#endif // CHECK_APP_DOMAIN_LEAKS - #ifdef _DEBUG { #ifdef FEATURE_UNIX_AMD64_STRUCT_PASSING @@ -547,17 +533,6 @@ void MethodDescCallSite::CallTargetWorker(const ARG_SLOT *pArguments, ARG_SLOT * } #endif -#if CHECK_APP_DOMAIN_LEAKS - // Make sure the arg is in the right app domain - if (g_pConfig->AppDomainLeaks() && m_argIt.GetArgType() == ELEMENT_TYPE_CLASS) - { - CONTRACT_VIOLATION(ThrowsViolation|GCViolation|FaultViolation); - OBJECTREF objRef = ArgSlotToObj(pArguments[arg]); - if (!objRef->AssignAppDomain(GetAppDomain())) - _ASSERTE(!"Attempt to pass object in wrong app domain to method"); - } -#endif // CHECK_APP_DOMAIN_LEAKS - ArgDestination argDest(pTransitionBlock, ofs, m_argIt.GetArgLocDescForStructInRegs()); UINT32 stackSize = m_argIt.GetArgSize(); |