summaryrefslogtreecommitdiff
path: root/src/vm/generics.cpp
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2018-10-05 03:08:51 +0200
committerGitHub <noreply@github.com>2018-10-05 03:08:51 +0200
commitda6498e6c1013dd38d33e782bc777bd89aa0f0ee (patch)
tree66db7870d220d7cf717af5ef4aa8fdfc950590b5 /src/vm/generics.cpp
parent7f59d17e2741e69bf878b8b168828de3a0a3d12e (diff)
downloadcoreclr-da6498e6c1013dd38d33e782bc777bd89aa0f0ee.tar.gz
coreclr-da6498e6c1013dd38d33e782bc777bd89aa0f0ee.tar.bz2
coreclr-da6498e6c1013dd38d33e782bc777bd89aa0f0ee.zip
Remove context statics stuff (#20256)
* Remove context statics stuff part 1 This change removes all context statics stuff from the runtime since context statics are not supported and this code was obsolete. * Remove context statics stuff from the debugger code
Diffstat (limited to 'src/vm/generics.cpp')
-rw-r--r--src/vm/generics.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vm/generics.cpp b/src/vm/generics.cpp
index a92177d9d0..26cd8a5356 100644
--- a/src/vm/generics.cpp
+++ b/src/vm/generics.cpp
@@ -225,7 +225,6 @@ ClassLoader::CreateTypeHandleForNonCanonicalGenericInstantiation(
// These are all copied across from the old MT, i.e. don't depend on the
// instantiation.
BOOL fHasRemotingVtsInfo = FALSE;
- BOOL fHasContextStatics = FALSE;
BOOL fHasGenericsStaticsInfo = pOldMT->HasGenericsStaticsInfo();
#ifdef FEATURE_COMINTEROP
@@ -239,10 +238,6 @@ ClassLoader::CreateTypeHandleForNonCanonicalGenericInstantiation(
// Collectible types have some special restrictions
if (pAllocator->IsCollectible())
{
- if (fHasContextStatics)
- {
- ClassLoader::ThrowTypeLoadException(pTypeKey, IDS_CLASSLOAD_COLLECTIBLESPECIALSTATICS);
- }
if (pOldMT->HasFixedAddressVTStatics())
{
ClassLoader::ThrowTypeLoadException(pTypeKey, IDS_CLASSLOAD_COLLECTIBLEFIXEDVTATTR);
@@ -289,7 +284,6 @@ ClassLoader::CreateTypeHandleForNonCanonicalGenericInstantiation(
fHasCCWTemplate,
fHasRCWPerTypeData,
fHasRemotingVtsInfo,
- fHasContextStatics,
pOldMT->HasTokenOverflow());
// We need space for the PerInstInfo, i.e. the generic dictionary pointers...