What is SyncBlockIndex and what is it used for in .NET?

I'm trying to get a deeper understanding of how the CLR works and can't find a good definition for "SyncBlockIndex". I found out that every managed entity has this, but what is it? What is it used for?

+2


a source to share


1 answer


from MSDN:



This index has several purposes: as its name implies, it is used for synchronization when the keyword "lock" is used. It is also used as the default hashcode for Object.GetHashCode (). It does not provide the best distribution properties for the hash code, but it does meet the minimum hash code requirements for reference equality. Syncindex remains constant throughout the entire life cycle of an object.

+3


a source







All Articles