1. 04 9月, 2020 10 次提交
  2. 03 9月, 2020 14 次提交
    • K
      skip Ractor tests on Compiler tests · b52513e2
      Koichi Sasada 提交于
      This implementation has memory corruption errors so and
      it causes BUG on rare occasions. This commit skips
      suspect tests on Github actions Compiler tests.
      b52513e2
    • K
      Introduce Ractor mechanism for parallel execution · 79df14c0
      Koichi Sasada 提交于
      This commit introduces Ractor mechanism to run Ruby program in
      parallel. See doc/ractor.md for more details about Ractor.
      See ticket [Feature #17100] to see the implementation details
      and discussions.
      
      [Feature #17100]
      
      This commit does not complete the implementation. You can find
      many bugs on using Ractor. Also the specification will be changed
      so that this feature is experimental. You will see a warning when
      you make the first Ractor with `Ractor.new`.
      
      I hope this feature can help programmers from thread-safety issues.
      79df14c0
    • N
      Hoisted out warn_deprecated · eeb5325d
      Nobuyoshi Nakada 提交于
      eeb5325d
    • K
      Fix a typo [ci skip] · 705b908f
      Kazuhiro NISHIYAMA 提交于
      705b908f
    • A
      Don't call to_s in const_set · 7b9ef667
      Alan Wu 提交于
      Follow up for 5e168573. Calling a method
      in the middle of const_set adds a way that it would fail. It also makes
      it inconsistent with declaring a constant using `::`, which doesn't call
      `to_s`.
      7b9ef667
    • configure: detect that there is no g++ · 50b18e81
      卜部昌平 提交于
      AC_PROG_CXX checks for several C++ compilers INCLUDING g++.  When none
      of them were found it sets the CXX variable to be g++.  This doesn't
      make any sense.  Absense of g++ has already been made sure.
      
      Because we don't want insanity (that's the whole reason we test the
      environment using autoconf), we need to swipe such insane variable out.
      50b18e81
    • 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
  3. 02 9月, 2020 14 次提交
  4. 01 9月, 2020 2 次提交