Commit graph

64552 commits

Author SHA1 Message Date
Jeremy Evans
a60dfff434 [ruby/zlib] Document that gets can return nil when eof? returns false
This behavior differs from File#gets.

Fixes [Bug #13904]

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 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
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
d2ec7cc3ee
2020-12-03 17:48:32 +09:00
Hiroshi SHIBATA
e62eb9a3fa [ruby/ipaddr] Relaxed Ruby version for 3.0
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

08d92a9c39
2020-12-03 17:35:29 +09:00
aycabta
5b1ebb8ead
[ruby/readline-ext] Rename depend.gem with depend-gem
897ffe26a6
2020-12-03 17:35:29 +09:00
aycabta
b526db85fe
[ruby/readline-ext] Version 0.1.1
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
664c93b2ff
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09266eccf4
[ruby/io-wait] Fixed regexp to reject .travis* at the toplevel only
4434b10e46
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7fcbe07d61
[ruby/io-wait] Exclude dot-files for CIs
12cce69ddf
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
09bcb935ec
[ruby/io-wait] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236.

04857e0cf5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
2800e9f347
[ruby/io-nonblock] Added extensions
8b7abbd1b5
2020-12-03 17:35:29 +09:00
Nobuyoshi Nakada
7820162018
[ruby/io-nonblock] Exclude dot-files for CIs
9fa3ad9c7a
2020-12-03 17:35:28 +09:00
Nobuyoshi Nakada
7d0a6e28f2
[ruby/io-nonblock] Fix ls-files matching regexp
See rubygems/rubygems@8a81183236.

e14f7952c1
2020-12-03 17:35:28 +09:00
Hiroshi SHIBATA
412a0f5240
[ruby/digest] LICENSE
aa048ce345
2020-12-03 17:35:28 +09:00
Hiroshi SHIBATA
7324d76da4
[ruby/digest] Fixup d981714348f71177132426e3ac19598e1b2e8f5d
502a12587c
2020-12-03 17:35:28 +09:00
Takashi Kokubun
541e4340dd
Assert unit->iseq null out happens under the JIT/GC guard 2020-12-03 00:01:11 -08:00
Takashi Kokubun
58c3c75fee
Skip checking Ractor recursive locking
for an MJIT worker thread. We can't do it because its GET_EC() returns
NULL.
2020-12-02 23:38:42 -08:00
Jeremy Evans
29c9588e7e Add Proc#{==,eql?} addition to NEWS [ci skip] 2020-12-02 22:27:54 -08:00
卜部昌平
43b95bafd5
delete deprecated IO-like methods
This commit deletes
{IO,ARGF,StringIO,Zib::GZipReader}#{bytes,chars,lines,codepoints}, which
have been deprecated since c47c095b97.

Note that String also has those methods.  They are neither depreacted
nor deleted because they are not aliases of counterpart each_something.
2020-12-03 12:47:51 +09:00
卜部昌平
84eb2bfab9 include/ruby/internal/xmalloc.h: add doxygen
Thought it was not a bad idea to document these CAPI. [ci skip]
2020-12-03 12:07:56 +09:00
Koichi Sasada
1f71c7dc81 add GC guard
new_prev_env is stored in the env_body memory block but this is not
a GC root, so new_prev_env could be freed.
2020-12-03 06:49:52 +09:00
Aaron Patterson
51268be7fe When allocating new pages, add them to the end of the linked list
When we allocate new pages, allocate them on the end of the linked list.
Then when we compact we can move things to the head of the list
2020-12-02 10:47:10 -08:00
Jeremy Evans
9e73177d53 Do not reduce quantifiers if it affects which text will be matched
Quantifier reduction when using +?)* and +?)+ should not be done
as it affects which text will be matched.

This removes the need for the RQ_PQ_Q ReduceType, so remove the
enum entry and related switch case.

Test that these are the only two patterns affected by testing all
quantifier reduction tuples for both the captured and uncaptured
cases and making sure the matched text is the same for both.

Fixes [Bug #17341]
2020-12-02 18:42:02 +01:00
git
7546be2ca0 * 2020-12-03 [ci skip] 2020-12-03 01:23:57 +09:00
Aaron Patterson
0bebea985d Incremental sweeping should not require page allocation
Incremental sweeping should sweep until we find a slot for objects to
use.  `heap_increment` was adding a page to the heap even though we
would sweep immediately after.

Co-authored-by: John Hawthorn <john@hawthorn.email>
2020-12-02 08:23:31 -08:00
卜部昌平
12a121cc0f
ENV.index: delete
Has been deprecated since 373282f665.
2020-12-02 20:17:11 +09:00
Hiroshi SHIBATA
28001e55b3
Added dependencies for net-pop 2020-12-02 19:36:06 +09:00