tags:

views:

20

answers:

1

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?

A: 

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.

tsinik
But is there any information about structure of SyncBlockIndex?
the_V
http://msdn.microsoft.com/en-us/magazine/cc188793.aspx
tsinik