Граф коммитов

78553 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 0fcb4c6af7 [rubygems/rubygems] Fix another incorrect removal of "ruby" platform from lockfile
When dependencies in path sources have changed, we'll be re-resolving,
and we can't really know whether the resolution will be valid or invalid
for the Ruby platform, so skip the removal in that case.

https://github.com/rubygems/rubygems/commit/afc3b0956f
2023-07-04 14:54:25 +09:00
Stan Lo af9eeb19d8 [ruby/irb] Stop treating history-saving logic as extension
(https://github.com/ruby/irb/pull/613)

Since `IRB.conf[:SAVE_HISTORY]` is assigned with 1000 by default, history-saving
is a feature enabled by default. So it should not be treated as an extension,
which adds unnecessary complexity to the code.
2023-07-03 13:48:23 +00:00
Benoit Daloze 4430b73cee [ruby/timeout] Require Ruby >= 2.6 for the timeout gem
* The test suite fails on 2.5.
* See https://github.com/ruby/timeout/pull/35

https://github.com/ruby/timeout/commit/03873a9237
2023-07-03 09:57:07 +00:00
John Bachir 8281f8fd06 [ruby/timeout] Test that work is done in the same thread/fiber as
the caller
(https://github.com/ruby/timeout/pull/34)

* see discussion in
https://github.com/ruby/timeout/pull/30#issuecomment-1616179651
2023-07-03 09:26:43 +00:00
Nobuyoshi Nakada 3e605a7819 [ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safe
Fix https://bugs.ruby-lang.org/issues/18933

https://github.com/ruby/tmpdir/commit/446e636434
2023-07-03 05:47:43 +00:00
Nobuyoshi Nakada 4bfa443383
[Cirrus] Set up cargo environments just once at first 2023-07-03 13:36:51 +09:00
Nobuyoshi Nakada d2ffd0ad3d
[Cirrus] Share configuration using YAML aliases
https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
2023-07-03 13:36:42 +09:00
Nobuyoshi Nakada 3a761dcc91
[Cirrus] Show CPU and memory info 2023-07-03 13:35:35 +09:00
Nobuyoshi Nakada bde3b98a60
[Cirrus] Make gem download non-verbose 2023-07-03 13:35:35 +09:00
Nobuyoshi Nakada 4a60764108
[Cirrus] Run also crons other than nightly 2023-07-03 13:35:14 +09:00
John Bachir 7e333b7abf [ruby/timeout] require ruby version in gemspec
https://github.com/ruby/timeout/commit/949445f591
2023-07-02 22:51:25 +00:00
Nobuyoshi Nakada 9682275b54
[Travis] make `.bundle` directory writable
To create gem files from sources under `gems/src` for tests.
2023-07-02 16:52:29 +09:00
git 12fc80ab7f Update default gems list at 4bad2a9562 [ci skip] 2023-07-02 04:49:39 +00:00
Stan Lo 4bad2a9562 [ruby/irb] Bump version to 1.7.1
(https://github.com/ruby/irb/pull/621)

https://github.com/ruby/irb/commit/b9a9dd97df
2023-07-02 04:49:07 +00:00
Nobuyoshi Nakada fa6e14c45d
[DOC] Stop downloading Unicode data only for unicode_properties.rdoc 2023-07-02 13:00:44 +09:00
Nobuyoshi Nakada 765a19ab59 [ruby/psych] Remove private methods unused since #487
https://github.com/ruby/psych/commit/902c292f26
2023-07-01 15:30:21 +00:00
Janosch Müller 08b3fb1152
[Bug #19728] Auto-generate unicode property docs
https://bugs.ruby-lang.org/issues/19728
2023-07-01 23:22:17 +09:00
S-H-GAMELINKS 3fd1968d6f Introduce script_lines function for refactor script_lines_defined and script_lines_get functions 2023-07-01 23:17:57 +09:00
jinroq a70320b8cd Define `NO_SANITIZE` with reference to ext/bigdecimal/missing.c 2023-07-01 23:16:54 +09:00
jinroq 174dbe33cc Supress `warning: ‘unsigned-integer-overflow’ attribute directive ignored [-Wattributes]` 2023-07-01 23:16:54 +09:00
Nobuyoshi Nakada 1a6f3becbb
Fallback `rb_iseq_complete`
For compilers that do not eliminate references to functions that are
never called, such as SunC.
2023-07-01 15:14:27 +09:00
Nobuyoshi Nakada 2952dbad5e
[DOC] Move document for YARP 2023-07-01 12:22:22 +09:00
Jeremy Evans 1bc8838d60
Handle unterminated unicode escapes in regexps
This fixes an infinite loop possible after ec3542229b.
For \u{} escapes in regexps, skip validation in the parser, and rely on the regexp
code to handle validation. This is necessary so that invalid unicode escapes in
comments in extended regexps are allowed.

Fixes [Bug #19750]

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2023-06-30 19:37:53 -07:00
David Rodríguez 41779fede0 [rubygems/rubygems] Bump vendored net-http-persistent to 4.0.2
https://github.com/rubygems/rubygems/commit/b0edf39083
2023-06-30 22:11:58 +00:00
Kevin Newton d49a92d036 [ruby/yarp] Move fuzz docs into docs/ directory, reference in README
https://github.com/ruby/yarp/commit/97547b6192
2023-06-30 18:31:49 +00:00
Stan Lo 136fcd5118 [ruby/irb] Reduce internal operations' exposure to benchmarking
(https://github.com/ruby/irb/pull/618)

* Test last value is assigned with measure enabled

* Remove unnecessary `result` variable

`Context#evaluate` always assigns the result of the evaluation to `_` so
we don't need to do it in `Irb#eval_input`.

* Move benchmarking logic into `Context#evaluate`

Current location of the benchmarking logic is too high up and includes
operations like command loading and argument transformation, which should
be excluded. So this commit moves it into `Context#evaluate` to reduce the
noise.

We don't move it further down to `Workspace#evaluate` because `Context`
is an argument of the measure block, which is not available in `Workspace`.
2023-06-30 17:42:00 +00:00
git 94788a6d13 * expand tabs. [ci skip]
Please consider using misc/expand_tabs.rb as a pre-commit hook.
2023-06-30 14:59:34 +00:00
Nobuyoshi Nakada 39933496ae
Remove duplicate declarations 2023-06-30 23:59:05 +09:00
Nobuyoshi Nakada 0d0841ad4c
Compile code for lazy ISeq loding always 2023-06-30 23:59:05 +09:00
Nobuyoshi Nakada c1432a4816
Compile disabled code for thread cache always 2023-06-30 23:59:05 +09:00
Nobuyoshi Nakada e7dc8f0b27
Compile debugging code for symbol and ID always 2023-06-30 23:59:05 +09:00
Nobuyoshi Nakada ac0163949a
Compile code without Symbol GC always 2023-06-30 23:59:05 +09:00
Nobuyoshi Nakada 469e644c93
Compile code for non-embedded CI always 2023-06-30 23:59:04 +09:00
Nobuyoshi Nakada 5204ad56e1
Compile debugging code for stress to class always 2023-06-30 23:59:04 +09:00
Nobuyoshi Nakada 7a0a218dff
Compile debugging code for integer pack always 2023-06-30 23:59:04 +09:00
Nobuyoshi Nakada d8d7591e6f
Stop `DEBUG_FIND_TIME_NUMGUESS` compilation
Debugging code for find_time_numguess is compiled always.
2023-06-30 23:59:03 +09:00
tomoya ishida 9398734010 [ruby/irb] Re-implement prev_spaces feature for pasted code
(https://github.com/ruby/irb/pull/607)

https://github.com/ruby/irb/commit/9d97a192a5
2023-06-30 14:23:24 +00:00
Peter Zhu 58386814a7 Don't check for null pointer in calls to free
According to the C99 specification section 7.20.3.2 paragraph 2:

> If ptr is a null pointer, no action occurs.

So we do not need to check that the pointer is a null pointer.
2023-06-30 09:13:31 -04:00
卜部昌平 37a893d129 bit quiet 2023-06-30 17:39:39 +09:00
卜部昌平 7102324de3 fix YAML error
`outputs` has to be a hash, but it seems previous expression
generated a null token and would have generated errors here.
2023-06-30 17:39:39 +09:00
卜部昌平 c90b8493fb refactor delete unnecessary branches
These conditions always hold.
2023-06-30 17:39:39 +09:00
卜部昌平 34bf2d5085 refactor extract brew
Use composite action to reduce copy & paste.
2023-06-30 17:39:39 +09:00
卜部昌平 e8d629ed76 refactor extract apt-get
Use composite action to reduce copy & paste.
2023-06-30 11:18:06 +09:00
Peter Zhu d3ff43852b Fix memory leak in Hash#replace
Hash#replace can leak memory if the receiver has an ST table.
2023-06-29 19:07:26 -04:00
Jemma Issroff 1272865a8e
Fix broken wiki links (#8002)
Since [Misc #19679] migrated the wiki, these links should be updated
to their new locations.
2023-06-29 17:00:40 -04:00
Peter Zhu bf2c18731d Add memory leak test for allocating ST hashes
Test for commit f0d08d11dc.
2023-06-29 11:52:48 -04:00
Peter Zhu f0d08d11dc Fix memory leak when copying ST tables
st_copy allocates a st_table, which is not needed for hashes since it is
allocated by VWA and embedded, so this causes a memory leak.

The following script demonstrates the issue:

```ruby
20.times do
  100_000.times do
    {a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9}
  end

  puts `ps -o rss= -p #{$$}`
end
```
2023-06-29 11:16:50 -04:00
Peter Zhu df2b3a2998 Refactor rb_hash_replace to use hash_copy 2023-06-29 11:16:50 -04:00
Nobuyoshi Nakada 3cfcd3d166
Ripper sources are generated at once 2023-06-29 23:08:08 +09:00
Nobuyoshi Nakada c89f519170
More dependencies for ripper 2023-06-29 18:47:56 +09:00