In CLR, each instance have 2 additional fields to store some data to manage object:
- Type Object Pointer
- Sync Block Index
Can you explain basically what do they store inside and briefly how are they used by CLR?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The type object pointer is a pointer to a type description of the object. This is used to find out what the actual type of an object is, for example needed to do virtual calls.
The sync block index is an index into a table of synchronisation blocks. Each object can have a sync block, that contains information used by
Monitor.EnterandMonitor.Exit.