Project

General

Profile

« Previous | Next » 

Revision fa72ba72

Added by nagachika (Tomoyuki Chikanaga) almost 2 years ago

merge revision(s) 54dbd8bea8a79bfcdefa471c1717c6cd28022f33: [Backport #19535]

    Use an st table for "too complex" objects

    st tables will maintain insertion order so we can marshal dump / load
    objects with instance variables in the same order they were set on that
    particular instance

    [ruby-core:112926] [Bug #19535]

    Co-Authored-By: Jemma Issroff <[email protected]>
    ---
     gc.c                     | 10 ++++------
     include/ruby/st.h        |  2 ++
     object.c                 |  2 +-
     ractor.c                 | 43 ++++++++++++++++++++++---------------------
     shape.h                  |  6 +++---
     st.c                     |  6 ++++++
     test/ruby/test_shapes.rb | 21 +++++++++++++++++++++
     variable.c               | 28 ++++++++++++++--------------
     vm_insnhelper.c          |  2 +-
     9 files changed, 74 insertions(+), 46 deletions(-)