summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-04-06[ruby/syntax_suggest] Preserve whitespace in front of commentsschneems
When removing comments I previously replaced them with a newline. This loses some context and may affect the order of the indent search which in turn affects the final result. By preserving whitespace in front of the comment, we preserve the "natural" indentation order of the line while also allowing the parser/lexer to see and join naturally consecutive (method chain) lines. close https://github.com/ruby/syntax_suggest/pull/177
2023-04-06[ruby/syntax_suggest] Handle alias already exists when debuggingschneems
When `tmp/alias` already exists, I'm now getting phantom folders in the directory pointing at older aliases which is distracting/confusing. By checking and removing that alias before symlinking we can prevent this strange behavior (possibly caused by newer Mac OS?).
2023-04-06[ruby/syntax_suggest] Remove unnecessary `--color` optionNobuyoshi Nakada
It is enabled automatically if possible. Forcing this option makes https://github.com/rspec/rspec-core/pull/3017 useless. https://github.com/ruby/syntax_suggest/commit/8e7141b472
2023-04-06Add missing test for Data.initializeMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/7666
2023-04-06[rubygems/rubygems] Improve comment explaining the neccessity of ↵Vít Ondruch
`write_default_spec` method. The intention is not obvious from the commit log and it might avoid temptation to remove the method without further consideration. https://github.com/rubygems/rubygems/commit/8e17c50f64
2023-04-06[rubygems/rubygems] Fix resolver hangs when dealing with an incomplete lockfileDavid Rodríguez
While working on locking multiple platforms by default, I got an infinite resolution loop in one of our resolver specs. The culprit ended up being that when dealing with lockfile specs with incomplete dependencies (spec appears in lockfile, but its dependencies don't), those specs were not being properly expired and that tripped up resolution. The issue for some reason only manifests when dealing with multiple lockfile platforms, that's why it only manifested when working on locking multiple platforms by default. https://github.com/rubygems/rubygems/commit/4ca72913bb
2023-04-06Revert "Refactor incomplete specs handling"David Rodríguez
This reverts commit 69580f8b72f41c58cae57d1ada4db909922b3891.
2023-04-06[rubygems/rubygems] Revert "Reuse `SpecSet#materialize` logic"David Rodríguez
This reverts commit https://github.com/rubygems/rubygems/commit/a20585b4512d. https://github.com/rubygems/rubygems/commit/aa9102659e
2023-04-06[rubygems/rubygems] Use TestCase#util_spec instead of custom code.Vít Ondruch
https://github.com/rubygems/rubygems/commit/74d485ff1e
2023-04-06Bump github/codeql-action from 2.2.9 to 2.2.10dependabot[bot]
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.9 to 2.2.10. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/04df1262e6247151b5ac09cd2c303ac36ad3f62b...8c8d71dde4abced210732d8486586914b97752e8) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Notes: Merged: https://github.com/ruby/ruby/pull/7668
2023-04-05Add BIN as an entry in the glossary (#7667)Adam Hess
I initially thought this macro is referencing binary, not basic instruction name Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-04-05[ruby/irb] Drop Ruby 2.6 supportStan Lo
(https://github.com/ruby/irb/pull/555) * Remove all Ruby 2.6 support * Drop Ruby 2.6 specific testing conditions * Only run Ruby 2.7+ on CI * Bump Ruby requirement to 2.7+ https://github.com/ruby/irb/commit/3f714b616c
2023-04-05YJIT: Add codegen for Integer methods (#7665)Takashi Kokubun
* YJIT: Add codegen for Integer methods * YJIT: Update dependencies * YJIT: Fix Integer#[] for argc=2 Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-04-05Ensure ruby_xfree won't segfault if called after vm_destructMike Dalessio
[Bug #19580] The real-world scenario motivating this change is libxml2's pthread code which uses `pthread_key_create` to set up a destructor that is called at thread exit to free thread-local storage. There is a small window of time -- after ruby_vm_destruct but before the process exits -- in which a pthread may exit and the destructor is called, leading to a segfault. Please note that this window of time may be relatively large if `atexit` is being used. Notes: Merged: https://github.com/ruby/ruby/pull/7663
2023-04-06core_assertions.rb: Prefer CPU time clocksNobuyoshi Nakada
To prevent influence from other processes. Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-06core_assertions.rb: Extract common code blockNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-06core_assertions.rb: Tweak timeout limitNobuyoshi Nakada
Increase the timeout limit when variance at rehearsal is small. Notes: Merged: https://github.com/ruby/ruby/pull/7661
2023-04-05[DOC] Clarify behavior of abort() with no argumentDaniel DeLorme
Since Ruby 2.7 it prints the message and backtrace of $! Fixes [Bug #19578] Notes: Merged: https://github.com/ruby/ruby/pull/7664
2023-04-05YJIT: Count the number of actually written bytes (#7658)Takashi Kokubun
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-04-05YJIT: Smoke test on Rust 1.58.0Alan Wu
Since warnings might show up on older version but not newer ones. Notes: Merged: https://github.com/ruby/ruby/pull/7657
2023-04-05YJIT: Eanble `unsafe_op_in_unsafe_fn` on crate::coreAlan Wu
Encourages commenting about soundness of `unsafe` usages. Notes: Merged: https://github.com/ruby/ruby/pull/7657
2023-04-05Revert "YJIT: Suppress unnecessary `unsafe` block (GH-7634)"Alan Wu
This reverts commit 9e678cdbd054f78576a8f21b3f97cccc395ade22. Without the `unsafe` annotations, the SAFETY comments make less sense. I want to keep the SAFETY comments. Notes: Merged: https://github.com/ruby/ruby/pull/7657
2023-04-05[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteralHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9264d83421
2023-04-05RJIT: Skip a class guard if known to be T_STRINGTakashi Kokubun
2023-04-05RJIT: Handle include_all argument of respond_to?Takashi Kokubun
2023-04-04RJIT: Remove unused variablesTakashi Kokubun
2023-04-04RJIT: Always use guard_two_fixnumsTakashi Kokubun
2023-04-04RJIT: Eliminate known-result guards for blockargTakashi Kokubun
2023-04-04RJIT: Eliminate known-result branchesTakashi Kokubun
2023-04-05[rubygems/rubygems] Removed unused Gem::Deprecate from Gem::TestCaseHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d8a75a5f84
2023-04-05[rubygems/rubygems] Extract class method used by self.methodHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d900453ca2
2023-04-05[rubygems/rubygems] We don't use process_based_port and self.process_based_portHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f1a20c4c69
2023-04-05[rubygems/rubygems] We don't use self.make_commandHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/241f376c32
2023-04-05[rubygems/rubygems] Unify win_platform? to Gem.win_platform?Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/b18a4ef076
2023-04-05[rubygems/rubygems] Unify java_platform? to Gem.java_platform?Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/7f27ab32b8
2023-04-05[rubygems/rubygems] Removed self.mingw_windows?, It's not used rubygemsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/ba3c985701
2023-04-05[rubygems/rubygems] add some test suites under the Gem namespace, so as not ↵lukeg
to collide To avoid collisions especially in ruby/ruby https://github.com/rubygems/rubygems/commit/e6b2359975
2023-04-04RJIT: Propagate argument types on method callsTakashi Kokubun
2023-04-04RJIT: Fix mapping offsets in stack_swapTakashi Kokubun
2023-04-05Bump ruby/setup-ruby from 1.144.2 to 1.146.0dependabot[bot]
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.144.2 to 1.146.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Commits](https://github.com/ruby/setup-ruby/compare/ec02537da5712d66d4d50a0f33b7eb52773b5ed1...55283cc23133118229fd3f97f9336ee23a179fcf) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Notes: Merged: https://github.com/ruby/ruby/pull/7660
2023-04-05Use `em_delete` in `key_delete` (#504)Étienne Barrié
* Test existing behavior Typing Ctrl-D ends editing but typing <Del> does not. Also renamed a test that is not testing ed_delete_next_char but key_delete. * Check if line empty first in em_delete By distributivity of AND over OR, we can factor out this condition. This will make the next commit simpler. * Use em_delete in key_delete When the editing mode is emacs, use `em_delete` in `key_delete`. We need to add a condition though to `em_delete`, because it implements both `delete-char` and `end-of-file`. We only want the `end-of-file` behavior is the key is really Ctrl-D. This matches the behavior of the <Del> key with readline, i.e. deleting the next character if there is one, but not moving the cursor, while not finishing the editing if there are no characters.
2023-04-04[ruby/optparse] Document requires needed for ↵Jeremy Evans
Date/DateTime/Time/URI/Shellwords support Fixes [Bug #19566] https://github.com/ruby/optparse/commit/fb91d97c10
2023-04-04[Feature #19579] Remove !USE_RVARGC code (#7655)Peter Zhu
Remove !USE_RVARGC code [Feature #19579] The Variable Width Allocation feature was turned on by default in Ruby 3.2. Since then, we haven't received bug reports or backports to the non-Variable Width Allocation code paths, so we assume that nobody is using it. We also don't plan on maintaining the non-Variable Width Allocation code, so we are going to remove it. Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-04-04Use a longer timeout for syntax_suggestTakashi Kokubun
for CI stability
2023-04-04YJIT: add stats for ratio of versions per block (#7653)Maxime Chevalier-Boisvert
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-04-04Revert "Fix transient heap mode"Aaron Patterson
This reverts commit 87253d047ce35e7836b6f97edbb4f819879a3b25. Revert "Implement `Process.warmup`" This reverts commit ba6ccd871442f55080bffd53e33678c0726787d2.
2023-04-04Remove an unused counterTakashi Kokubun
I ended up not using it.
2023-04-04Resurrect yjit-smoke-test before #7651Takashi Kokubun
2023-04-04YJIT: Stack temp register allocation (#7651)Takashi Kokubun
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com> Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-04-04Fix transient heap modeAaron Patterson
Make sure the transient heap is in the right mode when we finish warming the heap. Also ensure the GC isn't allowed to run while we iterate and mutate the heap. Notes: Merged: https://github.com/ruby/ruby/pull/7346