Fix comment about pinning bit in object.h (dotnet/coreclr#11004)
author303248153 <303248153@qq.com>
Mon, 17 Apr 2017 03:01:52 +0000 (11:01 +0800)
committerJan Kotas <jkotas@microsoft.com>
Mon, 17 Apr 2017 03:01:52 +0000 (20:01 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/40c33f6f411d8c104594088a09b9f806006da9fa

src/coreclr/src/vm/object.h

index 89019d3..cb3743c 100644 (file)
@@ -634,10 +634,10 @@ class Object
         LIMITED_METHOD_CONTRACT;
         SUPPORTS_DAC;
 
-        // lose GC marking bit and the pinning bit
+        // lose GC marking bit and the reserved bit
         // A method table pointer should always be aligned.  During GC we set the least 
-        // significant bit for marked objects and we set the second to least significant
-        // bit for pinned objects.  So if we want the actual MT pointer during a GC
+        // significant bit for marked objects, and the second to least significant
+        // bit is reserved.  So if we want the actual MT pointer during a GC
         // we must zero out the lowest 2 bits.
         return dac_cast<PTR_MethodTable>((dac_cast<TADDR>(m_pMethTab)) & ~((UINT_PTR)3));
     }