summaryrefslogtreecommitdiff
path: root/src/vm/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/object.cpp')
-rw-r--r--src/vm/object.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vm/object.cpp b/src/vm/object.cpp
index a0427cdcb9..ca54ba2848 100644
--- a/src/vm/object.cpp
+++ b/src/vm/object.cpp
@@ -244,12 +244,6 @@ TypeHandle Object::GetGCSafeTypeHandleIfPossible() const
Module * pLoaderModule = pMTToCheck->GetLoaderModule();
BaseDomain * pBaseDomain = pLoaderModule->GetDomain();
- if ((pBaseDomain != NULL) &&
- (pBaseDomain->IsAppDomain()) &&
- (pBaseDomain->AsAppDomain()->IsUnloading()))
- {
- return NULL;
- }
// Don't look up types that are unloading due to Collectible Assemblies. Haven't been
// able to find a case where we actually encounter objects like this that can cause