summaryrefslogtreecommitdiff
path: root/src/vm/syncblk.h
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/syncblk.h
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/syncblk.h')
-rw-r--r--src/vm/syncblk.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/vm/syncblk.h b/src/vm/syncblk.h
index e699c31716..c3f8a848de 100644
--- a/src/vm/syncblk.h
+++ b/src/vm/syncblk.h
@@ -85,7 +85,6 @@ typedef DPTR(EnCSyncBlockInfo) PTR_EnCSyncBlockInfo;
#include "synch.h"
-
// At a negative offset from each Object is an ObjHeader. The 'size' of the
// object includes these bytes. However, we rely on the previous object allocation
// to zero out the ObjHeader for the current allocation. And the limits of the
@@ -1610,13 +1609,6 @@ struct ThreadQueue
#endif
};
-
-// The true size of an object is whatever C++ thinks, plus the ObjHeader we
-// allocate before it.
-
-#define ObjSizeOf(c) (sizeof(c) + sizeof(ObjHeader))
-
-
inline void AwareLock::SetPrecious()
{
LIMITED_METHOD_CONTRACT;