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

63967 Коммитов

Автор SHA1 Сообщение Дата
Benoit Daloze b4ec4a41c2 Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
2020-12-04 16:45:54 +01:00
git 83e983ab61 * 2020-12-05 [ci skip] 2020-12-05 00:32:51 +09:00
Benoit Daloze 9ea1055eab 2.8 -> 3.0 in specs 2020-12-04 16:32:14 +01:00
Masaki Matsushita 94d49ed31c Add a hook before fork() for getaddrinfo_a()
We need stop worker threads in getaddrinfo_a() before fork().
This change adds a hook before fork() that cancel all outstanding requests
and wait for all ongoing requests. Then, it waits for all worker
threads to be finished.

Fixes [Bug #17220]
2020-12-04 23:31:51 +09:00
Hiroshi SHIBATA 1cfc6e7b7a
Added dependencies for rinda 2020-12-04 20:21:41 +09:00
Jeremy Evans 6f14a30022 [ruby/logger] Consider cygwin a Windows platform
This should fix Ruby Bug 12468.

https://github.com/ruby/logger/commit/49de53d1fc
2020-12-04 20:16:00 +09:00
Masataka Pocke Kuwabara 60b57866ac [ruby/mutex_m] Fix `Mutex_m#initialize` when the super's initialize has kwargs
Co-authored-by: Ryuta Kamizono <kamipo@gmail.com>

https://github.com/ruby/mutex_m/commit/84ca1fc108
2020-12-04 19:53:16 +09:00
Jeremy Evans da126250ba [ruby/fileutils] Make mkdir_p only attempt to create necessary directories
Previously, if creating the directory directly didn't work
and the directory didn't exist, mkdir_p would create all
directories from the root.  This modifies the approach to
check whether the directory exists when walking up the
directory tree from the argument, and once you have found an
intermediate directory that exists, you only need to create
directories under it.

This approach has a couple advantages:

1) It performs better when most directories in path already exist,
and that will be true for most usage of mkdir_p, as mkdir_p is
usually called with paths where the first few directories exist
and only the last directory or last few directories do not.

2) It works in file-system access limited environments such as
when unveil(2) is used on OpenBSD.  In these environments, if
/foo/bar/baz exists and is unveiled, you can do
`mkdir /foo/bar/baz/xyz` but `mkdir /foo` and `mkdir /foo/bar` raise
Errno::ENOENT.

https://github.com/ruby/fileutils/commit/ec0c229e78
2020-12-04 19:50:26 +09:00
Hiroshi SHIBATA e666bd1c5a
Skip subclass spec with SortedSet 2020-12-04 19:36:30 +09:00
Hiroshi SHIBATA b06ffce4ae
SortedSet was removed at a3db08d7b6 2020-12-04 19:36:12 +09:00
Marc-Andre Lafortune 1804c3368c [ruby/set] Add `Set#<=>`
https://github.com/ruby/set/commit/447974a374
2020-12-04 19:24:22 +09:00
Akinori MUSHA a3db08d7b6 [ruby/set] Remove SortedSet implementations
It required RBTree to perform decently and the external dependency was
not suitable for a standard library.  The pure ruby fallback
implementation was originally meant to be an example of how to write a
subclass of Set, and its poor performance was not suitable for use in
production.

I decided it should be distributed as an external library instead of
bundling it with Set.

https://github.com/ruby/set/commit/dfcc8e568b
2020-12-04 19:23:59 +09:00
Akinori MUSHA 46fc8d78a5 [ruby/set] Resurrect support for Ruby 2.x
In Ruby 2.x, initialize_copy does not take a freeze option.

https://github.com/ruby/set/commit/3da6c309df
2020-12-04 19:23:35 +09:00
Jeremy Evans 0adc426ca5 [ruby/zlib] Add Zlib::Inflate#inflate :buffer keyword argument
If a buffer keyword argument is given, it is used as the buffer,
instead of creating new strings.  This can result in significantly
lower memory usage during inflation.

Implements #19

https://github.com/ruby/zlib/commit/dac9a9b57d
2020-12-04 19:12:32 +09:00
Jeremy Evans bc63ec57e7 [ruby/zlib] Allow Zlib.crc32 and .adler32 to accept IO instance
This reads from the IO in 8192 byte chunks, so you don't need to
have the entire string in memory.

Fixes #16

https://github.com/ruby/zlib/commit/ba9793c550
2020-12-04 19:12:20 +09:00
Jeremy Evans a60dfff434 [ruby/zlib] Document that gets can return nil when eof? returns false
This behavior differs from File#gets.

Fixes [Bug #13904]

https://github.com/ruby/zlib/commit/448e41efdd
2020-12-04 19:11:30 +09:00
Nobuyoshi Nakada cf582aa6ee
Fixed a code block in NEWS [ci skip]
A code block needs to be separated from the previous paragraph by
an empty line.
2020-12-04 15:19:36 +09:00
Kenta Murata c0de997edd
memory_view.c: Fix endianness of n, N, v, V 2020-12-04 15:07:07 +09:00
Koichi Sasada e8cee4915b fix initialize order
`captured->code.val` should be initialize before because it can be
a GC point by another ractor because `RB_OBJ_WRITE` can issue
VM locking.
2020-12-04 14:59:12 +09:00
Koichi Sasada 82bbce826f fix index
`i` should not be used here because `i` will be `alen` when
jumped here by "goto restart".
2020-12-04 14:42:38 +09:00
Takashi Kokubun f1757a88a4
Avoid leaving too many core files in /tmp
for CIs like ci.rvm.jp.
2020-12-03 21:33:35 -08:00
Takashi Kokubun 30fba5f37d
Do not require time and fileutils by default
I have no idea what I'm doing, but the previous commit caused lots of CI
failures like https://github.com/ruby/ruby/runs/1496949568 and this
place is the most suspicious.
2020-12-03 21:24:36 -08:00
Takashi Kokubun 067f45ecd3
Save a core file on a worker crash
CI failures like
http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/3280458 doesn't
provide any useful information, and it doesn't leave a core file in a CI
environment because a test like `Process.kill(:TRAP, $$)` overwrites in
a next run very quickly.

Thus I'd like to keep core files in /tmp.
2020-12-03 21:01:25 -08:00
Takashi Kokubun 0734a6cd59
Revert "Report a full_message on a worker crash"
This reverts commit 00f046ef57.
It was not helpful for an issue I was debugging.
2020-12-03 20:55:36 -08:00
Nobuyoshi Nakada 95118e0250
Fixed links in NEWS [ci skip]
* added a missing link
* removed a duplicated link
2020-12-04 12:02:31 +09:00
Jeremy Evans ee4373c81d Remove backticks from method names in NEWS [ci skip]
nobu pointed out this prevents automatic linking to the methods.
2020-12-03 18:32:32 -08:00
Kazuhiro NISHIYAMA 94b2323a68
Fix typos [ci skip] 2020-12-04 10:37:58 +09:00
Aaron Patterson a9d773a288
Revert "Skip repeated scan of object during compaction"
This seems to be breaking the build for some reason.

This command can reproduce it:

`make yes-test-all TESTS=--repeat-count=20`

This reverts commit 88bb1a672c.
2020-12-03 17:19:15 -08:00
Jeremy Evans 9195310168 Update documentation for String#encode{,!} [ci skip]
These methods take keywords, not a hash.

From tjschuck (T.J. Schuck)

Fixes [Bug #17364]
2020-12-03 12:47:34 -08:00
Peter Zhu 88bb1a672c Skip repeated scan of object during compaction 2020-12-03 11:58:05 -08:00
git 04b96fc322 * 2020-12-04 [ci skip] 2020-12-04 02:08:21 +09:00
Jeremy Evans b60eaea8e5 Update NEWS [ci skip]
Make core class updates section use a consistent format. Alphabetize
core class updates section by class name, and stdlib updates section
by library name.  Minor formatting changes while here.
2020-12-03 09:06:44 -08:00
Yusuke Endoh bc4ca06f90 test/ruby/test_io.rb: some test methods had been overwritten
http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20201203T123002Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:1830:
warning: method redefined; discarding old test_each_byte
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:376:
warning: previous definition of test_each_byte was here
test/unit warning: method TestIO#test_each_byte is redefined
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:1849:
warning: method redefined; discarding old test_each_char
/home/chkbuild/chkbuild/tmp/build/20201203T123002Z/ruby/test/ruby/test_io.rb:1799:
warning: previous definition of test_each_char was here
test/unit warning: method TestIO#test_each_char is redefined
```
2020-12-03 23:34:46 +09:00
Nobuyoshi Nakada 2a99fea89e
test-bundled-gems.rb: show failed gems at last 2020-12-03 21:31:44 +09:00
Hiroshi SHIBATA d3c685f0b5
digest gem is available now 2020-12-03 19:17:29 +09:00
Hiroshi SHIBATA 1af8a0a95e [ruby/ipaddr] fixup 90b46678a5b09ed32612b0629b7c51c6d39a0444
https://github.com/ruby/ipaddr/commit/d2ec7cc3ee
2020-12-03 17:48:32 +09:00
Hiroshi SHIBATA e62eb9a3fa [ruby/ipaddr] Relaxed Ruby version for 3.0
https://github.com/ruby/ipaddr/commit/90b46678a5
2020-12-03 17:37:31 +09:00
Samuel Williams d65621b636
Specify minimum version. 2020-12-03 17:37:08 +09:00
Hiroshi SHIBATA ca024beeba
Use Gemfile instead of Gem::Specification#add_development_dependency. 2020-12-03 17:36:39 +09:00
Samuel Williams 7b126a82a9
Simplify `ipaddr.gemspec`. 2020-12-03 17:35:30 +09:00
Marc-Andre Lafortune ab524dfdd9
[ruby/forwardable] Specify minimum Ruby version.
Remove jruby-9.1.17.0 from CI

https://github.com/ruby/forwardable/commit/08d92a9c39
2020-12-03 17:35:29 +09:00
aycabta 5b1ebb8ead
[ruby/readline-ext] Rename depend.gem with depend-gem
https://github.com/ruby/readline-ext/commit/897ffe26a6
2020-12-03 17:35:29 +09:00
aycabta b526db85fe
[ruby/readline-ext] Version 0.1.1
https://github.com/ruby/readline-ext/commit/6d55854434
2020-12-03 17:35:29 +09:00
aycabta b619197dfa
Use gemified depend 2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada eab4aa4178
[ruby/io-wait] Added extensions
https://github.com/ruby/io-wait/commit/664c93b2ff
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada 09266eccf4
[ruby/io-wait] Fixed regexp to reject .travis* at the toplevel only
https://github.com/ruby/io-wait/commit/4434b10e46
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada 7fcbe07d61
[ruby/io-wait] Exclude dot-files for CIs
https://github.com/ruby/io-wait/commit/12cce69ddf
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada 09bcb935ec
[ruby/io-wait] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236.

https://github.com/ruby/io-wait/commit/04857e0cf5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada 2800e9f347
[ruby/io-nonblock] Added extensions
https://github.com/ruby/io-nonblock/commit/8b7abbd1b5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada 7820162018
[ruby/io-nonblock] Exclude dot-files for CIs
https://github.com/ruby/io-nonblock/commit/9fa3ad9c7a
2020-12-03 17:35:28 +09:00