summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-08-11Fix range of `--backtrace-limit`Nobuyoshi Nakada
Also an option command line should have precedence over `RUBYOPT`. Notes: Merged: https://github.com/ruby/ruby/pull/8200
2023-08-10YJIT: Allow VM_CALL_ARGS_BLOCKARG on invokesuper (#8198)Takashi Kokubun
Notes: Merged-By: k0kubun <[email protected]>
2023-08-10Remove duplicate prerequisite [ci skip]Nobuyoshi Nakada
2023-08-10Explicitly require rspec/expectations tentativelyNobuyoshi Nakada
Maybe only with load-relative, recent changes to bunder/setup.rb seem affecting weirdly. It fails to load rspec/expectations.rb inside rspec-core.
2023-08-10Make PREPARE_SYNTAX_SUGGEST include TEST_RUNNABLE prefixNobuyoshi Nakada
So that `make PREPARE_SYNTAX_SUGGEST= test-syntax-suggest` works. Notes: Merged: https://github.com/ruby/ruby/pull/8199
2023-08-10Deprecate Kernel#open and IO support for subprocess creation/forkingMike Dalessio
Deprecate Kernel#open and IO support for subprocess creation and forking. This deprecates subprocess creation and forking in - Kernel#open - URI.open - IO.binread - IO.foreach - IO.readlines - IO.read - IO.write This behavior is slated to be removed in Ruby 4.0 [Feature #19630] Notes: Merged: https://github.com/ruby/ruby/pull/7915
2023-08-09[ruby/irb] Skip nested IRB tests in Ruby Core CIStan Lo
(https://github.com/ruby/irb/pull/675) Sometimes the subprocess gets stuck in the nested IRB session until timed out. We don't have enough information to debug it yet, so skip the tests to unblock CI. https://github.com/ruby/irb/commit/606f18c80c
2023-08-09YJIT: Chain guard method IDs for respond_to? (#8196)Takashi Kokubun
Notes: Merged-By: k0kubun <[email protected]>
2023-08-09YJIT: Distinguish exit and fallback reasons for invokesuper/invokeblock (#8194)Takashi Kokubun
YJIT: Distinguish exit and fallback reasons for invokesuper/invokeblock Notes: Merged-By: maximecb <[email protected]>
2023-08-09Fix memory leak for incomplete lambdasPeter Zhu
[Bug #19836] The parser does not free the chain of `struct vtable`, which causes memory leaks. The following script reproduces this issue: ``` 10.times do 100_000.times do Ripper.parse("-> {") end puts `ps -o rss= -p #{$$}` end ``` Notes: Merged: https://github.com/ruby/ruby/pull/8192
2023-08-09Fix memory leak in parser for incomplete tokensPeter Zhu
[Bug #19835] The parser does not free the `tbl` of the `struct vtable` when there are leftover `lvtbl` in the parser. This causes a memory leak. The following script reproduces this issue: ``` 10.times do 100_000.times do Ripper.parse("class Foo") end puts `ps -o rss= -p #{$$}` end ``` Notes: Merged: https://github.com/ruby/ruby/pull/8192
2023-08-09YJIT: Count throw instructions for each tag (#8188)Takashi Kokubun
* YJIT: Count throw instructions for each tag * Show % of each throw type Notes: Merged-By: k0kubun <[email protected]>
2023-08-09YJIT: implement imul instruction encoding in x86 assembler (#8191)Maxime Chevalier-Boisvert
Notes: Merged-By: maximecb <[email protected]>
2023-08-09Implement MUL instruction for aarch64 (#8193)Kevin Newton
Notes: Merged-By: maximecb <[email protected]>
2023-08-09[ruby/irb] Fix nested IRB sessions' history savingStan Lo
(https://github.com/ruby/irb/pull/652) 1. Dynamically including `HistorySavingAbility` makes things unnecessarily complicated and should be avoided. 2. Because both `Reline` and `Readline` use a single `HISTORY` constant to store history data. When nesting IRB sessions, only the first IRB session should handle history loading and saving so we can avoid duplicating history. 3. History saving callback should NOT be stored in `IRB.conf` as it's recreated every time `IRB.setup` is called, which would happen when nesting IRB sessions. https://github.com/ruby/irb/commit/0fef0ae160
2023-08-09YJIT: Count all opt_getconstant_path exit reasons (#8187)Takashi Kokubun
Notes: Merged-By: maximecb <[email protected]>
2023-08-09YJIT: Correct name of a counter (#8186)Alan Wu
Notes: Merged-By: maximecb <[email protected]>
2023-08-09Prevent a warning: global variable `$VERSION' not initializedYusuke Endoh
2023-08-09Prevent warnings: assigned but unused variableYusuke Endoh
2023-08-08Skip running brew upgrade (#8189)Takashi Kokubun
This has been unstable: https://github.com/ruby/ruby/actions/runs/5797755676/job/15713988590 and I'm not sure if we need that in the first place, assuming the OS image itself is maintained by GitHub. Notes: Merged-By: k0kubun <[email protected]>
2023-08-08YJIT: Compile exception handlers (#8171)Takashi Kokubun
Co-authored-by: Maxime Chevalier-Boisvert <[email protected]> Notes: Merged-By: k0kubun <[email protected]>
2023-08-08Remove wrapper functions of RVALUE_REMEMBEREDPeter Zhu
Functions rgengc_remembered, rgengc_remembered_sweep, and rgengc_remembersetbits_get are just wrappers of RVALUE_REMEMBERED and doesn't do much more. We can remove all those and use RVALUE_REMEMBERED directly instead. Notes: Merged: https://github.com/ruby/ruby/pull/8137
2023-08-08[ruby/yarp] Fix wrong conversion and castNobuyoshi Nakada
Conversions from `uint64_t`/`VALUE` to `long` may loose upper bits. https://github.com/ruby/yarp/commit/c26f650d96
2023-08-08[ruby/yarp] Adjust indents [ci skip]Nobuyoshi Nakada
https://github.com/ruby/yarp/commit/2d1135769d
2023-08-08[Bug #19833] Fix index underflow at superclasses of `BasicObject`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8185
2023-08-08Add message for `--ruby` option [ci skip]Nobuyoshi Nakada
2023-08-08Share duplicate code between Wasm and the othersNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8182
2023-08-08Simplify try-rescue loopNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8182
2023-08-08Remove unnecessary braces which make indents confusingNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8182
2023-08-08Do not double "yp_" prefix [ci skip]Nobuyoshi Nakada
2023-08-07[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.79 to 0.9.81. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.79...v0.9.81) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> https://github.com/rubygems/rubygems/commit/4c9f8269f6
2023-08-07[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.79 to 0.9.81. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.79...v0.9.81) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> https://github.com/rubygems/rubygems/commit/d3237ab4e2
2023-08-07[ruby/irb] Remove unused `InputMethod#initialize`Stan Lo
(https://github.com/ruby/irb/pull/635) * Remove unused InputMethod#initialize The constructor takes a `file_name` argument, but it is never used. The only input method that needs a file is `FileInputMethod`, which has its own constructor to take a file object directly. So the constructor in `InputMethod` is not needed and its child classes don't need to call `super` in their constructors. * Remove unused FileInputMethod#file_name https://github.com/ruby/irb/commit/153b1e9d1c
2023-08-07[DOC] RDoc for Process (#8179)Burdette Lamar
Notes: Merged-By: peterzhu2118 <[email protected]>
2023-08-07Add hints of tag jumps for optimizationNobuyoshi Nakada
Just as the state was originally passed as the return value of `longjmp`, the state stored in EC cannot be 0 when the jump is captured now too.
2023-08-06Turn `jit_exec` and `jit_compile` into macros if disabledNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8181
2023-08-06Move `GC_CAN_COMPILE_COMPACTION` definition before usedNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/8181
2023-08-06Exclude files added to the toplevelNobuyoshi Nakada
2023-08-06Remove unnecessarily copied document [ci skip]Nobuyoshi Nakada
2023-08-05[ruby/yarp] Add a Requirements section in Build System docsBenoit Daloze
https://github.com/ruby/yarp/commit/298025314c
2023-08-05[ruby/yarp] Small fixes to docs/build_system.mdBenoit Daloze
https://github.com/ruby/yarp/commit/f9db0c282b Co-authored-by: Mike Dalessio <[email protected]>
2023-08-05[ruby/yarp] Clarify shared libraryBenoit Daloze
https://github.com/ruby/yarp/commit/0b174b76f1 Co-authored-by: Mike Dalessio <[email protected]>
2023-08-05[ruby/yarp] Document the build system of YARPBenoit Daloze
https://github.com/ruby/yarp/commit/85ae0e2816
2023-08-05Fix `Gem::BUNDLED_GEMS.find_gem` return valueNobuyoshi Nakada
If the required name is different from the found gem name, return the gem name, instead of true that means the required name is an exact gem name. Notes: Merged: https://github.com/ruby/ruby/pull/8178
2023-08-04Just suppress a warning for non-Emscripten Wasm buildTakashi Kokubun
Revert "Revert "Skip calling jit_exec on Wasm"" This reverts commit 2e94610f70baca4af004202f288a6b5dd10889ca. It's not about whether it's optimized away or not. I just don't want to leave and maintain the callsite (e.g. signature) in the path where YJIT is never built.
2023-08-05Revert "Skip calling jit_exec on Wasm"Nobuyoshi Nakada
This reverts commit e80752f9bbc5228dba3066cd95a81e2e496bd9d7. RJIT and YJIT are never enabled on Wasm. When both are disabled, `jit_exec` is defined to return `Qundef` constantly, and is optimized away. Notes: Merged: https://github.com/ruby/ruby/pull/8176
2023-08-05Remove uneeded int2big property for Universal ParserS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/8170
2023-08-05Lrama v0.5.3yui-knk
Notes: Merged: https://github.com/ruby/ruby/pull/8175
2023-08-04Skip calling jit_exec on WasmTakashi Kokubun
We often break Wasm build when we modify how jit_exec works. I'm planning to modify it again soon. We actually don't support running Ruby JIT on Wasm, so it doesn't seem worth the maintenance effort.
2023-08-04YJIT: expand bitwise shift support in x86 assembler (#8174)Maxime Chevalier-Boisvert
Notes: Merged-By: maximecb <[email protected]>