1. 03 9月, 2020 8 次提交
    • A
      3fb25562
    • A
      support T_MATCH in lldb · 933035d3
      Aaron Patterson 提交于
      933035d3
    • J
      Initialize new T_OBJECT as ROBJECT_EMBED · 0b81a484
      John Hawthorn 提交于
      Previously, when an object is first initialized, ROBJECT_EMBED isn't
      set. This means that for brand new objects, ROBJECT_NUMIV(obj) is 0 and
      ROBJECT_IV_INDEX_TBL(obj) is NULL.
      
      Previously, this combination meant that the inline cache would never be
      initialized when setting an ivar on an object for the first time since
      iv_index_tbl was NULL, and if it were it would never be used because
      ROBJECT_NUMIV was 0. Both cases always fell through to the generic
      rb_ivar_set which would then set the ROBJECT_EMBED flag and initialize
      the ivar array.
      
      This commit changes rb_class_allocate_instance to set the ROBJECT_EMBED
      flag on the object initially and to initialize all members of the
      embedded array to Qundef. This allows the inline cache to be set
      correctly on first use and to be used on future uses.
      
      This moves rb_class_allocate_instance to gc.c, so that it has access to
      newobj_of. This seems appropriate given that there are other allocating
      methods in this file (ex. rb_data_object_wrap, rb_imemo_new).
      0b81a484
    • E
      Add category to `rb_warn_deprecated` · eada6350
      eileencodes 提交于
      PR https://github.com/ruby/ruby/pull/3418 added a category to
      `rb_warn_deprecated_to_remove` but not to `rb_warn_deprecated`. This
      adds the same code to `rb_warn_deprecated` so that those warnings also
      get a category.
      
      This change also adds tests for `rb_warn_deprecated` and updates the
      tests for `rb_warn_deprecated_to_remove` to have clearer names.
      
      I've fixed the call to `rb_method_entry` as we need to be using the
      instance method, not singleton.
      
      Feature: https://bugs.ruby-lang.org/issues/17122
      eada6350
    • B
      Comply with guide for method doc: array.c (#3506) · 54fb8fb6
      Burdette Lamar 提交于
      Methods:
      
          any?
          all?
          one?
          none?
          sum
          shuffle!
          shuffle
          sample
      54fb8fb6
    • J
      Document that StringScanner#matched_size returns size in bytes [ci skip] · d9b8411a
      Jeremy Evans 提交于
      Fixes [Bug #17139]
      d9b8411a
    • G
      * 2020-09-03 [ci skip] · 0938bad0
      git 提交于
      0938bad0
    • J
      Document limitation of Pathname#relative_path_from [ci skip] · cc5b7ed1
      Jeremy Evans 提交于
      This method is explicitly documented to not access the filesystem,
      and the only way to get the correct behavior for a case where the
      filesystem's case sensitivity differs from the operating system
      default would be to access the filesystem.
      
      Fixes [Bug #15417]
      cc5b7ed1
  2. 02 9月, 2020 14 次提交
  3. 01 9月, 2020 15 次提交
  4. 31 8月, 2020 3 次提交