diff options
author | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2018-06-04 10:08:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 10:08:22 -0700 |
commit | de586767f51432e5d89f6fcffee07c488fdeeb7b (patch) | |
tree | bb6306408eb17be4e7b9e799f15829d750c108d5 /src/vm/nativeoverlapped.cpp | |
parent | da0a05431913dd5e3d65c5d3c74d7f12cf3f9ebb (diff) | |
download | coreclr-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/nativeoverlapped.cpp')
-rw-r--r-- | src/vm/nativeoverlapped.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/nativeoverlapped.cpp b/src/vm/nativeoverlapped.cpp index bcbef77cc5..6f053ea267 100644 --- a/src/vm/nativeoverlapped.cpp +++ b/src/vm/nativeoverlapped.cpp @@ -443,7 +443,7 @@ void AddMTForPinHandle(OBJECTREF obj) } else { - pNewMT->SetBaseSize(ObjSizeOf (ArrayBase)); + pNewMT->SetBaseSize(ARRAYBASE_BASESIZE); pNewMT->SetComponentSize(static_cast<WORD>(-size)); } s_pPinHandleTable->InsertValue(size, (HashDatum)pNewMT); |