summaryrefslogtreecommitdiff
path: root/src/vm/methodtable.cpp
diff options
context:
space:
mode:
authorEgor Chesakov <Egor.Chesakov@microsoft.com>2018-06-04 10:08:22 -0700
committerGitHub <noreply@github.com>2018-06-04 10:08:22 -0700
commitde586767f51432e5d89f6fcffee07c488fdeeb7b (patch)
treebb6306408eb17be4e7b9e799f15829d750c108d5 /src/vm/methodtable.cpp
parentda0a05431913dd5e3d65c5d3c74d7f12cf3f9ebb (diff)
downloadcoreclr-de586767f51432e5d89f6fcffee07c488fdeeb7b.tar.gz
coreclr-de586767f51432e5d89f6fcffee07c488fdeeb7b.tar.bz2
coreclr-de586767f51432e5d89f6fcffee07c488fdeeb7b.zip
Work in VM towards cross-bitness crossgen (#18245)
* Replace sizeof expressions with target-specific constants: * sizeof(ObjHeader) -> OBJHEADER_SIZE * sizeof(Object) -> OBJECT_SIZE * ObjSizeOf(Object) -> OBJECT_BASESIZE * sizeof(ArrayBase) -> ARRAYBASE_SIZE * ObjSizeOf(ArrayBase) -> ARRAYBASE_BASESIZE * Remove ObjSizeOf macro * Use OBJECT_SIZE in ArrayBase::GetBoundsOffset * Cast ppObj to CORCOMPILE_GCREFMAP_TOKENS* before dereferencing in FakePromote * LOG2_PTRSIZE should depend on _TARGET_64BIT_
Diffstat (limited to 'src/vm/methodtable.cpp')
-rw-r--r--src/vm/methodtable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/methodtable.cpp b/src/vm/methodtable.cpp
index af4b8f7121..75b4c6ce49 100644
--- a/src/vm/methodtable.cpp
+++ b/src/vm/methodtable.cpp
@@ -942,7 +942,7 @@ MethodTable* CreateMinimalMethodTable(Module* pContainingModule,
pMT->SetLoaderModule(pContainingModule);
pMT->SetLoaderAllocator(pContainingModule->GetLoaderAllocator());
pMT->SetInternalCorElementType(ELEMENT_TYPE_CLASS);
- pMT->SetBaseSize(ObjSizeOf(Object));
+ pMT->SetBaseSize(OBJECT_BASESIZE);
#ifdef _DEBUG
pClass->SetDebugClassName("dynamicClass");