Allow internal pointers to point to the end of an object#1410
Allow internal pointers to point to the end of an object#1410qinsoon wants to merge 1 commit intommtk:masterfrom
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.