Nobuyoshi Nakada
a4a3528eb7
Removed no longer used variables
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
a6ebc10532
Fixed env_pairs array types
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
db3ab440db
Use prototype definition instead of old K&R style
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
b43338ccc4
Update dependencies
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
88e36d8f3c
Adjust styles [ci skip]
...
* --braces-after-func-def-line
* --space-after-for
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
9bb83a82ab
Removed traling spaces [ci skip]
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
f471cf295b
Symbols closed to env should be static
2021-12-15 15:04:34 +09:00
Rohit Menon
3aab870761
Make ENV shareable
2021-12-15 15:04:34 +09:00
Rohit Menon
e071ac8b3d
Add Ractor tests for ENV
2021-12-15 15:04:34 +09:00
Rohit Menon
2a3e4b6940
Move exception-raising functions out of mutex; Refactor env-copying
2021-12-15 15:04:34 +09:00
Rohit Menon
d3d156c21e
Add locks for ENV
2021-12-15 15:04:34 +09:00
Victor Shepelev
0fcc58a18c
[DOC] Improve Thread::Queue.new docs [ci skip]
2021-12-15 11:25:33 +09:00
Alan Wu
ac5d6faea8
YJIT: Fix unexpected truncation when outputing VALUE
...
Previously, YJIT incorrectly discarded the upper 32 bits of the object
pointer when writing out VALUEs to setup default keyword arguments.
In addition to incorrectly truncating, the output pointers were not
properly tracked for handling GC compaction moving the referenced
objects.
YJIT previously attempted to encode a mov instruction with a memory
destination and a 64 bit immediate when there is no such encoding
possible in the ISA. Add an assert to mitigate not being able to
catch this at build time.
2021-12-14 19:47:42 -05:00
Nobuyoshi Nakada
6eb500e2df
[ruby/cgi] Extract CGI::Session#new_store_file
...
https://github.com/ruby/cgi/commit/b3e2ff9164
2021-12-15 08:24:41 +09:00
John Hawthorn
e307627b6c
Don't invalidate BOPs when aliases redefined
...
Previously when redefining an alias of a BOP, we would unnecessarily
invalidate the bop. For example:
class String
alias len length
private :len
end
This commit avoids this by checking that the called_id on the method
entry matches the original_id on the definition.
2021-12-14 15:22:51 -08:00
John Hawthorn
b7ae08992f
YJIT: Avoid unnecessary BOP invalidation
...
Previously we would invalidate BOPs in YJIT when the method registered
as a BOP was redefined on a subclass.
2021-12-14 15:22:51 -08:00
Matheus Richard
b563f12297
[DOC] Fix docs rendering for Process._fork [ci skip]
...
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-12-15 07:15:02 +09:00
Nobuyoshi Nakada
aa7c4c37d7
Fix arg_forward without parentheses [Bug #18267 ]
2021-12-15 07:01:20 +09:00
Nobuyoshi Nakada
3a6b79d0c0
Revert "Rename `in_kwarg` as `in_argdef` as unrelated to keywords"
...
This reverts commit b7f7117bdc
, to
separate `in_argdef` from `in_kwarg`.
2021-12-15 07:01:20 +09:00
Koichi Sasada
397a509b6d
prohibit load by `autoload` on non-main Ractor
...
fix [Bug #18120 ]
2021-12-15 02:33:17 +09:00
Koichi Sasada
2e6e2fd9da
fix local TP memory leak
...
It free `rb_hook_list_t` itself if needed. To recognize the
need, this patch introduced `rb_hook_list_t::is_local` flag.
This patch is succession of https://github.com/ruby/ruby/pull/4652
2021-12-15 02:31:58 +09:00
Matheus Richard
b8f7fc361d
Add examples for Integer.try_convert [ci skip]
2021-12-15 02:12:37 +09:00
Matheus Richard
b32b755ea2
Fix typo on Integer.try_convert [ci skip]
2021-12-15 02:05:41 +09:00
Nobuyoshi Nakada
637c3cfc5d
Turn SET_LEX_STATE macro into an inline function call
2021-12-15 01:52:15 +09:00
Nobuyoshi Nakada
a3934cd1e5
Fix indent [ci skip]
2021-12-15 00:50:39 +09:00
git
67b6a22263
* 2021-12-15 [ci skip]
2021-12-15 00:43:38 +09:00
Jean Boussier
9e00f8267d
NEWS.md document String#unpack offset and Marshal.load freeze arguments
2021-12-14 16:42:53 +01:00
Peter Zhu
0e7d073914
Remove compaction support detection using sysconf
...
Except on Windows and MinGW, we can only use compaction on systems that
use mmap (only systems that use mmap can use the read barrier that
compaction requires). We don't need to separately detect whether we can
support compaction or not.
2021-12-14 09:16:18 -05:00
Nobuyoshi Nakada
6daec46014
ripper: refine test to show expected states
2021-12-14 20:06:51 +09:00
Takashi Kokubun
1a63468831
Prepare for removing RubyVM::JIT ( #5262 )
2021-12-13 23:07:46 -08:00
Kazuhiro NISHIYAMA
a2839d7178
Update stdlib version [ci skip]
2021-12-14 16:06:50 +09:00
git
14c8dca6d1
Update bundled_gems at 2021-12-14
2021-12-14 06:59:58 +00:00
Koichi Sasada
1578421962
reduce `rb_clear_attr_ccs()` call
...
`rb_clear_attr_ccs()` should be called only when c_call or c_return
is activated.
2021-12-14 12:31:57 +09:00
Kazuhiro NISHIYAMA
10eda60e8b
Merge to one regexp
2021-12-14 12:19:44 +09:00
Nobuyoshi Nakada
900e0c8c39
[ruby/securerandom] Use String#unpack1
...
https://github.com/ruby/securerandom/commit/5460a18c35
2021-12-14 11:59:22 +09:00
Nobuyoshi Nakada
0ebbab23ba
[ruby/securerandom] Drop support for old ruby versions
...
https://github.com/ruby/securerandom/commit/46943a991c
2021-12-14 11:59:20 +09:00
Nobuyoshi Nakada
40b0d69dad
[DOC] Fix a type [ci skip]
2021-12-14 11:52:26 +09:00
Kazuhiro NISHIYAMA
877160121a
NEWS.md: Mention colorize command of un.rb
...
https://github.com/ruby/un/pull/1
2021-12-14 09:28:09 +09:00
Takashi Kokubun
11b8aaa26a
Rename --jit to --mjit ( #5248 )
...
* Rename --jit to --mjit
[Feature #18349 ]
* Fix a few more --jit references
* Fix MJIT Actions
* More s/jit/mjit/ and re-introduce --disable-jit
* Update NEWS.md
* Fix test_bug_reporter_add
2021-12-13 16:08:01 -08:00
Peter Zhu
94494a565d
[ci skip] NEWS.md: Update Variable Width Allocation
2021-12-13 10:20:13 -05:00
git
845edc067c
* 2021-12-14 [ci skip]
2021-12-14 00:03:55 +09:00
Nobuyoshi Nakada
4926647bf2
NEWS.md: sort [ci skip]
2021-12-14 00:03:37 +09:00
Peter Zhu
774b04408f
[ci skip] NEWS.md: Add Variable Width Allocation
2021-12-13 09:53:31 -05:00
Nobuyoshi Nakada
a08d8180e2
NEWS.md: One more surrounding brackets for the ticket
2021-12-13 21:20:55 +09:00
aycabta
8411e8449b
[ruby/reline] Remove unnecessary variables, lower_space
...
The number of lines below the cursor position was known by
"@rest_height" alone, but the problem was caused by adding
"lower_space". Remove "lower_space" as it is unnecessary.
https://github.com/ruby/reline/commit/a575cef6a3
2021-12-13 20:44:21 +09:00
Nobuyoshi Nakada
446a11f2c1
[DOC] Add call sequences of Random using a range
2021-12-13 19:56:11 +09:00
Nobuyoshi Nakada
dc490aced3
[DOC] Improve Random::Formatter description and example
2021-12-13 19:55:44 +09:00
Nobuyoshi Nakada
6859d175ba
[DOC] Exclude Bundler only [ci skip]
2021-12-13 19:47:52 +09:00
Nobuyoshi Nakada
7ececae453
NEWS.md: move of Random::Formatter [Feature #18190 ]
2021-12-13 19:15:31 +09:00
Nobuyoshi Nakada
93f0beca5e
Appveyor: Skip tests on if only document files changed [ci skip]
2021-12-13 19:14:50 +09:00