Skip to content
  • Koichi Sasada's avatar
    a0f12a02
    Use ID instead of GENTRY for gvars. (#3278) · a0f12a02
    Koichi Sasada authored
    Use ID instead of GENTRY for gvars.
    
    Global variables are compiled into GENTRY (a pointer to struct
    rb_global_entry). This patch replace this GENTRY to ID and
    make the code simple.
    
    We need to search GENTRY from ID every time (st_lookup), so
    additional overhead will be introduced.
    However, the performance of accessing global variables is not
    important now a day and this simplicity helps Ractor development.
    a0f12a02
    Use ID instead of GENTRY for gvars. (#3278)
    Koichi Sasada authored
    Use ID instead of GENTRY for gvars.
    
    Global variables are compiled into GENTRY (a pointer to struct
    rb_global_entry). This patch replace this GENTRY to ID and
    make the code simple.
    
    We need to search GENTRY from ID every time (st_lookup), so
    additional overhead will be introduced.
    However, the performance of accessing global variables is not
    important now a day and this simplicity helps Ractor development.
Loading