64552 Commits

Author SHA1 Message Date
git
a365ae841b * 2020-12-21 [ci skip] 2020-12-21 01:15:45 +09:00
Koichi Sasada
730f314171 fix Ractor.make_shareable() with Class/Module
To check shareable-ness, rb_ractor_shareable_p() is needed
for Class/Module objects isntead of checking flags.
2020-12-21 01:13:39 +09:00
Nobuyoshi Nakada
8680ae9cbd
irb: Removed unused variables v3_0_0_rc1 2020-12-20 19:36:24 +09:00
Nobuyoshi Nakada
4b6e3f7b82
irb: Define extension command on the given object 2020-12-20 19:35:59 +09:00
Nobuyoshi Nakada
37987d9994 win32: Deprecate file CP version functions 2020-12-20 18:34:04 +09:00
Nobuyoshi Nakada
95862ae440 win32: Added rb_w32_ureaddir only for UTF-8 [Feature #12654] 2020-12-20 18:34:04 +09:00
Nobuyoshi Nakada
5b98b2ce39 win32: Use UTF-8 as filesystem encoding [Feature #12654]
Co-Authored-By: Dāvis Mosāns <davispuh@gmail.com>
2020-12-20 18:34:04 +09:00
Nobuyoshi Nakada
feea436feb
irb: Define extension command only on the given object
Not to interfer in class variables.
2020-12-20 18:26:38 +09:00
Nobuyoshi Nakada
0fad9a9e30
Set non-verbose mode as well as tty mode 2020-12-20 17:15:02 +09:00
aycabta
59b84fbf2e Set :DEFAULT to PROMPT_MODE for CI 2020-12-20 17:07:24 +09:00
aycabta
216a087e93 Suppress errors related to using variables that are not directly related to testing 2020-12-20 16:48:47 +09:00
aycabta
24fcbc92b4 [ruby/irb] Version 1.2.8
https://github.com/ruby/irb/commit/bcd96834c7
2020-12-20 16:23:59 +09:00
aycabta
a7cacd33cc [ruby/reline] Version 0.1.10
https://github.com/ruby/reline/commit/723c6e191a
2020-12-20 16:23:59 +09:00
aycabta
9f08e3c703 [ruby/irb] Add measure command
You can use "measure" command to check performance in IRB like below:

  irb(main):001:0> 3
  => 3
  irb(main):002:0> measure
  TIME is added.
  => nil
  irb(main):003:0> 3
  processing time: 0.000058s
  => 3
  irb(main):004:0> measure :off
  => nil
  irb(main):005:0> 3
  => 3

You can set "measure :on" by "IRB.conf[:MEASURE] = true" in .irbrc, and, also,
set custom performance check method:

  IRB.conf[:MEASURE_PROC][:CUSTOM] = proc { |context, code, line_no, &block|
    time = Time.now
    result = block.()
    now = Time.now
    puts 'custom processing time: %fs' % (Time.now - time) if IRB.conf[:MEASURE]
    result
  }

https://github.com/ruby/irb/commit/3899eaf2e2
2020-12-20 16:23:59 +09:00
aycabta
8b6aaeaddf [ruby/irb] Handle rest of tokens correctly if no newline at last
https://github.com/ruby/irb/commit/f3c8edad2a
2020-12-20 16:23:58 +09:00
Kazuki Tsujimoto
67ee1cbdd5
Remove unnecessary files from .document
* ruby:ext/rbconfig/exts.mk
* ruby:ext/rbconfig/sizeof/Makefile
* ruby:ext/rbconfig/sizeof/depend
* ruby:ext/rbconfig/sizeof/mkmf.log
* ruby:ext/win32/depend
* ruby:ext/win32/exts.mk
* ruby:ext/win32/resolv/depend
* ruby:lib/racc/pre-setup
2020-12-20 16:00:13 +09:00
Nobuyoshi Nakada
b911509a08
Adjusted indents of closing braces [ci skip] 2020-12-20 15:13:25 +09:00
Takashi Kokubun
7d0144e055
Check mjit_call_p only when interrupted
for leaf_without_check_ints insns.

$ benchmark-driver -v --rbenv 'before --jit;after --jit' --repeat-count=12 --alternate --output=all benchmark.yml
before --jit: ruby 3.0.0dev (2020-12-20T05:02:18Z master 02b3555874) +JIT [x86_64-linux]
after --jit: ruby 3.0.0dev (2020-12-20T05:36:00Z master 3f58de4eab) +JIT [x86_64-linux]
last_commit=Check mjit_call_p only when interrupted
Calculating -------------------------------------
                                 before --jit           after --jit
Optcarrot Lan_Master.nes    84.50647332260259     85.85057800433144 fps
                            91.17796644338372     92.09930605656054
                            91.29346683444497     93.01336611323687
                            91.50322318568884     93.07234029037433
                            91.66560903214686     93.22773241529644
                            91.82315142636172     93.37032901061119
                            92.15066379608260     93.83701526141679
                            92.37897097456643     93.86032792681507
                            92.53049815524908     93.91211970920320
                            92.78414507914283     94.09109196967890
                            92.90299756525958     94.40107239595325
                            93.70279428858790     95.01326369371263
2020-12-19 21:38:14 -08:00
Nobuyoshi Nakada
ae1cc3fd4e
Made an internal callback function static 2020-12-20 14:29:31 +09:00
Takashi Kokubun
02b3555874
Install gdb on Actions 2020-12-19 21:02:18 -08:00
Kazuki Tsujimoto
85ec6cc387
Fix markups and indentation 2020-12-20 13:35:20 +09:00
Kazuki Tsujimoto
d37be18af5
Fix typos 2020-12-20 13:25:43 +09:00
Kazuki Tsujimoto
4902f96ee5
Update documentation for pattern matching 2020-12-20 13:22:53 +09:00
Marc-Andre Lafortune
b1b6dbfdc3 assert_ractor tweak. Thanks Nobu 2020-12-19 22:37:27 -05:00
Koichi Sasada
f70b894b88 sync RCLASS_CONST_TBL()
RCLASS_CONST_TBL() is shared resource so we need to sync with
other ractors.
2020-12-20 11:46:13 +09:00
Soutaro Matsumoto
648bbfcc65
Update rbs 1.0.0.pre (#3941) 2020-12-20 10:25:27 +09:00
Marc-Andre Lafortune
6343a81129 [ruby/ostruct] Add Ractor test 2020-12-19 17:13:08 -05:00
Marc-Andre Lafortune
67e062b523 [ruby/matrix] Add Ractor test
This reverts commit cacdf2681dcc7c431973f33a18979b10566ec2f9.
2020-12-19 17:13:08 -05:00
Marc-Andre Lafortune
70f20234b2 Add assert_ractor [Feature #17367] 2020-12-19 17:13:08 -05:00
Koichi Sasada
7f8108eeff fix indent 2020-12-20 04:51:00 +09:00
Koichi Sasada
bcf4b236e4 ext/racc/cparse is ractor-safe 2020-12-20 04:22:29 +09:00
Koichi Sasada
846c4b03b8 ext/monitor is ractor-safe 2020-12-20 04:22:29 +09:00
Koichi Sasada
c1461c927b cgi/escape is ractor-safe 2020-12-20 04:22:29 +09:00
Yusuke Endoh
3621380046 NEWS.md: remove nonsense caveat
3.0 will be released in a few days (hopefully), so remove a caution: "it
may be reverted until 3.0 release."
2020-12-20 04:14:05 +09:00
Nobuyoshi Nakada
ed4381d941
BigDecimal#precs is deprecated 2020-12-20 03:14:58 +09:00
Nobuyoshi Nakada
c01ad11f90
bigdecimal: initialize conditionally assigned variable 2020-12-20 03:13:33 +09:00
Nobuyoshi Nakada
b2acae3274
Reduced ID caches
NEW_GASGN and NEW_GVAR evaluate `id` argument twice.
2020-12-20 03:10:30 +09:00
Marc-Andre Lafortune
a273171ca8 Tweak Ractor doc [doc] [ci skip] 2020-12-19 13:08:24 -05:00
Victor Shepelev
1f565ac6d9
Add documentation for Ractor (#3895) 2020-12-19 13:04:40 -05:00
Nobuyoshi Nakada
d44671c819
Revived the getenv macro for dln_find.c
This partially reverts commit "Windows: Improve readablity of
getenv() encoding" 14453a256d58b11b06d432e2a4388d95aac298d6.

The `getenv` macro defined here is to also substitute the function
in dln_find.c, not only in this file.
2020-12-20 01:57:51 +09:00
Kenta Murata
50f1e7eb23
NEWS: Add an entry of Pathname [ci skip] 2020-12-20 00:42:21 +09:00
git
48bd5a3d57 * 2020-12-20 [ci skip] 2020-12-20 00:41:06 +09:00
Kenta Murata
de80b92891
[pathname] Make Pathname Ractor safe (#3940) 2020-12-20 00:40:47 +09:00
Kenta Murata
d62414b48f
NEWS: Update BigDecimal version [ci skip] 2020-12-19 22:15:48 +09:00
Kenta Murata
8355a3e17b
[bigdecimal] Fix deprecation warning test 2020-12-19 22:13:59 +09:00
Kenta Murata
8986f948e0
[bigdecimal] Version 3.0.0
https://github.com/ruby/bigdecimal/commit/e68f1eb33a
2020-12-19 22:13:59 +09:00
Kenta Murata
df3deb3baa
[bigdecimal] Add BigDecimal#n_significant_digits
https://github.com/ruby/bigdecimal/commit/981dc48f95
https://github.com/ruby/bigdecimal/commit/9ecf880ec04
2020-12-19 22:13:59 +09:00
Kenta Murata
654f6fbf19
[bigdecimal] Make BigDecimal#precs deprecated
https://github.com/ruby/bigdecimal/commit/7e80e6e145
https://github.com/ruby/bigdecimal/commit/0ed7846e8c
2020-12-19 22:13:58 +09:00
Kenta Murata
ff9e40811c
[bigdecimal] Add BigDecimal#precision
https://github.com/ruby/bigdecimal/commit/458eb66c49
2020-12-19 22:13:58 +09:00
Kenta Murata
928a06723d
[bigdecimal] Make bigdecimal Ractor safe
https://github.com/ruby/bigdecimal/commit/93fc392640
https://github.com/ruby/bigdecimal/commit/a90d13c4d0
2020-12-19 22:13:57 +09:00