3 ms·
BTW, it's not a read barrier but a load barrier. It's not encountered every time when reading an object field, but only when reading object reference that's sto
by pron 8y ago
BTW, it's not a read barrier but a load barrier. It's not encountered every time when reading an object field, but only when reading object reference that's stored on the heap (i.e. loading it into a register).
- rayiner 8y agoIsn’t that the traditional definition of a read barrier? E.g. a Baker read barrier is triggered when a field of object reference type is loaded from a heap object. It checks if the loaded pointer is in from space, and if so forwards the object.
- deleted 8y ago[deleted]