| Age | Commit message (Collapse) | Author |
|
|
|
|
|
Ractor.make_shareable() supports Proc object if
(1) a Proc only read outer local variables (no assignments)
(2) read outer local variables are shareable.
Read local variables are stored in a snapshot, so after making
shareable Proc, any assignments are not affeect like that:
```ruby
a = 1
pr = Ractor.make_shareable(Proc.new{p a})
pr.call #=> 1
a = 2
pr.call #=> 1 # `a = 2` doesn't affect
```
[Feature #17284]
Notes:
Merged: https://github.com/ruby/ruby/pull/3722
|
|
|
|
While it is expected that all environment keys are unique, that is
not enforced. It is possible by manipulating environ directly you
can call a process with an environment with duplicate keys. If
ENV.replace was passed a hash with a key where environ had a
duplicate for that key, ENV.replace would end up deleting the key
from environ.
The fix in this case is to not assume that the environment key
list has unique keys, and continue processing the entire key
list in keylist_delete.
Fixes [Bug #17254]
Notes:
Merged: https://github.com/ruby/ruby/pull/3716
|
|
Isolated Proc prohibit to access outer local variables, but it was
violated by binding and so on, so they should be error.
Notes:
Merged: https://github.com/ruby/ruby/pull/3721
|
|
|
|
This way the header flags and object internals are set correctly
Notes:
Merged: https://github.com/ruby/ruby/pull/3719
|
|
It's not necessary to check ivpt because objects are allocated as
"embedded" by default
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3715
|
|
Setting this to true disables the deadlock detector. It should
only be used in cases where the deadlock could be broken via some
external means, such as via a signal.
Now that $SAFE is no longer used, replace the safe_level_ VM flag
with ignore_deadlock for storing the setting.
Fixes [Bug #13768]
Notes:
Merged: https://github.com/ruby/ruby/pull/3710
Merged-By: jeremyevans <code@jeremyevans.net>
|
|
Same as 5be42c1ef4f7ed0a8004cad750a9ce61869bd768
|
|
As of 0b81a484f3453082d28a48968a063fd907daa5b5, `ROBJECT_IVPTR` will
always return a value, so we don't need to test whether or not we got
one. T_OBJECTs always come to life as embedded objects, so they will
return an ivptr, and when they become "unembedded" they will have an
ivptr at that point too
|
|
We don't need to check the existence if an ivptr because non-embedded
objects will always have one
|
|
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3713
|
|
Notes:
Merged-By: mrkn <mrkn@ruby-lang.org>
|
|
|
|
|
|
|
|
This reverts commit 379a5ca539af0e954b1cdf63b9365ad208b9c7f3.
This "typo" is intentional to test the transposition detection by
did_you_mean.
|
|
|
|
|
|
|
|
|
|
This reverts commit ac69849e49982ea83036c04c5d5f7245e3956a49.
The bug seems to have been fixed.
|
|
Regexp literals are frozen, and also dynamically comppiled Regexp
literals (/#{expr}/) are frozen.
Notes:
Merged: https://github.com/ruby/ruby/pull/3676
|
|
|
|
It seems immutable information.
Notes:
Merged: https://github.com/ruby/ruby/pull/3671
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/3704
|
|
Kernel.Rational() (#3702)
This makes `Rational(BigDecimal(1), 60) == Rational(1, 60)`.
[Bug #16518]
Notes:
Merged-By: mrkn <mrkn@ruby-lang.org>
|
|
[Feature #17260] One-line pattern matching using tASSOC
R-assignment is rejected instead.
Notes:
Merged-By: nobu <nobu@ruby-lang.org>
|
|
uplevel: n)
* Fixes [Bug #17259]
Notes:
Merged: https://github.com/ruby/ruby/pull/3647
|
|
defined in Ruby
Notes:
Merged: https://github.com/ruby/ruby/pull/3647
|
|
|
|
* The spec means to use an actual system library function, not a wrapper.
|
|
No longer need to get rid of C block comments in builtin ruby
script comments.
|
|
template/prelude.c.tmpl requires tool/ruby_vm/helpers/c_escape.rb.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* cast scalar value instead of function
* use `rb_pid_t` for the portability
|
|
As same as the description for `File.fnmatch`.
[Bug #17283]
|
|
|
|
|
|
|