Hi Guys
I'm trying to gain deeper understanding of the way CLR works and can't find a good determination of "SyncBlockIndex". I've found out that each managed object has it, but what is it? What is it used for?
Hi Guys
I'm trying to gain deeper understanding of the way CLR works and can't find a good determination of "SyncBlockIndex". I've found out that each managed object has it, but what is it? What is it used for?
from MSDN:
This index has multiple purposes: As implied by its name it is used for synchronization, whenever the "lock" keyword is used. It is also used as the default hash code for Object.GetHashCode(). It does not provide the best distribution properties for a hash code, but it meets the minimum requirements for a hash code for reference equality. The syncindex remains constant throughout the life of the object.