Commit graph

63661 commits

Author SHA1 Message Date
Marc-Andre Lafortune
fd46ff9d42 NEWS: merge Range and Regexp being frozen [doc] 2020-11-15 17:44:48 -05:00
git
cd50ff8082 * 2020-11-15 [ci skip] 2020-11-15 10:04:28 +09:00
Nobuyoshi Nakada
0433f5ae4d
Functions defined in headers should be static inline 2020-11-15 09:59:29 +09:00
Yusuke Endoh
311a66b7f5 Update TypeProf to 0.5.0 2020-11-14 19:22:38 +09:00
Alan Wu
7826210541 Use rb_attr_get() for hidden ivar
rb_ivar_get() can issue an uninitialized ivar warning. We never want to
issue warnings about hidden ivars as they are not actionable for users.
2020-11-13 11:46:08 -05:00
git
1bd98ee295 * 2020-11-14 [ci skip] 2020-11-14 00:06:43 +09:00
Jeremy Evans
ce9beb9d20 Improve error message when subclassing non-Class
Fixes [Bug #14726]
2020-11-13 07:06:13 -08:00
Benoit Daloze
6d05967468 Update to ruby/spec@b0b7f53 2020-11-13 13:17:24 +01:00
Benoit Daloze
acbe7aa197 Update to ruby/mspec@f8b0618 2020-11-13 13:17:22 +01:00
Hiroshi SHIBATA
69c5474e10
Fixup 957efa95cc 2020-11-13 13:19:38 +09:00
Hiroshi SHIBATA
e70a1d9b7f
Revert https://github.com/ruby/webrick/pull/44
Because the test for this change was still broken.
2020-11-13 12:06:42 +09:00
git
c046cc1d1c * 2020-11-13 [ci skip] 2020-11-13 11:38:58 +09:00
hisanori
37e5b367c1 [ruby/webrick] add mime type of extention .mjs
45d68f9eba
2020-11-13 11:36:50 +09:00
Jeremy Evans
957efa95cc [ruby/webrick] Allow empty POST and PUT requests without content length
RFC 7230 section 3.3.3 allows for this.

Fixes #30

069e9b1908
2020-11-13 11:35:10 +09:00
Yusuke Endoh
6325866421 spec/ruby/core/file/utime_spec.rb: XFS seems to have Year 2038 problem
20201112T123004Z.fail.html.gz
```
1)
File.utime allows Time instances in the far future to set mtime and
atime (but some filesystems limit it up to 2446-05-10) FAILED
Expected [559444, 2446].include? 2038
to be truthy but was false
/home/chkbuild/chkbuild/tmp/build/20201112T123004Z/ruby/spec/ruby/core/file/utime_spec.rb:80:in
`block (4 levels) in <top (required)>'
/home/chkbuild/chkbuild/tmp/build/20201112T123004Z/ruby/spec/ruby/core/file/utime_spec.rb:3:in
`<top (required)>'
```

```
$ touch foo
$ ./miniruby -e 'time = Time.at(1<<44); File.utime(time, time, "foo")'
$ ls -l foo
-rw-r--r--. 1 mame wheel 0 Jan 19  2038 foo
```
2020-11-12 23:39:27 +09:00
Akira Matsuda
028d52bb94 [ruby/date] Numeric already includes Comparable
f6140df0ad
2020-11-12 21:35:17 +09:00
Nobuyoshi Nakada
33574d57f1 [ruby/date] Updated timezones from timeanddate.com
f08175e34d
2020-11-12 21:35:06 +09:00
Nobuyoshi Nakada
81dece54d6 [ruby/date] Honor timezones from timeanddate.com
d20380fc55
2020-11-12 21:34:54 +09:00
Nobuyoshi Nakada
d65f1140b9 [ruby/date] Fixed the script file name to update zonetab.list
3c002b1daa
2020-11-12 21:34:43 +09:00
NARUSE, Yui
0fdcb947e8 [ruby/date] [DOC] declate DateTime class is deprecated
58ca6e6a3e
2020-11-12 21:34:31 +09:00
Hiroshi SHIBATA
e8f8e63f0a
Backport cosmetic changes from upstream repo that is ruby/rdoc 2020-11-12 21:05:59 +09:00
Hiroshi SHIBATA
ffc8cf12e2
Fixed typo 2020-11-12 21:05:33 +09:00
Nobuyoshi Nakada
0d52dce3a3
strip trailing spaces and adjusted indents [ci skip] 2020-11-12 19:27:20 +09:00
git
98de98fb70 * 2020-11-12 [ci skip] 2020-11-12 17:00:25 +09:00
Yusuke Endoh
a237617a5b array.rb: Remove unnecessary phrase from rdoc
A fix to 54fb8fb62a
2020-11-12 16:59:59 +09:00
Yusuke Endoh
a02ba60466 array.rb: show examples whether Array#shuffle! has side effect or not
Partially revert 54fb8fb62a
2020-11-12 16:59:59 +09:00
Koichi Sasada
fa3670e6e4 remove Ractor#close
close_incoming by antoher ractor means there is no other messages
will be sent to the ractor, so Ractor.receive will block forever,
and it should raise and stop.

close_outgoing by antoher ractor means, ... I don't have good idea
to use it. It can be a private method.

Ractor#close calls both, but it does not make sense to call
different purpose methods, so I remove it.
2020-11-11 18:11:09 +09:00
Koichi Sasada
deed21bb08 ignore yield_atexit if outgoing port is closed
If outgoing_port is closed, Ractor.yield never successes.
[Bug #17310]
2020-11-11 18:10:43 +09:00
Koichi Sasada
db31ace934 Threads in a ractor will be killed with the ractor
If a terminating ractor has child threads, then kill all child
threads.
2020-11-11 15:49:02 +09:00
Koichi Sasada
1e8abe5d03 introduce USE_VM_CLOCK for windows.
The timer function used on windows system set timer interrupt
flag of current main ractor's executing ec and thread can detect
the end of time slice. However, to set all ec->interrupt_flag for
all running ractors, it is requires to synchronize with other ractors.
However, timer thread can not acquire the ractor-wide lock because
of some limitation.

To solve this issue, this patch introduces USE_VM_CLOCK compile option
to introduce rb_vm_t::clock. This clock will be incremented by the
timer thread and each thread can check the incrementing by comparison
with previous checked clock. At last, on windows platform this patch
introduces some overhead, but I think there is no critical performance
issue because of this modification.
2020-11-11 15:49:02 +09:00
Hiroshi SHIBATA
dd07354f27 Use Fiddle::Importer directly 2020-11-11 09:27:36 +09:00
Hiroshi SHIBATA
5081bd9675 Removed win32/resolv.rb for 32bit env 2020-11-11 09:27:36 +09:00
Hiroshi SHIBATA
ff67aac193 Removed win32api 2020-11-11 09:27:36 +09:00
git
6ddde16234 * 2020-11-11 [ci skip] 2020-11-11 03:24:28 +09:00
Fabio Sangiovanni
4465099a22 Fix some typos in NEWS.md. 2020-11-10 13:24:03 -05:00
Hiroshi SHIBATA
0b19f33480 [ruby/racc] Bump version to 1.5.1
2cb3055a73
2020-11-10 21:35:04 +09:00
Hiroshi SHIBATA
4a03df4507 [ruby/racc] skip the failing test with JRuby
cf37713895
2020-11-10 21:21:07 +09:00
Hiroshi SHIBATA
5a19b492da [ruby/racc] Use the Ruby license. Fix #134
7c881cd548
2020-11-10 21:20:31 +09:00
NAKAMURA Usaku
9728cb730f
Use fiddle (win32/importer) instead of Win32API
- ext/win32/lib/win32/sspi.rb: Use fiddle (win32/importer) instead of Win32API
2020-11-10 14:45:15 +09:00
Hiroshi SHIBATA
17e7a819f7 Complex and Rational is embedded classes now 2020-11-10 13:14:42 +09:00
Nobuyoshi Nakada
b958e2add8 Removed canonicalization for mathn 2020-11-10 11:14:15 +09:00
S-H-GAMELINKS
8b3653b484 Fix links 2020-11-10 11:04:00 +09:00
Koichi Sasada
b557c5768c refactoring.
iv_index_tbl_newsize() usually returns iv_index_tbl->num_entries
because ivup->iv_extended is usually false.
2020-11-10 10:44:45 +09:00
Yusuke Endoh
2fed5f0ad8 lib/racc/statetransitiontable.rb: Make the racc output stable
Racc calls `Array#sort!` to build a state transition table. As
`Array#sort!` is not a stable sort, the output may differ depending upon
the environment.

This changeset makes the sort stable manually, and updates all
expectation files.
2020-11-10 07:49:19 +09:00
Aaron Patterson
d7581370fd Add a benchmark for polymorphic ivar setting
This benchmark demonstrates the performance of setting an instance
variable when the type of object is constantly changing.  This benchmark
should give us an idea of the performance of ivar setting in a
polymorphic environment
2020-11-09 14:05:41 -08:00
Aaron Patterson
4219cb7adb Add debug counter for ivar inline cache misses that could hit
This commit adds a debug counter for the case where the inline cache
*missed* but the ivar index table has an entry for that ivar.  This is a
case where a polymorphic cache could help
2020-11-09 14:05:41 -08:00
Aaron Patterson
f259906eab Avoid slow path ivar setting
If the ivar index table exists, we can avoid the slowest path for
setting ivars.
2020-11-09 14:05:41 -08:00
Alan Wu
6778ba48fd Fix excessive GC rooting
rb_vm_add_root_module() is enough to make sure the object become a GC
root.
2020-11-09 16:08:36 -05:00
Alan Wu
6817f4c6b1 rb_vm_add_root_module(): Remove unused parameter 2020-11-09 16:08:36 -05:00
git
cbe869b370 * 2020-11-10 [ci skip] 2020-11-10 02:44:39 +09:00