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

64331 Коммитов

Автор SHA1 Сообщение Дата
Kazuhiro NISHIYAMA ffc8a72f39
Sort URLs by issue numbers [ci skip] 2020-12-18 14:59:20 +09:00
Takashi Kokubun f0ec923c58
Remove --jit-save-temps from MJIT
It's probably not helping the backtrace.
2020-12-17 21:36:26 -08:00
Kenta Murata b5de66e132
[strscan] Fix license comment and files
https://github.com/ruby/strscan/commit/a999f2c6d1
2020-12-18 14:25:48 +09:00
Kenta Murata 5370963992
[strscan] Version 3.0.0
https://github.com/ruby/strscan/commit/08645e4e77
2020-12-18 14:25:42 +09:00
Kenta Murata 985f0af257
[strscan] Make strscan Ractor safe (#17)
* Make strscan Ractor safe

* Add test-unit in the development dependencies

https://github.com/ruby/strscan/commit/3c93c2bebe
2020-12-18 14:25:41 +09:00
Koichi Sasada cfa124ef05 acquire VM lock on gc_verify_internal_consistency()
There is a case to call this function without VM lock acquiring.
2020-12-18 14:16:06 +09:00
Hiroshi SHIBATA 8cba3b35e0
Bump version RubyGems and Bundler in NEWS 2020-12-18 14:11:50 +09:00
Koichi Sasada b44f7151c7 zlib is ractor-safe 2020-12-18 14:09:32 +09:00
Hiroshi SHIBATA 0e40cc9b19 Merge RubyGems 3.2.2 and Bundler 2.2.2 2020-12-18 13:33:18 +09:00
Nobuyoshi Nakada 34f0606217
Added tests for [Feature #17314] 2020-12-18 13:03:22 +09:00
Nobuyoshi Nakada e042e8460b
Added missing tests for public, private, protected and alias_method 2020-12-18 12:59:01 +09:00
Nobuyoshi Nakada 66090b9d10
Use rb_id_attrset without intermediate strings 2020-12-18 12:10:20 +09:00
Koichi Sasada a07f249803 socket is ractor-safe. 2020-12-18 11:23:34 +09:00
卜部昌平 aa82b067cb ruby_set_stack_size: no longer exists
Deleted since fc3c60f608
2020-12-18 11:18:09 +09:00
Koichi Sasada 51c2725dc6 use eval to create different Regexp objects
Only one warning is shown for the same Regexp object, so create
different objects to support repeating tests.

http://ci.rvm.jp/results/trunk-repeat20@phosphorus-docker/3290658
2020-12-18 09:12:26 +09:00
Koichi Sasada 29e42b8bfd add explicit check
To debug this issue:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20201217T220004Z.fail.html.gz
2020-12-18 08:26:25 +09:00
Aaron Patterson 895b10ad02
Add documentation about GC.compact
[Misc #16443][ruby-core:96395]
2020-12-17 13:26:53 -08:00
Radosław Bułat 81739ad4fd Better cooperation between public/protected/private with attr* and alias_method 2020-12-17 12:46:02 -05:00
git f7a6b460d5 * 2020-12-18 [ci skip] 2020-12-18 01:20:56 +09:00
Koichi Sasada 6538c89f1c gc_verify_internal_consistency() needs barrier
gc_verify_internal_consistency() accesses all slots (objects) so
all ractors should stop before starting this function.
2020-12-18 01:20:02 +09:00
Yusuke Endoh caef364cc5 test/ruby: suppress some warnings
follow up to 9908177857
2020-12-17 22:39:37 +09:00
Marc-Andre Lafortune 980f994b3b [ruby/irb] Change context-mode's default to new mode 4.
This new mode uses a copy of the TOPLEVEL_BINDING. This is compatible with refinements (contrary to mode 3), while keeping nested IRB sessions separate

https://github.com/ruby/irb/commit/25c731cb2f
2020-12-17 20:24:08 +09:00
Jeremy Evans 753222d72c [ruby/irb] Enable deprecation warnings when using -W or -w
Requested in Ruby Bug 17377

https://github.com/ruby/irb/commit/698f6eb34a
2020-12-17 20:23:49 +09:00
Benoit Daloze 336fe648b0 [ruby/irb] Skip the few failing tests on TruffleRuby
https://github.com/ruby/irb/commit/22717844c0
2020-12-17 20:23:27 +09:00
Nobuyoshi Nakada b5effe07bd [ruby/irb] Fixed a typo in a comment [ci skip]
https://github.com/ruby/irb/commit/ce373417f3
2020-12-17 20:22:55 +09:00
Nobuhiro IMAI cbf6a7f906 [ruby/irb] workaround for lack of tokens from `Ripper.lex`
* Fixes #38

https://github.com/ruby/irb/commit/905fb8e52e
2020-12-17 20:22:29 +09:00
Robert Schulze 422e2c7274 [ruby/reline] Use plus operator to create unfrozen string
https://github.com/ruby/reline/commit/ca274b0d37
2020-12-17 20:20:07 +09:00
aycabta cdf2790aa0 [ruby/reline] Support longer than screen height on Windows
https://github.com/ruby/reline/commit/2a97ca9362
2020-12-17 20:17:22 +09:00
aycabta 0158ba7e51 [ruby/reline] Make a log file on windows if debug env is set
https://github.com/ruby/reline/commit/dff30a2d44
2020-12-17 20:17:11 +09:00
aycabta 2b8fa78176 [ruby/reline] Support longer than screen height
https://github.com/ruby/reline/commit/e83a3de9ed
2020-12-17 20:14:59 +09:00
Nobuyoshi Nakada 9908177857
test/ruby: Check warning messages at a finer granularity
Instead of suppressing all warnings wholly in each test scripts by
setting `$VERBOSE` to `nil` in `setup` methods.
2020-12-17 20:06:18 +09:00
Yale Kozinski d597d7a8b6 Fixing glitchy kill ring behavior in irb
See https://github.com/ruby/irb/issues/85 for details
2020-12-17 20:04:42 +09:00
Koichi Sasada da3438a504 sync obj_to_id_tbl
objspace->obj_to_id_tbl is a shared table so we need to synchronize
it to access.
2020-12-17 18:13:40 +09:00
Koichi Sasada 7f11c8086a reduce barrier counts for GC events
mark needs barrier (stop other ractors), but other GC events don't need
barriers (maybe...).
2020-12-17 18:13:26 +09:00
Koichi Sasada 99b9145380 relax synchronization on WB
Current synchronization is too much on write barriers.
2020-12-17 17:37:52 +09:00
Hiroshi SHIBATA 44fba194a5
ruby/pathname separated .rb file to top-level directory. 2020-12-17 17:24:51 +09:00
Koichi Sasada c42948d784 add debug counters for gc start events 2020-12-17 17:03:05 +09:00
Koichi Sasada 9213771817 encourage inlining for vm_sendish()
Some tunings.
* add `inline` for vm_sendish()
* pass enum instead of func ptr to vm_sendish()
* reorder initial order of `calling` struct.
* add ALWAYS_INLINE for vm_search_method_fastpath()
* call vm_search_method_fastpath() from vm_sendish()
2020-12-17 16:53:41 +09:00
Takashi Kokubun 5d74894f2b
Lazily move PC with RUBY_VM_CHECK_INTS
```
$ benchmark-driver -v --rbenv 'before --jit;after --jit' --repeat-count=12 --alternate --output=all benchmark.yml
before --jit: ruby 3.0.0dev (2020-12-17T06:17:46Z master 3b4d698e0b) +JIT [x86_64-linux]
after --jit: ruby 3.0.0dev (2020-12-17T07:01:48Z master 843abb96f0) +JIT [x86_64-linux]
last_commit=Lazily move PC with RUBY_VM_CHECK_INTS
Calculating -------------------------------------
                                 before --jit           after --jit
Optcarrot Lan_Master.nes    80.29343646660429     83.15779723251525 fps
                            82.26755637885149     85.50197941326810
                            83.50682959728820     88.14657804306270
                            85.01236533133049     88.78201988978667
                            87.81799334561326     88.94841008936447
                            87.88228562393064     89.37925215601926
                            88.06695585889995     89.86143277214475
                            88.84730834922165     90.00773346420887
                            90.46317871213088     90.82603371104014
                            90.96308347148916     91.29797694822179
                            90.97945938504556     91.31086331868738
                            91.57127890154500     91.49949184318844
```
2020-12-16 23:06:28 -08:00
Takashi Kokubun 3b4d698e0b
Ignore catch_except_p for PC motion
We probably don't need to move it when an insn is leaf...
2020-12-16 22:17:46 -08:00
Hiroshi SHIBATA a09c3c6fe1
expand VERSION path for ruby repository. 2020-12-17 14:37:45 +09:00
Hiroshi SHIBATA 46ea74297e
Bump version to json-2.4.1 and use VERSION file for json version same as upstream 2020-12-17 14:20:42 +09:00
d-m-u ccf9da079f fix doc typo
s/it's/its
2020-12-16 23:22:15 -05:00
Takashi Kokubun d07183ec85
Do not access jit_unit if NULL 2020-12-16 19:43:43 -08:00
Koichi Sasada 93ba3ac036 RGENGC_PROFILE=0
Enabled this flag, maybe accidentally.
2020-12-17 03:46:44 +09:00
Koichi Sasada 2a3324fcd2 No sync on ASCII/US_ASCCII/UTF-8
rb_enc_from_index(index) doesn't need locking if index specify
ASCII/US_ASCCII/UTF-8.
rb_enc_from_index() is called frequently so it has impact.

                               user     system      total        real
r_parallel/miniruby       174  0.000209   0.000000   5.559872 (  1.811501)
r_parallel/master_mini    175  0.000238   0.000000  12.664707 (  3.523641)

(repeat x1000 `s.split(/,/)` where s = '0,,' * 1000)
2020-12-17 03:44:23 +09:00
Koichi Sasada c58142134c make RB_DEBUG_COUNTER_INC()_thread-safe 2020-12-17 03:43:59 +09:00
Marc-Andre Lafortune d5929b39a9 Make Ractor#receive_if private 2020-12-16 10:42:17 -05:00
Koichi Sasada 24f018972b fix timing bug
ractor_sleep() can remain wait.status by interrupt, so that this
patch handles more correctly.

This patch fixed this kind of assertion failures:

   Assertion Failed: ../src/ractor.c:1332:ractor_yield_atexit:cr->sync.wait.status == wait_none
2020-12-17 00:34:30 +09:00
git 84c9ebd65f * 2020-12-17 [ci skip] 2020-12-17 00:31:09 +09:00