summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFadi Hanna <fadim@microsoft.com>2019-10-02 16:23:59 -0700
committerAlexander Soldatov/AI Compiler Lab /SRR/Staff Engineer/삼성전자 <soldatov.a@samsung.com>2019-10-07 12:00:00 +0300
commit2204ea2f1c1332912c1374d7cc7347d5f9e67868 (patch)
treed22f9f454f4147d329f23af71115e3b302d4fe80
parentc0f48cf274383cf31b91dfabdbe46a2d949a75ea (diff)
downloadcoreclr-2204ea2f1c1332912c1374d7cc7347d5f9e67868.tar.gz
coreclr-2204ea2f1c1332912c1374d7cc7347d5f9e67868.tar.bz2
coreclr-2204ea2f1c1332912c1374d7cc7347d5f9e67868.zip
Remove VolatileLoad from code already under lock
-rw-r--r--src/vm/ngenhash.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm/ngenhash.inl b/src/vm/ngenhash.inl
index 5df567fd5b..de16e38bc1 100644
--- a/src/vm/ngenhash.inl
+++ b/src/vm/ngenhash.inl
@@ -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];