Remove VolatileLoad from code already under lock
authorFadi Hanna <fadim@microsoft.com>
Wed, 2 Oct 2019 23:23:59 +0000 (16:23 -0700)
committerAlexander Soldatov/AI Compiler Lab /SRR/Staff Engineer/삼성전자 <soldatov.a@samsung.com>
Mon, 7 Oct 2019 09:00:00 +0000 (12:00 +0300)
src/vm/ngenhash.inl

index 5df567f..de16e38 100644 (file)
@@ -151,7 +151,7 @@ void NgenHashTable<NGEN_HASH_ARGS>::BaseInsertEntry(NgenHashValue iHash, VALUE *
     pVolatileEntry->m_iHashValue = iHash;
 
     // Compute which bucket the entry belongs in based on the hash.
-    DWORD dwBucket = iHash % VolatileLoad(&m_cWarmBuckets);
+    DWORD dwBucket = iHash % m_cWarmBuckets;
 
     // Prepare to link the new entry at the head of the bucket chain.
     pVolatileEntry->m_pNextEntry = (GetWarmBuckets())[dwBucket];