Skip to content
  • Matt Valentine-House's avatar
    b680b632
    Make RCLASS_EXT(c)->subclasses a doubly linked list · b680b632
    Matt Valentine-House authored
    Updating RCLASS_PARENT_SUBCLASSES and RCLASS_MODULE_SUBCLASSES while
    compacting can trigger the read barrier. This commit makes
    RCLASS_SUBCLASSES a doubly linked list with a dedicated head object so
    that we can add and remove entries from the list without having to touch
    an object in the Ruby heap
    b680b632
    Make RCLASS_EXT(c)->subclasses a doubly linked list
    Matt Valentine-House authored
    Updating RCLASS_PARENT_SUBCLASSES and RCLASS_MODULE_SUBCLASSES while
    compacting can trigger the read barrier. This commit makes
    RCLASS_SUBCLASSES a doubly linked list with a dedicated head object so
    that we can add and remove entries from the list without having to touch
    an object in the Ruby heap
Loading