Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/coreclr/vm/dacenumerablehash.inl
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ DPTR(VALUE) DacEnumerableHashTable<DAC_ENUM_HASH_ARGS>::BaseFindFirstEntryByHash
// in a rare case if resize is in progress, look in the new table as well.
// if existing entry is not in the old table, it must be in the new
// since we unlink it from old only after linking into the new.
// check for next table must hapen after we looked through the current.
// check for next table must happen after we looked through the current.
VolatileLoadBarrier();
curBuckets = GetNext(curBuckets);
} while (curBuckets != nullptr);
Expand Down Expand Up @@ -367,11 +367,9 @@ DPTR(VALUE) DacEnumerableHashTable<DAC_ENUM_HASH_ARGS>::BaseFindNextEntryByHash(
PTR_VolatileEntry pVolatileEntry = dac_cast<PTR_VolatileEntry>(pContext->m_pEntry);
iHash = pVolatileEntry->m_iHashValue;

// Iterate over the bucket chain.
while (pVolatileEntry->m_pNextEntry)
// Iterate over the rest ot the bucket chain.
while ((pVolatileEntry = pVolatileEntry->m_pNextEntry) != nullptr)
{
// Advance to the next entry.
pVolatileEntry = pVolatileEntry->m_pNextEntry;
if (pVolatileEntry->m_iHashValue == iHash)
{
// Found a match on hash code. Update our find context to indicate where we got to and return
Expand All @@ -381,7 +379,7 @@ DPTR(VALUE) DacEnumerableHashTable<DAC_ENUM_HASH_ARGS>::BaseFindNextEntryByHash(
}
}

// check for next table must hapen after we looked through the current.
// check for next table must happen after we looked through the current.
VolatileLoadBarrier();

// in a case if resize is in progress, look in the new table as well.
Expand Down