Nobuyoshi Nakada
21b199bb24
Appended a newline to suppress newline-eof warning
2020-10-06 23:18:42 +09:00
卜部昌平
2d20e68fb7
include/ruby/memory_view.h: annotate functions
2020-10-06 14:20:10 +09:00
卜部昌平
62ddbfe2b9
rb_memory_view_is_contiguous: convert into an inline function
2020-10-06 14:20:10 +09:00
卜部昌平
ae94c5bf5d
STRUCT_ALIGNOF: use RUBY_ALIGNOF
...
This was a workaround for RUBY_ALIGNOF's glitch, which has already been
fixed. See also https://github.com/ruby/ruby/pull/3570
2020-10-06 14:20:10 +09:00
卜部昌平
7d594399f6
memory_view.h: use bool
...
Because `bool` is already used in the header there is no reason to
hesitate.
2020-10-06 14:20:10 +09:00
卜部昌平
81068b1090
RB_RANDOM_DATA_INIT_PARENT: convert into an inline function
...
Bit readable to me.
2020-10-06 14:20:10 +09:00
卜部昌平
78e27ced97
rb_rand_if: convert into an inline function
...
This adds more room for assertions.
2020-10-06 14:20:10 +09:00
卜部昌平
56a45456ac
include/ruby/random.h: eliminate extern "C"
...
cf: 99add25857
2020-10-06 14:20:10 +09:00
Kazuhiro NISHIYAMA
45fd4436ee
Use $GITHUB_ENV instead of set-env
...
https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
2020-10-06 11:41:17 +09:00
Kazuhiro NISHIYAMA
f9df340a6a
Remove unused commit_info
2020-10-06 11:41:17 +09:00
Nobuyoshi Nakada
68d24bc045
Moved rb_callable_receiver internal
2020-10-06 10:11:51 +09:00
David Rodríguez
29c54b5e03
Add missing fileutils require
...
On my system, the error was being hidden by the presence of a YARD
rubygems plugin that was providing the require and making things work.
2020-10-06 10:10:42 +09:00
git
49bfd88976
* 2020-10-06 [ci skip]
2020-10-06 02:17:57 +09:00
Benoit Daloze
7d8b43d2ed
[ruby/tempfile] Improve the documentation for Tempfile.create and recommend Tempfile.open instead
...
8bac025065
2020-10-05 19:17:25 +02:00
Svyatoslav Kryukov
3a3000f577
Fix traditional Ring example in Actor-model
2020-10-05 10:35:11 -04:00
aycabta
20ad101701
Remove system method for E2E testing because depends on ruby command
2020-10-05 19:50:31 +09:00
Nobuyoshi Nakada
82f496a84b
Put an empty line before the original URL
...
Even if the raw commit log does not end with a newline.
Suggested to use `grep` by znz.
Co-Authored-By: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
2020-10-05 17:32:36 +09:00
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.
20201001
T014315Z.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