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

61447 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada feb8dc55b6
Include wchar.h before wrapping memchr
On mingw, wmemcpy() is defined as an inline function using
memcpy(), and the static inline wrapper causes a warning.

```
In file included from include/ruby/ruby.h:39,
                 from win32/file.c:5:
include/ruby/internal/memory.h:284:16: warning: 'ruby_nonempty_memcpy' is static but used in inline function 'wmemcpy' which is not static
  284 | #define memcpy ruby_nonempty_memcpy
      |                ^~~~~~~~~~~~~~~~~~~~
```
2020-05-19 22:09:34 +09:00
Shugo Maeda 5e81e8675a
Ignore exceptions when closing data connections [Bug #16780]
Patch by koshigoe (Masataka SUZUKI). Thanks!
2020-05-19 17:48:53 +09:00
S-H-GAMELINKS 1f063abb4c add static modifier to rb_ary_aref2 func 2020-05-19 15:22:53 +09:00
Nobuyoshi Nakada 79292b3088
Make builtin loader sources by Ripper 2020-05-19 12:54:51 +09:00
Aaron Patterson 6efb9fe042
Allow references stored in the VM stack to move
We can update these references too, so lets allow them to move.
2020-05-18 16:57:10 -07:00
git 9ee66d2bef * 2020-05-19 [ci skip] 2020-05-19 00:59:02 +09:00
Kazuhiro NISHIYAMA 6c1a51dae8
Skip some tests if extracted from tarball (again)
Fix up previous commit

ref
9aa75795f9,
38002a8adb, and
0e60b59d58
2020-05-19 00:58:33 +09:00
Kazuhiro NISHIYAMA 1f011cccb1
Skip some tests if extracted from tarball (again)
ref 9aa75795f9
2020-05-18 23:18:44 +09:00
Nobuyoshi Nakada 185f49f90c
Fixed RDoc formatting [ci skip] 2020-05-18 21:25:01 +09:00
Kazuhiro NISHIYAMA cf31e98079
Fix a typo [ci skip] 2020-05-18 17:42:50 +09:00
Takashi Kokubun 3bada9208a
Simplify maybe_special_const_class_p 2020-05-17 23:42:24 -07:00
Takashi Kokubun b16a2aa938
Reduce code size for rb_class_of
by inlining only hot path.

=== mame/optcarrot ===

$ benchmark-driver -v --rbenv 'before --jit;after --jit' benchmark.yml --repeat-count=24 --output=all
before --jit: ruby 2.8.0dev (2020-05-18T05:21:31Z master 0e5a58b6bf) +JIT [x86_64-linux]
after --jit: ruby 2.8.0dev (2020-05-18T06:12:04Z master 0e3d71a8d1) +JIT [x86_64-linux]
last_commit=Reduce code size for rb_class_of
Calculating -------------------------------------
                                 before --jit           after --jit
Optcarrot Lan_Master.nes    71.62880463568773     70.95730063273503 fps
                            71.73973684273152     71.98447841929851
                            75.03923801841310     75.54262519509039
                            75.16300287174957     77.64029272984344
                            75.16834828625935     78.67861469580785
                            75.17670723726911     78.81879353707393
                            75.67637908020630     79.18188850392886
                            76.19843953215396     79.66484891814478
                            77.28166716118808     79.80278072861037
                            77.38509903325165     80.05859292679696
                            78.12693418455953     80.34624804808006
                            78.73654441746730     80.66326571254345
                            79.25387513454415     80.69760605740196
                            79.44137881689524     81.32053489212245
                            79.50497657368358     81.50250852553751
                            79.62401328582868     82.27544931834611
                            79.79178811723664     82.67455264522741
                            81.20275352937418     82.93857260493297
                            81.57027048640776     83.15019118788184
                            81.63373188649095     83.20728816044721
                            81.93420437766426     83.25027576772972
                            82.05716136357167     83.27072145898173
                            82.21070805525066     83.36008265822194
                            82.56924063784872     83.36112268888493

=== benchmark-driver/sinatra ===

[rps]
before: 13143.49 rps
after: 13505.70 rps

[inlined rb_class_of size]
before: 11.5K
after: 3.8K

(calculated by `dwarftree --die inlined_subroutine --flat --merge --show-size`)
2020-05-17 23:38:19 -07:00
Avdi Grimm afd84c58ac Document how to enable USDT method entry/exit tracepoints 2020-05-18 17:39:21 +12:00
Takashi Kokubun 0e5a58b6bf
Mark some JIT-ed functions as COLDFUNC
Put some functions which are unlikely to be called on JIT in
.text.unlikely section to improve hot code's locality.
2020-05-17 22:21:31 -07:00
Nobuyoshi Nakada c0cd474d4f
Prefer dedicated enum over int 2020-05-18 12:42:33 +09:00
git acf61e85f3 * 2020-05-18 [ci skip] 2020-05-18 12:40:15 +09:00
Nobuyoshi Nakada b02c10b240
built-in method call must not have a receiver 2020-05-18 12:28:50 +09:00
Kazuhiro NISHIYAMA fa7addebb4
Fix typos [ci skip] 2020-05-17 21:01:29 +09:00
aycabta 9f18b139c9 [ruby/reline] Add a test of autowrap for yamatanooroti
https://github.com/ruby/reline/commit/38676ba8c2
2020-05-17 19:26:53 +09:00
aycabta f56e05fa7d [ruby/reline] Remove unnecessary TODO commnet
https://github.com/ruby/reline/commit/23c67fb7b3
2020-05-17 19:26:53 +09:00
aycabta fc2a121c7c [ruby/reline] If history-size isn't numeric, it should be 500
https://tiswww.case.edu/php/chet/readline/readline.html#IDX25

> If an attempt is made to set history-size to a non-numeric value, the maximum
> number of history entries will be set to 500.

https://github.com/ruby/reline/commit/acf0437280
2020-05-17 19:26:53 +09:00
aycabta dc0cdf4322 [ruby/irb] Version 1.2.4
https://github.com/ruby/irb/commit/d7c5fb0273
2020-05-17 19:26:53 +09:00
Nobuyoshi Nakada bd8aa047fc
Removed useless implementation tests 2020-05-17 19:03:05 +09:00
Nobuyoshi Nakada dc57136fd3 Removed PRNG implementation details from the test 2020-05-17 18:10:18 +09:00
git 6e7551a57e * 2020-05-17 [ci skip] 2020-05-17 18:01:43 +09:00
Nobuyoshi Nakada 968d6df49f
Added --test-order=nosort option
Run tests in the order given in the command line.
2020-05-17 16:34:06 +09:00
Nobuyoshi Nakada 2c3c6c96cf
Defer initialization
Defer initialization of extension libraries, loading prelude files
and requiring files, and skip if dump options are given.
2020-05-16 17:37:28 +09:00
Nobuyoshi Nakada 9e67a38fde
Fallback to built-in UTF-8 for miniruby
Source code encoding is defaulted to UTF-8 now too.
2020-05-16 17:36:30 +09:00
Nobuyoshi Nakada 8c3a60df2a
leakchecker.rb: show test name
When multiple autoclose IO objects are leaked too.
2020-05-16 17:35:09 +09:00
Burdette Lamar cc525d764b
[ci skip] Enhanced rdoc for String.new (#3067)
* Per @nobu review

* Enhanced rdoc for String.new

* Respond to review
2020-05-15 14:14:50 -07:00
Burdette Lamar 24739c62e5
[ci skip] Rdoc enhancements for Array (#3063)
* Per @nobu review

* Rdoc enhancements for Array

* Responses to review
2020-05-15 14:12:40 -07:00
git a3cd01524c * 2020-05-16 [ci skip] 2020-05-16 06:12:10 +09:00
Burdette Lamar d469807980
[CI skip] Enhance rdoc intro for Hash (#3056)
* Per @nobu review

* [CI skip] Enhance rdoc intro for Hash

* Tweak call-seq for Hash.new

* Tweak call-seq for Hash.new

* Minor corrections

* Respond to review

* Respond to review

* Respond to review

* Respond to review

* Fix chain exampmle

* Response to review
2020-05-15 14:11:42 -07:00
Kazuhiro NISHIYAMA a9b2014d26
Fix a typo [ci skip] 2020-05-15 17:45:28 +09:00
Nobuyoshi Nakada 71c166e11e
Fixed argument forwarding in reserved word method [Bug #16854] 2020-05-15 14:59:11 +09:00
Koichi Sasada e89b875081 fix for multi-run test.
TestAutoload#test_source_location can't run multiple test-run so
that use assert_separately().

repro command:
make yes-test-all TESTS='--repeat-count=50 ruby/test_autoload -n test_source_location'
2020-05-15 14:54:03 +09:00
Samuel Williams 6fa8455ebb Move `test/scheduler` -> `test/fiber` [Bug #16892][ruby-core:98366]. 2020-05-15 13:26:23 +12:00
Yusuke Endoh 39365b46e2
Merge pull request #3047 from mame/suppress-backtrace
Add `--suppress-backtrace=num` option to limit the backtrace length
2020-05-15 01:22:56 +09:00
git 531e4a35f4 * 2020-05-15 [ci skip] 2020-05-15 01:22:27 +09:00
Yusuke Endoh 7f86ad61cc test/scheduler: suppress warnings
https://rubyci.s3.amazonaws.com/debian/ruby-master/log/20200514T123004Z.log.html.gz

```
/home/chkbuild/chkbuild/tmp/build/20200514T123004Z/ruby/test/scheduler/scheduler.rb:29: warning: assigned but unused variable - fiber
/home/chkbuild/chkbuild/tmp/build/20200514T123004Z/ruby/test/scheduler/scheduler.rb:156: warning: method redefined; discarding old fiber
/home/chkbuild/chkbuild/tmp/build/20200514T123004Z/ruby/test/scheduler/test_fiber.rb:27: warning: ambiguous first argument; put parentheses or a space even after `/' operator
```
2020-05-15 01:21:12 +09:00
Nobuyoshi Nakada d7d0d01401 Endless method definition including `rescue` modifier 2020-05-14 19:58:44 +09:00
Nobuyoshi Nakada 634eeb4353
Removed trailing spaces [ci skip] 2020-05-14 19:57:39 +09:00
Samuel Williams 0e3b0fcdba
Thread scheduler for light weight concurrency. 2020-05-14 22:10:55 +12:00
Nobuyoshi Nakada 336119dfc5
extlibs.rb: fixed Downloader.cache_file call and return value
`cache_dir` is an optinal argument but not a keyword argument, and
the return value is a `Pathname`.
2020-05-14 17:19:39 +09:00
Nobuyoshi Nakada 0a52015da7
Constified code_loc_gen 2020-05-14 17:15:24 +09:00
aycabta 4a620aff8d Restore class variable setting for tests 2020-05-14 12:27:33 +09:00
aycabta 03a492fe45 Initialize Reline callbacks when test suit starts 2020-05-14 12:27:33 +09:00
aycabta 68a7c8ad57 Reline callbacks can take nil 2020-05-14 12:27:33 +09:00
aycabta ca1f6b3eae Delete inner text buffer after tests 2020-05-14 12:27:33 +09:00
aycabta 978e691c86 Restore Readline.completion_case_fold in test 2020-05-14 12:27:33 +09:00