summaryrefslogtreecommitdiff
path: root/src/vm/appdomain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/appdomain.cpp')
-rw-r--r--src/vm/appdomain.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vm/appdomain.cpp b/src/vm/appdomain.cpp
index 34da344c94..040837a8a7 100644
--- a/src/vm/appdomain.cpp
+++ b/src/vm/appdomain.cpp
@@ -75,7 +75,6 @@
#include "appdomain.inl"
#include "typeparse.h"
#include "mdaassistants.h"
-#include "stackcompressor.h"
#ifdef FEATURE_REMOTING
#include "mscorcfg.h"
#include "appdomainconfigfactory.hpp"
@@ -165,11 +164,13 @@ CrstStatic BaseDomain::m_SpecialStaticsCrst;
int BaseDomain::m_iNumberOfProcessors = 0;
// Shared Domain Statics
+DECLSPEC_ALIGN(16)
static BYTE g_pSharedDomainMemory[sizeof(SharedDomain)];
// System Domain Statics
GlobalStringLiteralMap* SystemDomain::m_pGlobalStringLiteralMap = NULL;
+DECLSPEC_ALIGN(16)
static BYTE g_pSystemDomainMemory[sizeof(SystemDomain)];
#ifdef FEATURE_APPDOMAIN_RESOURCE_MONITORING
@@ -2872,6 +2873,9 @@ void SystemDomain::LoadBaseSystemClasses()
#ifdef FEATURE_SPAN_OF_T
// Load ByReference class
+ //
+ // NOTE: ByReference<T> must be the first by-ref-like system type to be loaded,
+ // because MethodTable::ClassifyEightBytesWithManagedLayout depends on it.
g_pByReferenceClass = MscorlibBinder::GetClass(CLASS__BYREFERENCE);
#endif