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

69844 Коммитов

Автор SHA1 Сообщение Дата
卜部昌平 1370b0876f io/buffer.h: C linkage
Because `make install` installs this header to target systems, it must
be ready to be `#include`d form a C++ program.
2021-11-11 11:45:19 +09:00
Burdette Lamar db316e627f
[ruby/getoptlong] Write a first test of getoptlong.rb
https://github.com/ruby/getoptlong/commit/18cdb03fd4
2021-11-11 10:37:35 +09:00
Nobuyoshi Nakada 414b5565f7
[ruby/tmpdir] [DOC] Fix syntax in example code [ci skip]
RDoc expects example code to be valid syntax.

https://github.com/ruby/tmpdir/commit/ee42540ebb
2021-11-11 10:37:35 +09:00
Samuel Williams 51c67ee61a Don't allow `fd == -1` to propagate to system calls. 2021-11-11 13:35:16 +13:00
Peter Zhu d5dd87d0db [ci skip] Fix typo in test name 2021-11-10 17:14:50 -05:00
git 98cc6d158b * 2021-11-11 [ci skip] 2021-11-11 03:52:47 +09:00
Benoit Daloze 8d5f38a8a4 Use Primitive. in timev.rb for consistency with all other .rb files 2021-11-10 19:51:59 +01:00
Nobuyoshi Nakada 8bcff5604b
Tentative fix of subsec to `Time.at` [Bug #18293] 2021-11-10 18:14:14 +09:00
Nobuyoshi Nakada 850912b6e0
Install pkg-config on 32-bit Ubuntu [ci skip] 2021-11-10 17:47:12 +09:00
Nobuyoshi Nakada 4eb23c9dda
Commit miss [ci skip] 2021-11-10 17:47:12 +09:00
Nobuyoshi Nakada 83bdc2f00c
Simplify default values of `Time.at` [Bug #18293] 2021-11-10 17:42:18 +09:00
Nobuyoshi Nakada cc33d07f46
Disable experimental warnings in test/runner.rb 2021-11-10 17:42:09 +09:00
Nobuyoshi Nakada 943b6e4d9c
Fix format specifier 2021-11-10 17:07:58 +09:00
Nobuyoshi Nakada 46e46eafd4
size_t is not for file size 2021-11-10 16:41:26 +09:00
Samuel Williams 81d0ce7e97 Mark IO::Buffer as experimental. 2021-11-10 19:21:05 +13:00
Samuel Williams 4b89034218 IO::Buffer for scheduler interface. 2021-11-10 19:21:05 +13:00
Kazuhiro NISHIYAMA 56b90cf944
Fix a typo and add `IO.` [ci skip] 2021-11-10 14:09:08 +09:00
git af74cc7504 * 2021-11-10 [ci skip] 2021-11-10 10:08:48 +09:00
Yusuke Endoh e8086e275b gc.h: move rb_objspace_garbage_object_p to internal/gc.h
... to allow class.c to use the function
2021-11-10 10:08:30 +09:00
Yusuke Endoh 5c892da7d7 class.c: descendants must not cause GC until the result array is created
Follow up of 428227472f. The previous fix
uses `rb_ary_new_from_values` to create the result array, but it may
trigger the GC.

This second try is to create the result array by `rb_ary_new_capa`
before the second iteration, and assume that `rb_ary_push` does not
trigger GC. This assumption is very fragile, so should be improved in
future.

[Bug #18282] [Feature #14394]
2021-11-10 10:08:30 +09:00
David Rodríguez 0d3898ec7b [rubygems/rubygems] Remove more unused stuff from make command parsing
https://github.com/rubygems/rubygems/commit/eba7d173d4
2021-11-09 21:21:35 +09:00
David Rodríguez ba3dfe6efe [rubygems/rubygems] This method is never passed a block
https://github.com/rubygems/rubygems/commit/d79ade274b
2021-11-09 21:21:34 +09:00
Jun Aruga d713b602ea [rubygems/rubygems] Fix assert_contains_make_command on make defined by environment variable.
The `parse_make_command_line` in `assert_contains_make_command` fails to get
the make targets correctly, when the make command is set with make options by
environment variable such as `export make='make -j2'` at
lib/rubygems/ext/builder.rb::make.

So, we include the make options (eg, -XX) as a part of the command to fix the
case. Note that this commit still doesn't fix the case of
`export make='make -j 2'`.

https://github.com/rubygems/rubygems/commit/7730ef3fa0
2021-11-09 21:21:34 +09:00
David Rodríguez ec6352c108 [rubygems/rubygems] Improve error message when make command doesn't match
https://github.com/rubygems/rubygems/commit/8c2725e9a6
2021-11-09 21:21:33 +09:00
Yusuke Endoh 54bda176c6 test/ruby/test_iseq.rb: Prevent a warning
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20211109T063003Z.log.html.gz
```
[ 9898/21145] TestISeq#test_super_with_block_and_kwrest/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_iseq.rb:1: warning: method redefined; discarding old touch
/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_iseq.rb:1: warning: previous definition of touch was here
 = 0.00 s
```
2021-11-09 17:31:17 +09:00
Yusuke Endoh cf50f9484a test/ruby/test_enum.rb: Prevent a warning
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20211109T063003Z.log.html.gz
```
[ 1960/21145] TestEnumerable#test_to_a_keywords/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_enum.rb:138: warning: method redefined; discarding old each
/home/chkbuild/chkbuild/tmp/build/20211109T063003Z/ruby/test/ruby/test_enum.rb:11: warning: previous definition of each was here
 = 0.00 s
```
2021-11-09 17:30:28 +09:00
Masataka Pocke Kuwabara d5ae892519 Add doc for `a_call` and `a_return` events of TracePoint 2021-11-09 17:10:36 +09:00
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