Nobuyoshi Nakada
3acc81d9e4
Fixed race in dtoa [Bug #17612 ]
...
Fixed the race condition when replacing `freelist` entry with its
chained next element. At acquiring an entry, hold the entry once
with the special value, then release by replacing it with the next
element again after acquired. If another thread is holding the
same entry at that time, spinning until the entry gets released.
Co-Authored-By: Koichi Sasada <ko1@atdot.net>
2021-02-10 19:44:47 +09:00
Nobuyoshi Nakada
ad2c7f8a1e
Simple benchmark of Float#to_s
2021-02-10 19:42:00 +09:00
卜部昌平
281dfacb5d
.github/workflows/compilers.yml: clang-13
...
LLVM made release/122.x branch. Its master is now version 12.
2021-02-10 12:54:05 +09:00
Hiroshi SHIBATA
e72757a311
[ruby/zlib] Don't use gemspec for gem dependecy
...
https://github.com/ruby/zlib/commit/7d3d19710f
2021-02-10 12:49:33 +09:00
Hiroshi SHIBATA
231f0f6f45
[ruby/zlib] test-unit didn't provide __name__ attribute
...
https://github.com/ruby/zlib/commit/7d3fc1f325
2021-02-10 12:49:16 +09:00
Jeremy Evans
49d3830f44
Fix documentation for Module#ruby2_keywords
...
It returns nil, not self.
Fixes [Bug #17560 ]
2021-02-09 14:47:36 -08:00
Use amazing-print instead
189bf0106f
Fix broken link
...
The document should point to doc/syntax/comments.rdoc (with an "s") as there currently no `doc/syntax/comment.rdoc`
2021-02-09 13:16:32 -08:00
git
bb10f81c90
* 2021-02-10 [ci skip]
2021-02-10 04:40:53 +09:00
Yusuke Endoh
66394aec98
vm_dump.c: Dump machine registers on RISC-V Linux
...
Fixes [Bug #17615 ]
Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-02-10 04:39:41 +09:00
Use amazing-print instead
e7a831de8e
Improve the wording surrounding `Proc#isolate`
...
This change moves the statement that `Proc#isolate` isn't yet exposed for Ruby users to the first time the method is mentioned. This is so that readers don't waste time trying to look it up in Ruby docs.
There was also unnecessary duplication:
```
Paragraph 1: "Given block will be isolated from outer scope by Proc#isolate."
Paragraph 2: "Given block will be isolated by Proc#isolate method"
```
So I combined the two sentences and slightly improved the wording for clarity.
2021-02-09 08:22:37 -05:00
Nobuyoshi Nakada
6bb103f012
[ruby/console] Updated depend
2021-02-09 17:49:28 +09:00
Nobuyoshi Nakada
5bfca88f76
[ruby/io-console] Fixed typo
2021-02-09 17:39:00 +09:00
Nobuyoshi Nakada
df4f8aa248
[ruby/io-console] Fixed regression against 3.0
2021-02-09 17:38:52 +09:00
Nobuyoshi Nakada
96441b91a6
Define macro for fiber/scheduler.h
2021-02-09 17:15:29 +09:00
Nobuyoshi Nakada
e7416b4c7e
Updated pre-prototype declarations
2021-02-09 17:11:14 +09:00
Nobuyoshi Nakada
8776606b1d
strip trailing spaces [ci skip]
2021-02-09 16:59:15 +09:00
Samuel Williams
5f69a7f604
Expose scheduler as public interface & bug fixes. ( #3945 )
...
* Rename `rb_scheduler` to `rb_fiber_scheduler`.
* Use public interface if available.
* Use `rb_check_funcall` where possible.
* Don't use `unblock` unless the fiber was non-blocking.
2021-02-09 19:39:56 +13:00
Andrew Aladjev
3c593f28ed
Fixed default coroutine selection for musl.
2021-02-09 18:48:03 +13:00
S.H
fad7908a5d
Improve performance Float#positive? and Float#negative? [Feature #17614 ] ( #4160 )
2021-02-08 20:29:42 -08:00
Nobuyoshi Nakada
97cf290063
Copy va_list of exception classes
...
The list is reused when an exception raised again after retrying
in the rescue procedure.
2021-02-09 12:59:06 +09:00
Nobuyoshi Nakada
a6f5f3cccd
Also `eclass` loop can raise in `rb_obj_is_kind_of`
2021-02-09 12:59:06 +09:00
Nobuyoshi Nakada
e0c100ec96
Adjusted indent [ci skip]
2021-02-09 08:41:06 +09:00
Nobuyoshi Nakada
265c002239
Do not allocate ractor-local storage in dfree function during GC
2021-02-09 01:00:00 +09:00
Nobuyoshi Nakada
0d89aedb73
Assign TAG_NONE to ruby_tag_type instead of 0
2021-02-09 00:44:37 +09:00
git
15e933f2c6
* 2021-02-09 [ci skip]
2021-02-09 00:07:27 +09:00
Nobuyoshi Nakada
dfff1df95c
vcs.rb: update the given option to VCS.detect by keyword arguments
2021-02-08 23:56:19 +09:00
Nobuyoshi Nakada
a0faad38ce
vcs.rb: added `base_url` keyword option to GIT#export_changelog
2021-02-08 23:56:01 +09:00
Nobuyoshi Nakada
ced09d521c
vcs.rb: improved export_changelog
...
* arguments are optional
* `path` may be passed as a keyword argument
* `nil` or `"-"` path means stdout
2021-02-08 23:45:51 +09:00
Nobuyoshi Nakada
4186cd6435
Revert a part of "[DOC] refined" [ci skip]
...
This reverts commit 478716f49a
partially -- "Removed unnecessary parentheses" part -- because of
a lambda, see 9e25eb308d
.
2021-02-08 21:46:07 +09:00
Keith Bennett
3a7ff66abc
[ruby/benchmark] Adds `Tms#to_h`
...
[Feature #17601 ]
2021-02-07 23:06:17 -05:00
git
9328112b9d
* 2021-02-08 [ci skip]
2021-02-08 11:38:30 +09:00
Nobuyoshi Nakada
bf627e518d
Forward keyword arguments to ARGF from global functions
2021-02-08 11:33:53 +09:00
Nobuyoshi Nakada
1d686bdeb9
Added test for keyword arguments to ARGF
2021-02-08 11:31:34 +09:00
Nobuyoshi Nakada
1ba2b5cdee
Removed unnecessary parentheses at `case` [ci skip]
2021-02-08 10:35:51 +09:00
Nobuyoshi Nakada
1499f626a5
[DOC] Modified prefixes to get rid of conflicts
2021-02-07 23:35:06 +09:00
Nobuyoshi Nakada
03e3cc2b72
[DOC] make individual names so that rdoc can find each documents
2021-02-07 23:12:06 +09:00
Nobuyoshi Nakada
0261519f6e
[DOC] Module#method_undefined
2021-02-07 23:11:59 +09:00
Nobuyoshi Nakada
478716f49a
[DOC] refined
...
* Adjusted indentation in license section, and used "(c)"
* Commented out invalid syntax to enable highlighting
* Removed unnecessary parentheses
2021-02-07 21:24:44 +09:00
Nobuyoshi Nakada
947d93b715
[DOC] {Array,MatchData}#values_at understand ranges [ci skip]
2021-02-07 10:30:43 +09:00
aycabta
93ebfed0a9
[ruby/reline] Version 0.2.3
...
https://github.com/ruby/reline/commit/b26c7d60c8
2021-02-07 05:29:31 +09:00
aycabta
8aac11484b
[ruby/irb] Version 1.3.3
...
https://github.com/ruby/irb/commit/4c87035b7c
2021-02-07 05:28:08 +09:00
aycabta
300084a854
[ruby/reline] Terminate correctly in the middle of lines higher than the screen
...
https://github.com/ruby/reline/commit/e1d9240ada
2021-02-07 05:12:19 +09:00
aycabta
fee19da230
[ruby/reline] Autowrap correctly when inserting chars in the middle of a line
...
https://github.com/ruby/reline/commit/ebaf37255f
2021-02-07 05:12:07 +09:00
aycabta
a19ed1623f
[ruby/reline] The vi_histedit supports multiline
...
This closes ruby/reline#253 .
https://github.com/ruby/reline/commit/f131f86d71
2021-02-07 05:11:54 +09:00
aycabta
a608bb3e9b
[ruby/reline] Move cursor just after the last line when finished
...
https://github.com/ruby/reline/commit/ba06e4c480
2021-02-07 05:11:47 +09:00
aycabta
08162f0e69
[ruby/reline] Update cursor info by inserting newline even if not in pasting
...
https://github.com/ruby/reline/commit/92d314f514
2021-02-07 05:11:41 +09:00
aycabta
b371ca3f4f
[ruby/reline] Handle past logs correctly when the code is higher than the screen
...
https://github.com/ruby/reline/commit/f197139b4a
2021-02-07 05:11:27 +09:00
aycabta
bd0f8b36fd
[ruby/reline] Show all lines higher than the screen when finished
...
On Unix-like OSes, logs prior to the screen are not editable. When the code
is higher than the screen, the code is only shown on the screen until input
is finished, but when it is finished, all lines are outputted.
https://github.com/ruby/reline/commit/8cd9132a39
2021-02-07 05:11:13 +09:00
aycabta
03523fdafb
[ruby/reline] Scroll down when ^C is pressed
...
https://github.com/ruby/reline/commit/6877a7e3f5
2021-02-07 05:11:00 +09:00
aycabta
ec6929a5dd
[ruby/reline] Remove an unused variable
...
https://github.com/ruby/reline/commit/123ea51166
2021-02-07 05:10:50 +09:00