69650 Commits

Author SHA1 Message Date
Yusuke Endoh
aa5bccfc65 NEWS.md: Mention Process._fork [[Feature #17795]] 2021-11-09 03:38:42 +09:00
git
837493389f * 2021-11-09 [ci skip] 2021-11-09 03:33:04 +09:00
Yusuke Endoh
efe7e6e949 Bundle rbs 1.7.0.beta.5 2021-11-09 03:32:46 +09:00
Hiroshi SHIBATA
bd2674ad33 [rubygems/rubygems] Use bundler-graph instead of bundler-viz
https://github.com/rubygems/rubygems/commit/a54cca13db
2021-11-08 22:15:21 +09:00
Nobuyoshi Nakada
7cc4e147fc
Get rid of implicit expansion to long double on ix86 2021-11-08 18:35:22 +09:00
Nobuyoshi Nakada
395738e8a5
Separate TestReadline#test_interrupt_in_other_thread
This method is already known to fail on Travis-CI arm32-linux.
2021-11-08 18:33:41 +09:00
Nobuyoshi Nakada
a64f7e9c00
Try 32bit environment 2021-11-08 18:04:52 +09:00
Nobuyoshi Nakada
2772f85648
Prefer ANSI-style prototypes over old K&R-style definitions 2021-11-08 17:08:01 +09:00
Nobuyoshi Nakada
b47f7afbc3
Fix filename typo [Bug #18140] 2021-11-08 17:08:01 +09:00
git
b5ca8ebc0b Update bundled_gems at 2021-11-08 2021-11-08 07:07:54 +00:00
Nobuyoshi Nakada
833c69ee82
Convert IDs to Integers
As the ID serial is 32bit value and internal IDs created in the
parser are assigned from its maximum value, Symbol converted from
it will exceed 32bit and overflow on 32bit platforms.
2021-11-08 15:14:34 +09:00
git
f3bae1a206 * 2021-11-08 [ci skip] 2021-11-08 12:52:24 +09:00
Kenta Murata
3501e0cbb5
memory_view.c: Add _memory_view_entry member in rb_memory_view_t (#5088) 2021-11-08 12:52:09 +09:00
Nobuyoshi Nakada
e0a5c3d2b7
[MinGW] Set job names 2021-11-07 20:46:26 +09:00
Nobuyoshi Nakada
8dc2fce2be
[MinGW] Highlight where groups 2021-11-07 20:46:26 +09:00
Nobuyoshi Nakada
7068255b0c
[MinGW] Run in sh 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
acd82cc31a
[MinGW] Run test-spec 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
5ebda74ae1
[MinGW] Pass -j option via environment variables 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
6295e348a9
[MinGW] Clear BUNDLER_VERSION unconditinally 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
dc4dd96b02
[MinGW] Remove unnecessary encoding settings 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
8acb2a9b40
[MinGW] Use autogen 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
ec032e86fa
[MinGW] Clear prefix and move the directory to DESTDIR
Also the destination will be created at the installation.
2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
ba0e3ea130
[MSWin] Pass TESTOPTS via RUBY_TESTOPTS 2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
30583bc947
[MSWin] Split nmake step
The workflow output grouping seems effective even in the middle of
lines.
2021-11-07 20:46:25 +09:00
Nobuyoshi Nakada
5eb54c495f [MinGW] Set job env vars at once 2021-11-07 20:39:16 +09:00
Kazuhiro NISHIYAMA
ac642df228
Revert "Fix typo in ChangeLog-2.0.0 [ci skip]"
This reverts commit e5792e7d552235e17a93d50a26c375db1974148f.

Because this is correct ChangeLog of
89fef02f13
and reverted commit makes inconsistency with
171c708b0c
2021-11-07 13:13:32 +09:00
git
45db04ee60 * 2021-11-07 [ci skip] 2021-11-07 12:40:43 +09:00
Nobuyoshi Nakada
ec657f44dc Refine the error message for hidden variables 2021-11-07 12:40:27 +09:00
Nobuyoshi Nakada
334b69e504 rb_id_serial_to_id: return unregistered ID as an internal ID
```ruby
def foo(*); ->{ super }; end
```

This code makes anonymous parameters which is not registered as an
ID.  The problem is that when Ractors try to scan `getlocal`
instructions, it puts the Symbol corresponding to the parameter
in to a hash.  Since it is not registered, we end up with a
strange exception.  This commit wraps the unregistered ID in an
internal ID so that we get the same exception for `...` as `*`.

Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
Co-Authored-By: John Hawthorn <john@hawthorn.email>
2021-11-07 12:40:27 +09:00
Nobuyoshi Nakada
66b0847602
Check the reading size range 2021-11-06 17:39:37 +09:00
180909
e5792e7d55
Fix typo in ChangeLog-2.0.0 [ci skip] 2021-11-06 10:46:09 +09:00
Hiroshi SHIBATA
666a918595 [rubygems/rubygems] GNU Make needs DESTDIR on Windows environment like msys or mingw
https://github.com/rubygems/rubygems/commit/7fd987d30d
2021-11-06 09:06:49 +09:00
John Hawthorn
fbd6cc5856
YJIT: Support iseq sends with mixed kwargs (#5082)
* YJIT: Support iseq sends with mixed kwargs

Co-authored-by: Kevin Newton <kddnewton@gmail.com>

* Add additional comments to iseq sends

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2021-11-05 17:01:07 -04:00
John Hawthorn
9cc2c74b83
YJIT: Implement checkkeyword (#5083)
Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>

Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
2021-11-05 16:54:23 -04:00
Alan Wu
91a9062626
YJIT: use shorter encoding for mov(r64,imm) when unambiguous (#5081)
* YJIT: use shorter encoding for mov(r64,imm) when unambiguous

Previously, for small constants such as `mov(RAX, imm_opnd(Qundef))`,
we emit an instruction with an 8-byte immediate. This form commonly
gets the `movabs` mnemonic.

In 64-bit mode, 32-bit operands get zero extended to 64-bit to fill the
register, so when the immediate is small enough, we can save 4 bytes by
using the `mov` variant that takes a 32-bit immediate and does a zero
extension.

Not implement with this change, there is an imm32 variant of `mov` that
does sign extension we could use. When the constant is negative, we
fallback to the `movabs` form.

In railsbench, this change yields roughly a 12% code size reduction for
the outlined block.

Co-authored-by: Jemma Issroff <jemmaissroff@gmail.com>

* [ci skip] comment edit. Please squash.

Co-authored-by: Jemma Issroff <jemmaissroff@gmail.com>
2021-11-05 15:44:29 -04:00
haruuzion
82ae9b092c [rubygems/rubygems] Fix url
https://github.com/rubygems/rubygems/commit/6a5a80eff7
2021-11-06 01:39:24 +09:00
git
f1ca64ed7c * 2021-11-06 [ci skip] 2021-11-06 00:22:31 +09:00
Jeremy Evans
e83c02a768 Delegate keywords from Enumerable#to_a to #each
Fixes [Bug #18289]
2021-11-05 06:22:14 -09:00
David Rodríguez
907aa47527 [rubygems/rubygems] Fix ruby setup.rb command when --prefix is passed
https://github.com/rubygems/rubygems/commit/8d04092f6e
2021-11-05 23:20:50 +09:00
David Rodríguez
d47831d554 [rubygems/rubygems] Bin dir should fall inside destdir
Since that's what happens in real life when `--destdir` is passed.

https://github.com/rubygems/rubygems/commit/55637bdc8a
2021-11-05 23:20:49 +09:00
David Rodríguez
ef6752c6c4 [rubygems/rubygems] Remove unnecessary test setup
The method being unit tested here doesn't use
`RbConfig::CONFIG["bindir"]`.

https://github.com/rubygems/rubygems/commit/d3f092ad14
2021-11-05 23:20:49 +09:00
David Rodríguez
f5a4fdae25 [rubygems/rubygems] Remove unnecessarily changing GEM_HOME
At this point gem paths are already loaded and memoize. Changing
`GEM_HOME` has no effect.

https://github.com/rubygems/rubygems/commit/a1f62f0939
2021-11-05 23:20:48 +09:00
David Rodríguez
87a8b22455 [rubygems/rubygems] Simplify --destdir test
https://github.com/rubygems/rubygems/commit/0571fd1ec6
2021-11-05 23:20:48 +09:00
David Rodríguez
e60c1f7556 [rubygems/rubygems] Refactor setup tests to not always pass --prefix
Standard usage should be tested by default. I will add a test for
`--prefix` once I fix that option since it's not working correctly at
the moment.

https://github.com/rubygems/rubygems/commit/50a7e34586
2021-11-05 23:20:47 +09:00
David Rodríguez
5b941ec90d [rubygems/rubygems] Remove unnecessary loop
Rubygems installs a single executable. Make that explicit.

https://github.com/rubygems/rubygems/commit/2839d15521
2021-11-05 23:20:47 +09:00
Yusuke Endoh
56119c5245 Skip TestIRB::TestInit#test_recovery_sigint on Solaris
The test randomly gets stuck on Solaris:

http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20211105T060014Z.fail.html.gz
```
  1) Error:
TestIRB::TestInit#test_recovery_sigint:
Timeout::Error: execution of assert_in_out_err expired timeout (100.0 sec)
pid 3195 killed by SIGTERM (signal 15)
| Switch to inspect mode.
| exit
|
```

I investigated the issue but I couldn't figure it out.
This random failure is noisy, which makes it difficult to track the CI.
So I skip the test on Soalris. Contribution is welcome.
2021-11-05 20:03:11 +09:00
Nobuyoshi Nakada
bfc0a71a82
Suppress unused-function warnings 2021-11-05 10:32:55 +09:00
Nobuyoshi Nakada
f62f020f56
Add the test of Dir.glob when sort: true is given explicitly 2021-11-05 10:20:02 +09:00
Nobuyoshi Nakada
1ce3706c58
[DOC] Fix indent as single paragraph [ci skip] 2021-11-05 09:58:46 +09:00
Nobuyoshi Nakada
f3812e6ce6
[DOC] Needs call-seq directives [ci skip] 2021-11-05 09:58:46 +09:00