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/clrex.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/clrex.cpp')
-rw-r--r-- | src/vm/clrex.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/vm/clrex.cpp b/src/vm/clrex.cpp index 3b21d649d6..930ac5d6d1 100644 --- a/src/vm/clrex.cpp +++ b/src/vm/clrex.cpp @@ -2527,35 +2527,6 @@ CLRLastThrownObjectException* CLRLastThrownObjectException::Validate() "To suppress this assert 'set COMPlus_SuppressLostExceptionTypeAssert=1'"); } } - else - { // If there IS a LastThrownObject, then, for - // exceptions other than the pre-allocated ones... - if (!CLRException::IsPreallocatedExceptionObject(throwable)) - { // ...check that the exception is from the current appdomain. -#if CHECK_APP_DOMAIN_LEAKS - if (!throwable->CheckAppDomain(GetAppDomain())) - { // We've lost track of the exception's type. Raise an assert. (This is configurable to allow - // stress labs to turn off the assert.) - - static int iSuppress = -1; - if (iSuppress == -1) - iSuppress = CLRConfig::GetConfigValue(CLRConfig::INTERNAL_SuppressLostExceptionTypeAssert); - if (!iSuppress) - { - // Raising an assert message can cause a mode violation. - CONTRACT_VIOLATION(ModeViolation); - - // Use DbgAssertDialog to get the formatting right. - DbgAssertDialog(__FILE__, __LINE__, - "The 'LastThrownObject' does not belong to the current appdomain.\n" - "The runtime may have lost track of the type of an exception in flight.\n" - "Please get a good stack trace, find the caller of Validate, and file a bug against the owner.\n\n" - "To suppress this assert 'set COMPlus_SuppressLostExceptionTypeAssert=1'"); - } - } -#endif - } - } GCPROTECT_END(); |