Description
From multiple different threads, do calls to ComWrappers.GetOrCreateObjectForComInstance to get the RCW for the same existing native object which has already been cached. Observe that the amount of time this takes can be pretty high due to the mutex in ExtObjCxtCache which causes it to become a one at a time operation to do the cached RCW lookup.
|
ExtObjCxtCache::LockHolder lock(cache); |
Configuration
.NET 6
Regression?
No
Description
From multiple different threads, do calls to
ComWrappers.GetOrCreateObjectForComInstanceto get the RCW for the same existing native object which has already been cached. Observe that the amount of time this takes can be pretty high due to the mutex inExtObjCxtCachewhich causes it to become a one at a time operation to do the cached RCW lookup.runtime/src/coreclr/vm/interoplibinterface_comwrappers.cpp
Line 828 in 7cffd46
Configuration
.NET 6
Regression?
No