-
Notifications
You must be signed in to change notification settings - Fork 78
Allow internal pointers to point to the end of an object #1410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
If there are two object A and B allocated adjacent to each other, A is before B, and A has a And if this can happen in a VM, if the stack contains a pointer to |
It depends on the runtime -- how they define the object reference for MMTk. VO bits is marked at the location of object reference. For example, if we have two objects and each include a 8-byte header and 8-byte payload (including the zero-size field), say The runtime has to be able to tell if a pointer is a pointer to the next object, or an internal pointer to the previous object. |
I think it is fine as long as the runtime can tell whether it points to the next object or the previous object. Currently, |
If B has a header, and If there is no header, or the object reference points to the start of the object, you would have
Will do that. I just encountered a case in Julia: for the value |
No description provided.