Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 40c33f6

Browse files
303248153jkotas
authored andcommitted
Fix comment about pinning bit in object.h (#11004)
1 parent 5d02e44 commit 40c33f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vm/object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,10 @@ class Object
634634
LIMITED_METHOD_CONTRACT;
635635
SUPPORTS_DAC;
636636

637-
// lose GC marking bit and the pinning bit
637+
// lose GC marking bit and the reserved bit
638638
// A method table pointer should always be aligned. During GC we set the least
639-
// significant bit for marked objects and we set the second to least significant
640-
// bit for pinned objects. So if we want the actual MT pointer during a GC
639+
// significant bit for marked objects, and the second to least significant
640+
// bit is reserved. So if we want the actual MT pointer during a GC
641641
// we must zero out the lowest 2 bits.
642642
return dac_cast<PTR_MethodTable>((dac_cast<TADDR>(m_pMethTab)) & ~((UINT_PTR)3));
643643
}

0 commit comments

Comments
 (0)