Skip to content

Commit

Permalink
Merge in 'release/6.0' changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnet-bot committed Feb 14, 2022
2 parents e3e7521 + 6c9b451 commit fa9dc99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/coreclr/vm/syncblk.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ class InteropSyncBlockInfo
{
LIMITED_METHOD_CONTRACT;
ZeroMemory(this, sizeof(InteropSyncBlockInfo));

#if defined(FEATURE_COMWRAPPERS)
// The GC thread does enumerate these objects so add CRST_UNSAFE_COOPGC.
m_managedObjectComWrapperLock.Init(CrstManagedObjectWrapperMap, CRST_UNSAFE_COOPGC);
#endif // FEATURE_COMWRAPPERS
}
#ifndef DACCESS_COMPILE
~InteropSyncBlockInfo();
Expand Down Expand Up @@ -799,8 +804,6 @@ class InteropSyncBlockInfo
if (FastInterlockCompareExchangePointer((ManagedObjectComWrapperByIdMap**)&m_managedObjectComWrapperMap, (ManagedObjectComWrapperByIdMap *)map, NULL) == NULL)
{
map.SuppressRelease();
// The GC thread does enumerate these objects so add CRST_UNSAFE_COOPGC.
m_managedObjectComWrapperLock.Init(CrstManagedObjectWrapperMap, CRST_UNSAFE_COOPGC);
}

_ASSERTE(m_managedObjectComWrapperMap != NULL);
Expand Down

0 comments on commit fa9dc99

Please sign in to comment.