Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge commits from ruby/master into yjit_backend_ir #406

Merged
merged 45 commits into from
Aug 16, 2022

Commits on Aug 10, 2022

  1. Only allow procs created by Symbol#to_proc to call public methods

    Fixes [Bug #18826]
    
    Co-authored-by: Nobuyoshi Nakada <[email protected]>
    jeremyevans and nobu authored Aug 10, 2022
    Configuration menu
    Copy the full SHA
    bfa6a8d View commit details
    Browse the repository at this point in the history
  2. Revert "Add {Method,UnboundMethod}#{public?,private?,protected?}"

    This reverts commit 2727815 and
    58dc8bf.
    
    Visibility is an attribute of the method entry in a class, not an
    attribute of the Method object.
    
    Fixes [#18729]
    Fixes [#18751]
    Fixes [#18435]
    jeremyevans committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    ff42e23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9fc401b View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Add --enable-devel configure option

    Since `RUBY_DEVEL` in cppflags has no effect in the configure script
    and makefiles.
    nobu committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    74d9574 View commit details
    Browse the repository at this point in the history
  2. Fix paths of exts.mk to clean

    exts.mk files are one level under the top of extension directories.
    nobu committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    26054c7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c9803b View commit details
    Browse the repository at this point in the history
  4. Fix race conditions when cleaning extensions

    Clean built directories by `make distclean`, and then clean leftover
    makefiles for skipped extensions.
    nobu committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    32d1ce9 View commit details
    Browse the repository at this point in the history
  5. Fix Array#[] with ArithmeticSequence with negative steps (ruby#5739)

    * Fix Array#[] with ArithmeticSequence with negative steps
    
    Previously, Array#[] when called with an ArithmeticSequence
    with a negative step did not handle all cases correctly,
    especially cases involving infinite ranges, inverted ranges,
    and/or exclusive ends.
    
    Fixes [Bug #18247]
    
    * Add Array#slice tests for ArithmeticSequence with negative step to test_array
    
    Add tests of rb_arithmetic_sequence_beg_len_step C-API function.
    
    * Fix ext/-test-/arith_seq/beg_len_step/depend
    
    * Rename local variables
    
    * Fix a variable name
    
    Co-authored-by: Kenta Murata <[email protected]>
    jeremyevans and mrkn authored Aug 11, 2022
    Configuration menu
    Copy the full SHA
    cfb9624 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c361cf4 View commit details
    Browse the repository at this point in the history
  7. Fix inspect for unicode codepoint 0x85

    This is an inelegant hack, by manually checking for this specific
    code point in rb_str_inspect.  Some testing indicates that this is
    the only code point affected.
    
    It's possible a better fix would be inside of lower-level encoding
    code, such that rb_enc_isprint would return false and not true for
    codepoint 0x85.
    
    Fixes [Bug #16842]
    jeremyevans committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    49517b3 View commit details
    Browse the repository at this point in the history
  8. * 2022-08-12 [ci skip]

    matzbot committed Aug 11, 2022
    Configuration menu
    Copy the full SHA
    a677aa0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8a3f401 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5e3e4bc View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    d9f1b8b View commit details
    Browse the repository at this point in the history
  2. All extensions in bundled gems are built by build-ext now

    `RbInstall::GemInstaller#build_extensions` has nothing to do.
    nobu committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    04815ea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a3a6d2d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9a11d50 View commit details
    Browse the repository at this point in the history
  5. Add missing rb_enc_iscntrl

    nobu committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    a201cfd View commit details
    Browse the repository at this point in the history
  6. Stop defining RUBY_ABI_VERSION if released versions

    As commented in include/ruby/internal/abi.h, since teeny versions of
    Ruby should guarantee ABI compatibility, `RUBY_ABI_VERSION` has no role
    in released versions of Ruby.
    nobu committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    cd1a0b3 View commit details
    Browse the repository at this point in the history
  7. Add Numeric#ceildiv and Integer#ceildiv

    kyanagi authored and mame committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    4165fd0 View commit details
    Browse the repository at this point in the history
  8. Remove Numeric#ceildiv

    kyanagi authored and mame committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    24e33b8 View commit details
    Browse the repository at this point in the history
  9. Improve performance of Integer#ceildiv

    This patch is suggested by nobu.
    
    Benchmark result:
    
    ```
    require 'benchmark'
    
    n = 10 ** 7
    
    Benchmark.bm do |x|
      x.report("Fixnum/Fixnum") { a, b = 5, 2; n.times { a.ceildiv(b) } }
      x.report("Bignum/Bignum") { a, b = 10**100, 10**99 - 1; n.times { a.ceildiv(b) } }
      x.report("Bignum/Fixnum") { a, b = 10**100, 3; n.times { a.ceildiv(b) } }
    end
    ```
    
    Original:
    
    ```
           user     system      total        real
    Fixnum/Fixnum  3.340009   0.043029   3.383038 (  3.384022)
    Bignum/Bignum  8.229500   0.118543   8.348043 (  8.349574)
    Bignum/Fixnum  8.328971   0.097842   8.426813 (  8.426952)
    ```
    
    Improved:
    
    ```
           user     system      total        real
    Fixnum/Fixnum  0.699140   0.000961   0.700101 (  0.700199)
    Bignum/Bignum  5.076165   0.083160   5.159325 (  5.159360)
    Bignum/Fixnum  5.548684   0.115372   5.664056 (  5.666735)
    ```
    kyanagi authored and mame committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    803a072 View commit details
    Browse the repository at this point in the history
  10. [Bug #18962] Do not read again once reached EOF

    `Ripper::Lexer#parse` re-parses the source code with syntax errors
    when `raise_errors: false`.
    
    Co-Authored-By: tompng <[email protected]>
    nobu and tompng committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    844a0ed View commit details
    Browse the repository at this point in the history
  11. Short-circuit Process._fork

    nobu committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    b2205cd View commit details
    Browse the repository at this point in the history
  12. Introduce with_warn_vsprintf macro

    S-H-GAMELINKS authored and nobu committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    77fdb3a View commit details
    Browse the repository at this point in the history
  13. Bundle unreleased debug

    nobu committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    b179926 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e444455 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3a6405d View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. Configuration menu
    Copy the full SHA
    fa65800 View commit details
    Browse the repository at this point in the history
  2. * 2022-08-13 [ci skip]

    matzbot committed Aug 13, 2022
    Configuration menu
    Copy the full SHA
    f9382a3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d1d1c9b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0617cba View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2022

  1. Configuration menu
    Copy the full SHA
    a58a429 View commit details
    Browse the repository at this point in the history
  2. * 2022-08-14 [ci skip]

    matzbot committed Aug 14, 2022
    Configuration menu
    Copy the full SHA
    a9abf60 View commit details
    Browse the repository at this point in the history
  3. Update dependencies

    nobu committed Aug 14, 2022
    Configuration menu
    Copy the full SHA
    cb12d7c View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2022

  1. Configuration menu
    Copy the full SHA
    89aa09a View commit details
    Browse the repository at this point in the history
  2. * 2022-08-15 [ci skip]

    matzbot committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    cbcf2da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e77c839 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8d40ede View commit details
    Browse the repository at this point in the history
  5. Add test for GC thrashing of young object creation

    This test will prevent performance regressions like [Bug #18929].
    peterzhu2118 committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    0264424 View commit details
    Browse the repository at this point in the history
  6. Simplify around USE_YJIT macro (ruby#6240)

    * Simplify around `USE_YJIT` macro
    
    - Use `USE_YJIT` macro only instead of `YJIT_BUILD`.
    - An intermediate macro `YJIT_SUPPORTED_P` is no longer used.
    
    * Bail out if YJIT is enabled on unsupported platforms
    nobu authored Aug 15, 2022
    Configuration menu
    Copy the full SHA
    ee864be View commit details
    Browse the repository at this point in the history
  7. * 2022-08-16 [ci skip]

    matzbot committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    e34720d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4e66b3f View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Configuration menu
    Copy the full SHA
    9aa3532 View commit details
    Browse the repository at this point in the history
  2. Allow aarch64 to build YJIT

    k0kubun committed Aug 16, 2022
    1 Configuration menu
    Copy the full SHA
    0e74ffe View commit details
    Browse the repository at this point in the history