summaryrefslogtreecommitdiff
path: root/src/vm/methodtable.cpp
diff options
context:
space:
mode:
authorDavid Wrighton <davidwr@microsoft.com>2019-04-03 15:54:05 -0700
committerGitHub <noreply@github.com>2019-04-03 15:54:05 -0700
commitd3e39bc2f81e3dbf9e4b96347f62b49d8700336c (patch)
tree78b72499a0f38e9dbf6ae4d6d24c77779ac543dc /src/vm/methodtable.cpp
parenta7dd6192530dec1d424c359233a1b92f559fa92a (diff)
downloadcoreclr-d3e39bc2f81e3dbf9e4b96347f62b49d8700336c.tar.gz
coreclr-d3e39bc2f81e3dbf9e4b96347f62b49d8700336c.tar.bz2
coreclr-d3e39bc2f81e3dbf9e4b96347f62b49d8700336c.zip
Remove ADID and ADIndex from CoreCLR (#23588)
- Remove concept of AppDomain from object api in VM - Various infrastructure around entering/leaving appdomains is removed - Add small implementation of GetAppDomain for use by DAC (to match existing behavior) - Simplify finalizer thread operations - Eliminate AppDomain::Terminate - Remove use of ADID from stresslog - Remove thread enter/leave tracking from AppDomain - Remove unused asm constants across all architectures - Re-order header inclusion order to put gcenv.h before handletable - Remove retail only sync block code involving appdomain index
Diffstat (limited to 'src/vm/methodtable.cpp')
-rw-r--r--src/vm/methodtable.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/vm/methodtable.cpp b/src/vm/methodtable.cpp
index 208c734f4e..886bfcb2fb 100644
--- a/src/vm/methodtable.cpp
+++ b/src/vm/methodtable.cpp
@@ -3173,7 +3173,7 @@ void MethodTable::AllocateRegularStaticBoxes()
LOG((LF_CLASSLOADER, LL_INFO10000, "\tInstantiating static of type %s\n", pFieldMT->GetDebugClassName()));
OBJECTREF obj = AllocateStaticBox(pFieldMT, pClassCtorInfoEntry->hasFixedAddressVTStatics);
- SetObjectReference( &(pStaticSlots[i]), obj, GetAppDomain() );
+ SetObjectReference( &(pStaticSlots[i]), obj);
}
GCPROTECT_END();
}
@@ -3198,7 +3198,7 @@ void MethodTable::AllocateRegularStaticBoxes()
LOG((LF_CLASSLOADER, LL_INFO10000, "\tInstantiating static of type %s\n", pFieldMT->GetDebugClassName()));
OBJECTREF obj = AllocateStaticBox(pFieldMT, HasFixedAddressVTStatics());
- SetObjectReference( (OBJECTREF*)(pStaticBase + pField->GetOffset()), obj, GetAppDomain() );
+ SetObjectReference( (OBJECTREF*)(pStaticBase + pField->GetOffset()), obj);
}
pField++;
@@ -3783,7 +3783,7 @@ OBJECTREF MethodTable::FastBox(void** data)
return Nullable::Box(*data, this);
OBJECTREF ref = Allocate();
- CopyValueClass(ref->UnBox(), *data, this, ref->GetAppDomain());
+ CopyValueClass(ref->UnBox(), *data, this);
return ref;
}
@@ -3921,8 +3921,8 @@ void MethodTable::CallFinalizer(Object *obj)
#ifdef STRESS_LOG
if (fCriticalFinalizer)
{
- STRESS_LOG2(LF_GCALLOC, LL_INFO100, "Finalizing CriticalFinalizer %pM in domain %d\n",
- pMT, GetAppDomain()->GetId().m_dwId);
+ STRESS_LOG1(LF_GCALLOC, LL_INFO100, "Finalizing CriticalFinalizer %pM\n",
+ pMT);
}
#endif
@@ -3955,8 +3955,8 @@ void MethodTable::CallFinalizer(Object *obj)
#ifdef STRESS_LOG
if (fCriticalFinalizer)
{
- STRESS_LOG2(LF_GCALLOC, LL_INFO100, "Finalized CriticalFinalizer %pM in domain %d without exception\n",
- pMT, GetAppDomain()->GetId().m_dwId);
+ STRESS_LOG1(LF_GCALLOC, LL_INFO100, "Finalized CriticalFinalizer %pM without exception\n",
+ pMT);
}
#endif
}