85853 Commits

Author SHA1 Message Date
Burdette Lamar
8627225704
Add/revise Errno descriptions (#10897) 2024-06-04 15:19:50 +00:00
Kevin Newton
fd517a97be [ruby/prism] Revert "Revert "Properly destructure procarg0 in parser translation""
This reverts commit https://github.com/ruby/prism/commit/d8ae19d0334a.

https://github.com/ruby/prism/commit/df1eda2811
2024-06-04 15:05:52 +00:00
Takashi Kokubun
a2147eb694
YJIT: Fix getconstant exits after opt_ltlt fusion (#10903)
Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
2024-06-04 10:17:40 -04:00
tomoya ishida
a8c1ef6a60 [ruby/irb] Remove useless Reline::Key.new and update wrong comment
for alt+d
(https://github.com/ruby/irb/pull/963)

https://github.com/ruby/irb/commit/a572180b3a
2024-06-04 12:09:15 +00:00
Hiroshi SHIBATA
892849ac98 Remove dependency on fiddle from test/ruby
Co-authored-by: "Nobuyoshi Nakada" <nobu@ruby-lang.org>
2024-06-04 19:53:04 +09:00
Hiroshi SHIBATA
8ff5458c2e
EXACT list is mostly same as SINCE list on bundled gems. 2024-06-04 18:30:39 +09:00
Hiroshi SHIBATA
f365bef0c7
Warn to use win32ole without Gemfile for Ruby 3.5 2024-06-04 18:30:39 +09:00
Nobuyoshi Nakada
1ac3a71d66
[DOC] ruby.1: Refine RUBY_GC_HEAP_n_INIT_SLOTS description 2024-06-04 18:01:58 +09:00
Nobuyoshi Nakada
bdcdeb7918
[DOC] ruby.1: mandoc is not markdown 2024-06-04 17:56:06 +09:00
Hiroshi SHIBATA
7bc4b5f17f [ruby/win32ole] Added missing extensions
https://github.com/ruby/win32ole/commit/8456e8830e
2024-06-04 07:50:20 +00:00
Hiroshi SHIBATA
8080cb7090
Removed trailing spaces. 2024-06-04 15:00:47 +09:00
Benoit Daloze
9c4a28b826 [flori/json] Use the pure-Ruby generator on TruffleRuby as it is much faster
* Using the benchmark from https://github.com/flori/json/pull/580
$ ruby benchmarks/bench.rb dump pure
JSON::Pure::Generator
truffleruby 24.0.0, like ruby 3.2.2, Oracle GraalVM Native [x86_64-linux]
Warming up --------------------------------------
      JSON.dump(obj)   116.000 i/100ms
      JSON.dump(obj)   235.000 i/100ms
      JSON.dump(obj)   317.000 i/100ms
      JSON.dump(obj)   372.000 i/100ms
      JSON.dump(obj)   374.000 i/100ms
Calculating -------------------------------------
      JSON.dump(obj)      3.735k (± 0.9%) i/s  (267.76 μs/i) -     18.700k in   5.007526s
      JSON.dump(obj)      3.738k (± 0.7%) i/s  (267.49 μs/i) -     18.700k in   5.002252s
      JSON.dump(obj)      3.743k (± 0.7%) i/s  (267.18 μs/i) -     19.074k in   5.096375s
      JSON.dump(obj)      3.747k (± 0.5%) i/s  (266.87 μs/i) -     19.074k in   5.090463s
      JSON.dump(obj)      3.746k (± 0.5%) i/s  (266.96 μs/i) -     19.074k in   5.092069s
$ ruby benchmarks/bench.rb dump ext
JSON::Ext::Generator
truffleruby 24.0.0, like ruby 3.2.2, Oracle GraalVM Native [x86_64-linux]
Warming up --------------------------------------
      JSON.dump(obj)    19.000 i/100ms
      JSON.dump(obj)    18.000 i/100ms
      JSON.dump(obj)    18.000 i/100ms
      JSON.dump(obj)    18.000 i/100ms
      JSON.dump(obj)    21.000 i/100ms
Calculating -------------------------------------
      JSON.dump(obj)    221.260 (±10.8%) i/s    (4.52 ms/i) -      1.092k in   5.004381s
      JSON.dump(obj)    221.983 (± 8.1%) i/s    (4.50 ms/i) -      1.113k in   5.055574s
      JSON.dump(obj)    221.446 (± 8.6%) i/s    (4.52 ms/i) -      1.113k in   5.073167s
      JSON.dump(obj)    226.452 (± 7.9%) i/s    (4.42 ms/i) -      1.134k in   5.048568s
      JSON.dump(obj)    227.795 (± 8.3%) i/s    (4.39 ms/i) -      1.134k in   5.025187s

https://github.com/flori/json/commit/8256455cdc
2024-06-04 14:44:43 +09:00
Hiroshi SHIBATA
3eda59e975
Sync strscan HEAD again.
https://github.com/ruby/strscan/pull/99 split document with multi-byte
chars.
2024-06-04 12:40:08 +09:00
Jean Boussier
c5ae432ec8
[flori/json] Cleanup useless ifdef
The json gem now requires Ruby 2.3, so there is no point keeping
compatibility code for older releases that don't have the
TypedData API.

https://github.com/flori/json/commit/45c86e153f
2024-06-04 12:23:48 +09:00
dependabot[bot]
255ca83fb8 Bump ruby/setup-ruby from 1.178.0 to 1.179.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.178.0 to 1.179.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Commits](0cde4689ba...d5fb7a202f)

---
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>
2024-06-03 19:49:17 -07:00
Alan Wu
c4056b0e43 YJIT: Add another regression test for empty splat
Follow-up for 6c8ae44a388e5c03b7db90376af3652007b574e8 ("YJIT: Fix out
of bounds access when splatting empty array"). This test crashes Ruby
3.3.2.
2024-06-03 20:20:02 -04:00
Takashi Kokubun
e7e83a313c Skip flaky RJIT tests
https://github.com/ruby/ruby/actions/runs/9352283948/job/25740049841
https://github.com/ruby/ruby/actions/runs/9350872852/job/25735280811

Not a high priority to fix right now, so skipping until we get to fix
it.
2024-06-03 16:50:43 -07:00
Takashi Kokubun
372531f3bc Revert "Skip failing Bundler specs for now"
This reverts commit a8f5284045e3aba1b45691142e5c01bf1d24d519.

Sorry, I didn't mean to push this one since I reverted the reline
change.
2024-06-03 16:13:28 -07:00
Takashi Kokubun
6e84ac2359 Revert "[ruby/reline] Reline::ANSI is general io. Reline::GeneralIO is not."
This reverts commit ba01d15cf5db96933905d669c68f5cc0cd6910b8.

It seems to be failing test-bundler-parallel. Reverting it to normalize
the CI. We should revert this revert once we figure it out.
2024-06-03 16:11:54 -07:00
Takashi Kokubun
a8f5284045 Skip failing Bundler specs for now 2024-06-03 16:09:02 -07:00
Kevin Newton
89ef1392f8 [ruby/prism] Revert "Properly destructure procarg0 in parser translation"
This reverts commit https://github.com/ruby/prism/commit/823e931ff230.

https://github.com/ruby/prism/commit/d8ae19d033
2024-06-03 21:31:29 +00:00
Kevin Newton
5502890a2f [ruby/prism] Properly destructure procarg0 in parser translation
https://github.com/ruby/prism/commit/823e931ff2
2024-06-03 21:12:36 +00:00
Kevin Newton
56301ba324 [ruby/prism] Update unparser tests
https://github.com/ruby/prism/commit/aee84cf42c
2024-06-03 20:57:53 +00:00
Kevin Newton
856898e977 [ruby/prism] Update seattlerb tests
https://github.com/ruby/prism/commit/a255653447
2024-06-03 20:57:51 +00:00
Kevin Newton
91ee58ee48 [ruby/prism] Update whitequark tests
https://github.com/ruby/prism/commit/95e2484903
2024-06-03 20:57:50 +00:00
Kevin Newton
77581dd45b [ruby/prism] Fix up steep issues
https://github.com/ruby/prism/commit/21d314eb2e
2024-06-03 20:57:48 +00:00
John Hawthorn
520ab22725 Avoid unnecessary writes to imemo_env during GC
Similar to the previous commit, to avoid unnecessary Copy-on-Write
memory use we should only set this flag when it has not previously been
set.
2024-06-03 11:02:49 -07:00
John Hawthorn
9d6b8806a4 Avoid unnecessary writes to ISEQ during GC
On mark we check whether a callcache has been invalidated and if it has
we replace it with the empty callcache, rb_vm_empty_cc(). However we
also consider the empty callcache to not be active, and so previously
would overwrite it with itself.

These additional writes are problematic because they may force
Copy-on-Write to occur on the memory page, increasing system memory use.
2024-06-03 11:02:49 -07:00
Nobuyoshi Nakada
17b89849c6
Count uninitialized call cache as miss empty
Fix segfault at start up when `USE_DEBUG_COUNTER` is enabled.
2024-06-03 23:42:19 +09:00
tomoya ishida
ba01d15cf5 [ruby/reline] Reline::ANSI is general io. Reline::GeneralIO is not.
(https://github.com/ruby/reline/pull/659)

Reline::ANSI has a partial non-tty supporting code. It should be a general io.
Reline::Dumb should be only used in testing.

https://github.com/ruby/reline/commit/2d6828473d
2024-06-03 14:28:33 +00:00
Nobuyoshi Nakada
7aa1bca2c9
[DOC] man: Add environment variable RUBY_PAGER 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
fa8984df2e
[DOC] man: Add environment variable RUBY_MAX_CPU and RUBY_MN_THREADS 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
2192b0eaa0
[DOC] man: Add environment variable RUBY_FREE_AT_EXIT 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
c08783f398
[DOC] man: Remove environment variable RUBY_GC_HEAP_INIT_SLOTS 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
0fb2147284
[DOC] man: Add environment variable RUBY_IO_BUFFER_DEFAULT_SIZE 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
c25f653047
[DOC] man: Add environment variable RUBY_SHARED_FIBER_POOL_FREE_STACKS 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
589764b1c9
[DOC] man: Add missing GC environment variables 2024-06-03 23:10:05 +09:00
Nobuyoshi Nakada
1ca4c8b41f
[DOC] man: Fix up formatting 2024-06-03 23:10:05 +09:00
Hiroaki Osawa
5d33ff36dc [ruby/reline] In ed_search_[prev|next]_history, make the cursor come
to the end of the line when there is no search substr
(https://github.com/ruby/reline/pull/714)

* In ed_search_prev_history, make the cursor come to the end of the line when there is no search substr

* In ed_search_next_history, make the cursor come to the end of the line when there is no search substr

* Implemented ActionState to search with empty substr if the previous operation was search with empty string.

* Use a simple 2-element array to represent action_state

https://github.com/ruby/reline/commit/95ee80bd70
2024-06-03 14:05:51 +00:00
tomoya ishida
91d4a7ae0c [ruby/reline] Improve key binding match/matching check
(https://github.com/ruby/reline/pull/709)

* Improve key binding match/matching check

* Rename key_actors to default_key_bindings

* Make key_stroke.expand always return a value

* Update add_default_key_binding to use a add_default_key_binding_by_keymap internally

Co-authored-by: Stan Lo <stan001212@gmail.com>

---------

https://github.com/ruby/reline/commit/353ec236e2

Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-06-03 13:15:05 +00:00
nagachika
631449ac6b README.ja.md: Remove Cirrus CI badge image. folloup for 15ee9c7c1b693f29b6b2dbe7b47488bf154e481c. 2024-06-03 20:59:04 +09:00
Tanaka Akira
61af722d4e fix typos. 2024-06-03 14:37:32 +09:00
Takashi Kokubun
ac62adadc0 Drop -v from RJIT CI
It no longer hangs these days. It takes a lot of work to scroll through
a lot of lines when reading logs.
2024-06-02 22:35:54 -07:00
p0pemaru
cb6dcc7746 [ruby/date] [DOC] specify the unit of return value for Date#-
https://github.com/ruby/date/commit/b3a2c7611e
2024-06-03 05:24:18 +00:00
Nobuyoshi Nakada
77e5e06846 [ruby/date] Prevent converted gregorian date from GC
`m_sf_in_sec` calls `rb_rational_new` that can cause GC.

https://github.com/ruby/date/commit/6de449ab6a
2024-06-03 05:23:44 +00:00
Hiroshi SHIBATA
d50404d6fe
Revert "Sync strscan document files to under the doc directory"
This reverts commit 5611e249e10bf95d48bbf27674bbb6b1fe588b5e.

Followed up with 78bfde5d9f
2024-06-03 14:20:23 +09:00
Tanaka Akira
ca2170e69f [DOC] percent literals can be nested. 2024-06-03 12:24:55 +09:00
dependabot[bot]
036d0cdbc6 Bump github/codeql-action from 3.25.6 to 3.25.7
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.6 to 3.25.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](9fdb3e4972...f079b84933)

---
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>
2024-06-02 19:50:27 -07:00
Yusuke Endoh
b346eb8f14 Raise EAI_SYSTEM when pthread_create fails in getaddrinfo
Previously, EAI_AGAIN was raised.

In our CI, "Temporary failure in name resolution" (EAI_AGAIN) is often
raised. We are not sure if this was caused by pthread_create failure or
getaddrinfo failure. To make it possible to distinguish between them,
this changeset raises EAI_SYSTEM instead of EAI_AGAIN on pthread_create
failure.
2024-06-03 10:44:30 +09:00
Tanaka Akira
d05d03b186 IO.select accepts a numeric value as timeout.
[DOC] IO.select accepts a numeric value as timeout, not only an integer.
2024-06-02 23:24:08 +09:00