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

69667 Коммитов

Автор SHA1 Сообщение Дата
S.H 75aae66c4f
Some codes replace to `RBOOL` macro (#5023)
* Some code replace and using RBOOL macro

* Fix indent

* Using RBOOL in syserr_eqq function
2021-11-09 17:09:29 +09:00
Nikita Vasilevsky c1c13c58ee Add one more test example for swap instruction 2021-11-09 16:56:44 +09:00
Nobuyoshi Nakada 5a3b2e6141
Needs `$` in `make` command line to be escaped 2021-11-09 16:21:54 +09:00
Koichi Sasada 5680c38c75 Use valid `ec` for postponed job.
Postponed job can be registered from non-Ruby thread, which means
`ec` in TLS can be NULL. In this case, use main thread's `ec` instead.

See https://github.com/ruby/ruby/pull/4108
and https://github.com/ruby/ruby/pull/4336
2021-11-09 16:21:18 +09:00
Yusuke Endoh 3628616dd1 Remove a redundant condition 2021-11-09 16:11:10 +09:00
Yusuke Endoh 64007fc57f class.c (Class#descendants): Ingore subclasses created after estimation
It is theoretically possible if a finalizer creates a subclass.
2021-11-09 16:11:10 +09:00
Yusuke Endoh 037da50666 class.c: Use ALLOC_N instead of ALLOCA_N 2021-11-09 16:11:10 +09:00
Yusuke Endoh 428227472f class.c: calculate the length of Class.descendants in advance
GC must not be triggered during callback of rb_class_foreach_subclass.
To prevent GC, we can not use rb_ary_push. Instead, this changeset calls
rb_class_foreach_subclass twice: first counts the subclasses, then
allocates a buffer (which may cause GC and reduce subclasses, but not
increase), and finally stores the subclasses to the buffer.

[Bug #18282] [Feature #14394]
2021-11-09 16:11:10 +09:00
Nobuyoshi Nakada 3ff0a0b40c
Filter method names only if filtering method name only
If sole `filter` option doesn't seem including test case name,
match with method name only.
And if the filter is a Regexp or String, it never matches method
name symbols.
2021-11-09 15:20:44 +09:00
Yusuke Endoh 6cf7c0a48f test/readline/test_readline.rb: skip a test on i686-linux
... because readline library (or libtinfo) seems to cause SEGV
internally even with Readline 8.1.

This SEGV is caught as SystemStackError, which leads to a test failure.
http://rubyci.s3.amazonaws.com/debian-i386/ruby-master/log/20211109T030008Z.fail.html.gz
```
  1) Failure:
TestReadline#test_interrupt_in_other_thread [/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/ruby/test/readline/test_readline.rb:568]:
Unknown failure with exit status pid 13097 exit 1
Log: ** START **Readline::VERSION is 8.1.
/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `readline': stack level too deep (SystemStackError)
	from /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `block in <main>'
/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `readline': stack level too deep (SystemStackError)
	from /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `block in <main>'
```
2021-11-09 14:52:48 +09:00
Yusuke Endoh 1290bdf1ae test/ruby/test_fiber.rb: Extend timeout on Solaris
The test usually takes 200 sec. on Solaris, so the timeout of 300 sec.
looks too short.
2021-11-09 14:39:39 +09:00
Kazuhiro NISHIYAMA 1d609707b4
Fix a link [ci skip] 2021-11-09 11:30:03 +09:00
Nicholas Lee d7432fdee5 [rubygems/rubygems] Use `shellsplit` instead of array of strings
Previously, the command string to be used for the shell command
was first generated and then split using shellsplit. This change
reverts the current behavior as it breaks if the value of remote
contains a space.

https://github.com/rubygems/rubygems/commit/6649ee10b0
2021-11-09 10:56:17 +09:00
Peter Zhu e014c9d607 [ci skip] Update NEWS.md for [Feature #18290] 2021-11-08 16:41:03 -05:00
Peter Zhu 39d3d24abb [Feature #18290] Remove tests that test use of rb_gc_force_recycle
Remove tests that assume objects get force recycled.
2021-11-08 15:39:53 -05:00
Peter Zhu 309406484b [Feature #18290] Deprecate rb_gc_force_recycle and remove invalidate_mark_stack_chunk
This commit deprecates rb_gc_force_recycle and coverts it to a no-op
function. Also removes invalidate_mark_stack_chunk since only
rb_gc_force_recycle uses it.
2021-11-08 14:05:54 -05:00
Peter Zhu aeae6e2842 [Feature #18290] Remove all usages of rb_gc_force_recycle
This commit removes usages of rb_gc_force_recycle since it is a burden
to maintain and makes changes to the GC difficult.
2021-11-08 14:05:54 -05:00
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 e5792e7d55.

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