Max Bernstein
41d9eb784b
ZJIT: Inline Array#empty?
2026-01-12 16:43:49 -05:00
Max Bernstein
5cec11f45a
ZJIT: Inline Array#length
2026-01-12 16:43:49 -05:00
Earlopain
a1ba9f5733
[ruby/prism] Use one file for versioned parser classes
...
One per version seems excessive.
Do note that `rubocop-ast` used to require individual parser files. I wouldn't consider that to be part of the API since everything is autoloaded.
From a GitHub code search, I didn't find anyone else doing it like that.
https://github.com/ruby/prism/commit/458f622c34
2026-01-12 16:13:08 +00:00
Nobuyoshi Nakada
f34297604f
Remove a direct call of rb_raise in Onigmo
2026-01-12 20:24:56 +09:00
Nobuyoshi Nakada
aaf47cca03
Now onigenc_single_byte_code_to_mbclen checks out-of-bound
2026-01-12 20:24:55 +09:00
K.Takata
76b1d4a481
[k-takata/Onigmo] Disable error message for capture history when not needed
...
Add `#ifdef USE_CAPTURE_HISTORY`.
https://github.com/k-takata/Onigmo/commit/8217be2c3a
2026-01-12 20:01:43 +09:00
K.Takata
81c1334904
[k-takata/Onigmo] Fix out-of-bounds read in parse_char_class()
...
(Close
https://github.com/k-takata/Onigmo/pull/139 )
/[\x{111111}]/ causes out-of-bounds read when encoding is a single byte
encoding. \x{111111} is an invalid codepoint for a single byte encoding.
Check if it is a valid codepoint.
https://github.com/k-takata/Onigmo/commit/d4cf99d30b
2026-01-12 20:01:43 +09:00
K.Takata
16086128cc
[k-takata/Onigmo] Suppress warning on 64-bit builds
...
https://github.com/k-takata/Onigmo/commit/ced209d5e9
2026-01-12 20:01:43 +09:00
K.Takata
ac379278e8
[k-takata/Onigmo] Fix stack overflow with X+++++++++++++++++++…
...
Imported the fix from:
4097828d7c
https://github.com/k-takata/Onigmo/commit/786b4849c1
2026-01-12 20:01:43 +09:00
K.Takata
f0b31a5898
[k-takata/Onigmo] Fix SEGV in onig_error_code_to_str() (Fix
...
https://github.com/k-takata/Onigmo/pull/132 )
When onig_new(ONIG_SYNTAX_PERL) fails with ONIGERR_INVALID_GROUP_NAME,
onig_error_code_to_str() crashes.
onig_scan_env_set_error_string() should have been used when returning
ONIGERR_INVALID_GROUP_NAME.
https://github.com/k-takata/Onigmo/commit/00cc7e28a3
2026-01-12 20:01:43 +09:00
K.Takata
496e74d0cc
[k-takata/Onigmo] Fix that onig_new() may crash
...
When onig_reg_init() returns an error, onig_free_body() which is called
via onig_new() may crash because some members are not properly
initialized. Fix it.
https://github.com/k-takata/Onigmo/commit/d2a090a57e
2026-01-12 20:01:42 +09:00
K.Takata
ad150e9039
[k-takata/Onigmo] Update version number (6.2.0)
...
* Update the version number to 6.2.0
* Update LTVERSION to 6:5:0.
https://github.com/k-takata/Onigmo/commit/9e0f7ceee0
2026-01-12 20:01:42 +09:00
K.Takata
a097878ed4
[k-takata/Onigmo] Comment out unused errors
...
https://github.com/k-takata/Onigmo/commit/5555ee4c81
2026-01-12 20:01:42 +09:00
K.Takata
916fbf1063
[k-takata/Onigmo] Update copyright information
...
* Update our copyright information.
* Import the latest information from oniguruma.
Related: #95
https://github.com/k-takata/Onigmo/commit/0d8662b500
2026-01-12 20:01:42 +09:00
K.Takata
85a7171b41
[k-takata/Onigmo] Add USE_CASE_MAP_API config
...
The case_map API is mainly (only?) used in Ruby.
Make it possible to disable the API.
https://github.com/k-takata/Onigmo/commit/80e289d6bb
2026-01-12 20:01:42 +09:00
K.Takata
f9131412f8
[k-takata/Onigmo] Revise set_bm_skip()
...
https://github.com/k-takata/Onigmo/commit/6875da50f7
2026-01-12 20:01:42 +09:00
K.Takata
bbf9bf3fc5
[k-takata/Onigmo] Remove code for backward BM search
...
The code has not been used for long.
(Oniguruma also removed this code.)
https://github.com/k-takata/Onigmo/commit/8796781fdd
2026-01-12 20:01:42 +09:00
K.Takata
fb7f344b09
[k-takata/Onigmo] Remove code for reg->int_map
...
https://github.com/k-takata/Onigmo/commit/6c58de82d2
2026-01-12 20:01:42 +09:00
Nobuyoshi Nakada
6484a71a4f
Add Onigmo to sync_default_gems.rb
2026-01-12 20:01:41 +09:00
Benoit Daloze
bf36ad9c12
ZJIT: remove unused rb_RSTRUCT_LEN()
2026-01-12 08:44:26 +01:00
Benoit Daloze
916c0a8105
ZJIT: remove unused rb_RSTRUCT_SET()
2026-01-12 08:44:26 +01:00
Nobuyoshi Nakada
d57c3296a9
Re-fix VCS::GIT#branch_beginning
...
Count the last release date from the whole working directory, not
only the version headers.
2026-01-12 11:28:06 +09:00
Peter Zhu
61c372a1b7
[DOC] Improve docs for ObjectSpace.count_symbols
2026-01-11 10:46:56 -05:00
Peter Zhu
1267a3ab56
[DOC] Improve docs for ObjectSpace.count_imemo_objects
2026-01-11 10:46:56 -05:00
Peter Zhu
cf5c5abe1e
[DOC] Improve docs for ObjectSpace.count_tdata_objects
2026-01-11 10:46:56 -05:00
Nobuyoshi Nakada
8baaece6d9
[ruby/prism] [Bug #21831 ] Fix denominator of rational float literal
...
Denominators can contain underscores in fraction part as well as other
numeric literals.
[Bug #21831 ]: https://bugs.ruby-lang.org/issues/21831
https://github.com/ruby/prism/commit/e247cb58c7
2026-01-11 22:53:12 +09:00
Chris Hasiński
a071078e90
pack.c: remove wasted allocation in BER integer packing
...
The 'w' format (BER compressed integer) was allocating an empty
string with rb_str_new(0, 0) then immediately overwriting it with
the correctly-sized allocation. Remove the wasted first allocation.
~50% improvement on BER pack benchmarks.
2026-01-11 21:42:37 +09:00
Heath Dutton🕴️
3363861a5a
Remove RUBY_API_VERSION check in cxxanyargs.hpp
...
The version check used undefined macros, causing -Wundef warnings.
The conditional is no longer needed as Ruby is past version 3.1.
2026-01-11 21:06:51 +09:00
Jean Boussier
73be9992e9
Disambiguate private and public RSTRUCT_ helpers
...
RSTRUCT_LEN / RSTRUCT_GET / RSTRUCT_SET all existing in two
versions, one public that does type and frozens checks
and one private that doesn't.
The problem is that this is error prone because the public version
is always accessible, but the private one require to include
`internal/struct.h`. So you may have some code that rely on the
public version, and later on the private header is included and
changes the behavior.
This already led to introducing a bug in YJIT & ZJIT:
https://github.com/ruby/ruby/pull/15835
2026-01-11 13:03:03 +01:00
Nobuyoshi Nakada
6a630d992e
Push the commits to the origin at make matz [ci skip]
2026-01-11 17:09:40 +09:00
Nobuyoshi Nakada
463a806fb1
Fix VCS::GIT#branch_beginning to search since the last relase
...
The ChangeLog in ruby-4.0.0 did not contain entries for 3.5.0.
2026-01-11 15:12:58 +09:00
Nobuyoshi Nakada
acd0c68a07
Relax the flaky test threshold on RHEL 10.0 x86_64
2026-01-11 14:51:49 +09:00
Peter Zhu
0d4538b57d
[DOC] Improve docs for Module#>=
2026-01-10 09:31:35 -05:00
Peter Zhu
f0f4a683b4
[DOC] Improve docs for Module#<=
2026-01-10 09:31:35 -05:00
Peter Zhu
0b83346f1c
[DOC] Improve docs for Module#<
2026-01-10 09:31:35 -05:00
Peter Zhu
98c414a678
[DOC] Improve docs for Module#>
2026-01-10 09:31:35 -05:00
Jun Aruga
0b69f7fa34
[ruby/openssl] Fix test_cipher.rb in FIPS.
...
https://github.com/ruby/openssl/commit/11bd2efb2a
2026-01-10 07:20:55 +00:00
Peter Zhu
c3f6fcc4c5
Skip ObjectSpaceTest#test_count_nodes for RBS
2026-01-09 18:05:43 -05:00
Peter Zhu
e8c61f5139
Remove ObjectSpace.count_nodes
...
ObjectSpace.count_nodes has been a no-op and returning an empty hash since
Ruby 2.5 because parser nodes are not GC managed.
2026-01-09 18:05:43 -05:00
BurdetteLamar
ef488bff98
[DOC] Doc for Enumerator.new
2026-01-09 18:05:33 -05:00
BurdetteLamar
77cad87dc1
[DOC] Doc for Enumerator class
2026-01-09 17:36:32 -05:00
Burdette Lamar
3d242a82a3
[DOC] Harmonize #> methods
2026-01-09 17:36:26 -05:00
Max Bernstein
e08f316f28
YJIT: Add frozen guard for struct aset ( #15835 )
...
We used to just skip this check (oops), but we should not allow
modifying frozen objects.
2026-01-09 14:25:48 -05:00
Jean Boussier
51ab7b0405
YJIT: gen_struct_aset check for frozen status
2026-01-09 17:31:10 +01:00
Peter Zhu
7379b9ed78
Optimize rb_mark_generic_ivar for T_DATA and T_STRUCT
...
T_DATA and T_STRUCT could have ivars but might not use the generic_fields_tbl.
This commit skips lookup in the generic_fields_tbl for those cases.
2026-01-09 17:31:10 +01:00
Nobuyoshi Nakada
c794a97940
Rename alloca_overflow to stack_overflow
...
`alloca` is an implementation detail to raise a stack overflow.
2026-01-09 20:02:54 +09:00
Nobuyoshi Nakada
e01e13c239
Use assert_ruby_status if no assertion
2026-01-09 17:16:22 +09:00
Nobuyoshi Nakada
fc0c67deb2
Make assert_separately to count assertions in forked processes
2026-01-09 17:16:22 +09:00
Nobuyoshi Nakada
364e25b1c3
Make assert_separately tolerant to core method redefinitions
...
And split `TestRubyOptimization#test_objtostring` for each target
class.
2026-01-09 16:06:13 +09:00
Jörmungandrk
3185786874
Fix integer overflow checks in enumerator
2026-01-09 15:04:05 +09:00