git
d5ab1979f7
* 2020-10-05 [ci skip]
2020-10-05 04:32:09 +09:00
aycabta
9718ff62c1
Show stdout and stderr when history tests fail
2020-10-05 04:17:26 +09:00
git
f8c50109d7
* 2020-10-04 [ci skip]
2020-10-04 23:00:53 +09:00
Nobuyoshi Nakada
ef4ba517e4
Adjusted default gems paths
...
* sync_default_gems.rb (sync_lib): sync from the same directory as
sync_default_gems.
2020-10-04 22:55:27 +09:00
Koichi Sasada
0406898a3f
add NULL check.
...
DATA_PTR(ractor) can be NULL just after creation.
2020-10-03 23:22:17 +09:00
Benoit Daloze
d0778cb264
Update example to handle keywords passed to Warning.warn
2020-10-03 13:19:24 +02:00
Nobuyoshi Nakada
fced98f464
Added the room for builtin inline prefix
2020-10-03 12:19:56 +09:00
Nobuyoshi Nakada
5a665f6ce7
Check builtin inline function index overflow
2020-10-03 10:47:24 +09:00
Aaron Patterson
6aa466ba9c
mark regex internal to string scanner
2020-10-02 12:01:57 -07:00
Kazuhiro NISHIYAMA
873c8a14f0
Fix assert_ruby_status usage in 174ae0f577
2020-10-03 03:05:21 +09:00
Benoit Daloze
112254d185
Improve docs of the Warning module
2020-10-02 18:32:42 +02:00
Nobuyoshi Nakada
174ae0f577
Remove known use-after-poison bug
...
9eda654781
was fixed by
b9488accf9
.
2020-10-03 00:45:06 +09:00
git
0d62e3205b
* 2020-10-03 [ci skip]
2020-10-03 00:00:26 +09:00
Kazuhiro NISHIYAMA
d0a7189f26
Fix ObjectSpace.dump(obj, output: :stdout)
...
RDoc says `ObjectSpace.dump(obj, output: :stdout) # => nil`,
but it returns STDOUT since fbba6bd4e3
.
I think it is unintentional change.
2020-10-03 00:00:01 +09:00
Nobuyoshi Nakada
dd77796f1c
Hoisted out ensure_cmp which checks the comparison succeeded
2020-10-02 21:30:07 +09:00
Gwitr
74aaa8e7ab
Update marshal.rdoc
2020-10-02 02:04:24 -04:00
Nobuyoshi Nakada
89ca842dcc
Ensure that the comparison succeeded [Bug #17205 ]
2020-10-02 11:02:45 +09:00
Aaron Patterson
4b41ee154f
Update the thread's self / wrapper address
...
Threads can move, and if they do, their self pointer may go bad. We
need to update it.
2020-10-01 18:14:43 -07:00
Koichi Sasada
8d76b729a1
Put same frozen Range literal if possible
...
Range literal is now frozen so we can reuse same Range object if
the begin and the last are Numeric (frozen), such as `(1..2)`.
2020-10-02 09:22:17 +09:00
Nobuyoshi Nakada
c881678cd7
Removed meaningless system dependent tests
...
As [Bug #16662 ] lchmod available in linux since glibc 2.31.9000, a
system call may exist or not exist depending on the version. It
is not a spec nor responsibility of Ruby.
2020-10-02 08:43:33 +09:00
Kenta Murata
c827cacde1
memory_view.c: Use ssize_t for ndim in memory_view ( #3615 )
...
* memory_view.c: Use ssize_t for ndim in memory_view
* include/ruby/memory_view.h: Fix the type of item_size argument
2020-10-02 08:04:25 +09:00
eileencodes
8dd9a23693
Make minor improvements to super
...
The changes here include:
* Using `FL_TEST_RAW` instead of `FL_TEST` in the first check in
`vm_search_super_method`. While the profile showed us spending a fair
amount of time here, the subsequent benchmarks didn't show much
improvement when adding this. Regardless, we know this does less work
than `FL_TEST` and we know that `FL_TEST_RAW` is safe due to the
previous check so it's a small but accurate optimization.
* Set `mid` only once. Both `vm_ci_new_runtime` and `vm_ci_mid` were
getting the `original_id` for the method entry. We can do this once
and pass the variable to the 2 callers that need it. This also doesn't
have a huge performance improvement but cleans up the code a bit.
Benchmark:
```
| |compare-ruby|built-ruby|
|:----------------|-----------:|---------:|
|vm_iclass_super | 3.540M| 3.940M|
| | -| 1.11x|
```
Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
2020-10-01 10:11:02 -07:00
git
d959987891
* 2020-10-02 [ci skip]
2020-10-02 00:43:14 +09:00
Aaron Patterson
9fb60672d5
Fix a use-after-free bug reported by ASAN
...
If a fiber and thread are collected at the same time, the thread might
get collected first and the pointer on the fiber will go bad. I don't
think we need to check whether or not this is the main fiber in order to
release its stack
2020-10-01 08:42:52 -07:00
Samuel Williams
2db081b5ff
Don't use `th->scheduler` directly because it's not always valid to do so.
2020-10-01 21:38:36 +13:00
Nobuyoshi Nakada
1d3024da26
Refined assertions for better failure messages
2020-10-01 13:48:15 +09:00
Nobuyoshi Nakada
eef12cdc06
strip trailing spaces [ci skip]
2020-10-01 13:47:57 +09:00
Nobuyoshi Nakada
257007af9a
Added a fallback return
2020-10-01 13:46:13 +09:00
Nobuyoshi Nakada
0d37ed5fdc
rb_thread_scheduler is no longer used
2020-10-01 13:45:20 +09:00
Nobuyoshi Nakada
0e98a9c854
break around function definition [ci skip]
2020-10-01 13:44:29 +09:00
Yusuke Endoh
ab99a2ac44
spec/ruby/core/process/spawn_spec.rb: skip a test on Android
...
On Android, STDERR seems to be open even its invoker closes it.
http://rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20201001T014315Z.fail.html.gz
```
1)
Process.spawn closes STDERR in the child if :err => :close FAILED
Expected (59840): "out\nrescued\n"
but got: "out\n"
```
2020-10-01 13:27:32 +09:00
Kazuhiro NISHIYAMA
c893aa0539
Add links to the tickets [ci skip]
2020-10-01 13:27:00 +09:00
Samuel Williams
a88fe61a3e
Rework `rb_ec_scheduler_finalize` to ensure exceptions are printed.
2020-10-01 16:56:05 +13:00
Samuel Williams
dd2e95fb26
Remove `Thread.scheduler` from public interface.
...
It's implementation is equivalent to:
Thread.current.scheduler unless Thread.current.blocking?
2020-10-01 16:56:05 +13:00
Samuel Williams
7f29020590
Raise an exception if the scheduler was already closed.
2020-10-01 16:02:03 +13:00
Samuel Williams
13660105e2
Don't call `Scheduler#close` if it doesn't exist.
2020-10-01 16:02:03 +13:00
Koichi Sasada
bc23216e5a
stop Ractor test in test-all
...
Ractor changes the interpreter's running mode so now it should
not use in test-all process which running with many other tests.
Test with a separating process is one idea, but I'm not sure
the ruby/ostruct can use this trick.
2020-10-01 08:55:08 +09:00
Marc-Andre Lafortune
bb2ba72c3b
[ruby/ostruct] Tweak doc
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
152ba86b6b
[ruby/ostruct] Remove unused condition
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
b36a45c05c
[ruby/ostruct] Improved YAML serialization.
...
Patch adapted from Pietro Monteiro [Fixes bug#8382]
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
0e93118c44
[ruby/ostruct] Update NEWS
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
0977040133
[ruby/ostruct] Add test that frozen OpenStructs are Ractor-shareable
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
083fa6e5d2
[ruby/ostruct] Protect subclass' methods and our bang methods.
...
Internally, use only bang methods
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
df4d08c44a
[ruby/ostruct] Avoid calling initialize
2020-09-30 18:11:24 -04:00
Marc-Andre Lafortune
fb16c3dce2
Remove trailing whitespace [doc]
2020-09-30 18:11:24 -04:00
git
f4733b2c31
* 2020-10-01 [ci skip]
2020-10-01 04:58:36 +09:00
Burdette Lamar
4bc6190a34
Enhanced RDoc for String#[] ( #3607 )
...
* Enhanced RDoc for String#[]
2020-09-30 14:58:12 -05:00
Nobuyoshi Nakada
7b2bea42a2
Unfreeze string-literal-only interpolated string-literal
...
[Feature #17104 ]
2020-09-30 22:15:28 +09:00
Benoit Daloze
65e8a29389
Update to ruby/spec@bfd843a
2020-09-30 13:43:19 +02:00
Benoit Daloze
bbecf1eb6b
Update to ruby/mspec@e154fa1
2020-09-30 13:43:17 +02:00