Re:ZGC: A Scalable Low-Latency Garbage Collector [video]
by pron on Sunday October 28, 2018 @03:37PM
(#18322591)
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).
[ Parent
| on HN ]
Re:ZGC: A Scalable Low-Latency Garbage Collector [video]
by rayiner on Sunday October 28, 2018 @05:11PM
(#18323220)
Isn’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.