Age | Commit message (Collapse) | Author |
|
Factor out from rb_error_write the responsibility to check if stderr is
a tty.
Notes:
Merged: https://github.com/ruby/ruby/pull/5516
|
|
|
|
|
|
The message should end with a newline, and break the long
paragraph.
|
|
Copied from https://github.com/ruby/docs.ruby-lang.org/ to be as
same as docs.ruby-lang.org.
|
|
|
|
|
|
|
|
Disable the use of `__assume()`, when combinations of `isnan()`,
`isinf()` and `__assume()` will be wrongly optimized due to the
bug of VS2022.
Notes:
Merged: https://github.com/ruby/ruby/pull/5579
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5579
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5579
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5577
|
|
`UNREACHABLE` in ruby/internal/has/builtin.h is only used as just
a flag now, and redefined in ruby/backward/2/assume.h then.
Notes:
Merged: https://github.com/ruby/ruby/pull/5577
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5576
|
|
* Add String#byteindex, String#byterindex, and MatchData#byteoffset [Feature #13110]
Co-authored-by: NARUSE, Yui <naruse@airemix.jp>
Notes:
Merged-By: shugo <shugo@ruby-lang.org>
|
|
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5574
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5574
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5574
|
|
|
|
Links to options doc added/improved; in particular, new links to new section "Encoding Options" in encoding.rdoc. Minor inconsistencies ironed out.
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
|
|
This is the beginning of an extended explication of Ruby encoding.
One of its more important jobs is to provide link targets for encoding documentation in other classes (String, File, IO, etc.). In particular, they can link to the "Encoding Options" section.
I'll have much to add to this document going forward, along with suitable adjustments in the class documentation.
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
getenv is no longer used in dln.c.
|
|
https://github.com/ruby/ruby/pull/5518#discussion_r809645406
|
|
Clarifies security vulnerabilities for commands.
Treats:
Kernel.system
Kernel.` (backtick)
IO.popen
IO.read
IO.write
IO.binread
IO.binwrite
IO.readlines
IO.foreach
Notes:
Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
|
|
|
|
the original rb_wasm_setjmp implementation always unwinds to the root
call frame to have setjmp compatible interface, and simulate sjlj's
undefined behavior. Therefore, every vm_exec call unwinds to main, and
a deep call stack makes setjmp call very expensive. The following
snippet from optcarrot takes 5s even though it takes less than 0.3s on
native.
```
[0x0, 0x4, 0x8, 0xc].map do |attr|
(0..7).map do |j|
(0...0x10000).map do |i|
clr = i[15 - j] * 2 + i[7 - j]
clr != 0 ? attr | clr : 0
end
end
end
```
This patch adds a WASI specialized vm_exec which uses lightweight
try-catch API without unwinding to the root frame. After this patch, the
above snippet takes only 0.5s.
Notes:
Merged: https://github.com/ruby/ruby/pull/5502
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5563
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5563
|
|
|
|
This method takes a block and yields Thread::Backtrace::Location
objects to the block. It does not take arguments, and always
starts at the default frame that caller_locations would start at.
Implements [Feature #16663]
Notes:
Merged: https://github.com/ruby/ruby/pull/5445
|
|
The `CC` found by `AC_CHECK_TOOL` is prefixed by the host triplet
when cross compiling. To search for commands with `AC_CHECK_TOOL`
based on that `CC` means to search also doubly prefixed names.
Notes:
Merged: https://github.com/ruby/ruby/pull/5565
|
|
Show the linked ruby library name when failed to load extension
built against different ruby library.
Notes:
Merged: https://github.com/ruby/ruby/pull/5564
|
|
|
|
Backticks method invokes `/bin/sh` when the command contains
quotes, and `sh` clears some environment variables set in
runruby.rb to search the built shared library.
|
|
https://github.com/ruby/ruby/blob/fdf0f8d81487560f5837dc7e3888a96f7c2b4ec9/tool/lib/test/unit.rb#L1273-L1290
|
|
`make btest-ruby` is run with -q (quiet) option and -v should
remove -q option.
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/5496
|
|
The code attempts to read `C_ARG_REGS[leaf_builtin->argc + 1]`, and the
size of `C_ARG_REGS` is `NUM_C_ARG_REGS`. So, the guard condition must
be `leaf_builtin->argc + 1 + 1 <= NUM_C_ARG_REGS`.
This change fixes the off-by-one error. This issue was found by Coverity
Scan.
Notes:
Merged: https://github.com/ruby/ruby/pull/5561
|
|
|
|
Sizes for darray are size_t now. CC @peterzhu2118
|
|
Using a fake (malloc) RArray is not friendly for the garbage
collector. Fake RArray does not have a heap page, so it causes Variable
Width Allocation to crash when we try to implement it on Arrays.
This commit changes feature_index from a RArray to a darray.
Notes:
Merged: https://github.com/ruby/ruby/pull/5546
|
|
Changes size and capacity of darray to size_t to support more
elements.
Adds functions to darray that use GC allocation functions.
Notes:
Merged: https://github.com/ruby/ruby/pull/5546
|
|
The modulo in `rb_yjit_code_page_alloc` seems interpreted wrongly.
Notes:
Merged: https://github.com/ruby/ruby/pull/5560
|
|
On the parallel test, workers can be killed because of timeout
and the information for the retrying can be inconsistent.
This patch will skip if the inconsistency is found and report
as an error.
http://ci.rvm.jp/results/trunk-asserts@phosphorus-docker/3834082
Notes:
Merged: https://github.com/ruby/ruby/pull/5559
|
|
Random.urandom raises a RuntimeError if it is unavailable.
[Bug #13885]
Notes:
Merged: https://github.com/ruby/ruby/pull/5557
|
|
|
|
`ObjectSpace::WeakMap#each*` should check key's liveness.
fix [Bug #18586]
Notes:
Merged: https://github.com/ruby/ruby/pull/5556
|