summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-07-17[ruby/rdoc] Improve rubocop setupStan Lo
(https://github.com/ruby/rdoc/pull/1139) * Rename rake rubocop to rake format_generated_files * Add rubocop rules to ensure spaces are applied consistently * Improve rubocop related CI workflows https://github.com/ruby/rdoc/commit/27932d001c
2024-07-17Don't disable GC in rb_gc_impl_object_idPeter Zhu
Disabling GC when creating the object ID was introduced in commit 67b2c21, but we shouldn't need to disable the GC. Notes: Merged: https://github.com/ruby/ruby/pull/11189
2024-07-17[PRISM] Use RSTRING_PTR for Ruby parsing with fgetsKevin Newton
2024-07-17[ruby/prism] Have parse_stream handle NUL bytesKevin Newton
https://github.com/ruby/prism/commit/4a41d298c8
2024-07-17[ruby/prism] [Doc] Tweak example of `Prism::Dispatcher`Koichi ITO
This PR tweaked the documentation to correct an error encountered when running the example code of `Prism::Dispatcher`. This aims to make understanding the example smoother. https://github.com/ruby/prism/commit/165a1a0e78
2024-07-17[PRISM] Use RSTRING_LEN for Prism stream parsingKevin Newton
2024-07-17Revert pending `EVENT_RETURN` testsNobuyoshi Nakada
* "Allow ambiguosity of `return` line" 65b991bc8571b7b718fc22bd33a43c4d269bf52d * "Move to test/.excludes-prism" 3b4ff810d2fefdf0194bd774bc04f6f17e2ccae7 * "Pending `EVENT_RETURN` settracefunc tests with Prism" a7f33c99c69e3cc62b7a24ce35f51f76cc5bfaa2 Notes: Merged: https://github.com/ruby/ruby/pull/11163
2024-07-17[Bug #20457] [Prism] Remove redundant return flagNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11163
2024-07-17[PRISM] Use StringValuePtr for fgets for Prism stream parsingKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11188
2024-07-17[DOC] Note that rb_obj_freeze_inline() can raise NoMemoryErrorAlan Wu
And move it back to a public header because Doxygen might not be scanning the .c files. [Feature #18776] Notes: Merged: https://github.com/ruby/ruby/pull/11179
2024-07-17[DOC] No more is rb_ary_freeze() an alias of rb_obj_freeze()Alan Wu
[Feature #20589] Notes: Merged: https://github.com/ruby/ruby/pull/11179
2024-07-17Make OBJ_ID_INCREMENT == RUBY_IMMEDIATE_MASK + 1Peter Zhu
All the non-GC objects (i.e. immediates) have addresses such that `obj % RUBY_IMMEDIATE_MASK != 0` (except for `Qfalse`, which is 0). We can define `OBJ_ID_INCREMENT` as `RUBY_IMMEDIATE_MASK + 1` which should guarantee that GC objects never have conflicting object IDs with immediates. Notes: Merged: https://github.com/ruby/ruby/pull/11178
2024-07-17Remove unused variable from GC compaction pathMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/11186
2024-07-17[rubygems/rubygems] Fix another case of `bundle lock --add-platform` doing ↵David Rodríguez
nothing https://github.com/rubygems/rubygems/commit/0629e27dda
2024-07-17[rubygems/rubygems] Applied rubocopHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c26054e7e9
2024-07-17Report a TracePoint log when the TracePoint tests failYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11184
2024-07-17Removed needless block argumentsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11171
2024-07-17To avoid fd leak with fetch request for SSL serverHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11171
2024-07-17Close leaked TCPServer socketHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11171
2024-07-17Close leaked SSLServer socketHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11171
2024-07-17Fixed fd leak from TCPServerHiroshi SHIBATA
``` Leaked file descriptor: HTTPSProxyTest#test_https_proxy_ssl_connection: 8 : #<TCPServer:fd 8, AF_INET, 127.0.0.1, 63104> ``` Notes: Merged: https://github.com/ruby/ruby/pull/11171
2024-07-17Launchable: Fix Python package pathNaoto Ono
Notes: Merged: https://github.com/ruby/ruby/pull/11183
2024-07-17Fix double free when `getcwd` does not allocate bufferNobuyoshi Nakada
Do not free the result at normal return from `ruby_getcwd`. Notes: Merged: https://github.com/ruby/ruby/pull/11182
2024-07-17Add a macro to initialize `struct getattrlist_args`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/11180
2024-07-17[DOC] Fix and improve array slicing example in range.cIskren
* [DOC] Fix typo in range.c In the example of the beginless range used for array slicing, '..' range literal was used while the '...' literal was expected * [DOC] Add example for array slicing in range.c Add an example for the array slice with the beginless range using the '..' range literal * [DOC] Add comments for array slicing in range.c Add comments to make crystal clear what the '..' and '...' range literals do when used for array slicing as beginless range Notes: Merged: https://github.com/ruby/ruby/pull/11150 Merged-By: nobu <[email protected]>
2024-07-16Release GVL around {,f}getattrlist calls in dir.cJeremy Evans
Fixes [Bug #20587] Notes: Merged: https://github.com/ruby/ruby/pull/11176 Merged-By: jeremyevans <[email protected]>
2024-07-16Fix memory leak reported in main ractor when RUBY_FREE_AT_EXITPeter Zhu
STACK OF 1 INSTANCE OF 'ROOT LEAK: <calloc in rb_ractor_main_alloc>': 6 dyld 0x1840e20e0 start + 2360 5 miniruby 0x1006796c8 main + 88 main.c:62 4 miniruby 0x10072f4a4 ruby_init + 16 eval.c:99 3 miniruby 0x10072f328 ruby_setup + 104 eval.c:81 2 miniruby 0x1008d08c0 Init_BareVM + 508 vm.c:4276 1 miniruby 0x1007f8944 rb_ractor_main_alloc + 76 ractor.c:2034 0 libsystem_malloc.dylib 0x1842a4cac _malloc_zone_calloc_instrumented_or_legacy + 128 ==== 1 (96 bytes) ROOT LEAK: <calloc in rb_ractor_main_alloc 0x1347075d0> [96] Notes: Merged: https://github.com/ruby/ruby/pull/11175
2024-07-16[ruby/prism] Move sample files under sample/prismKevin Newton
https://github.com/ruby/prism/commit/9e9b069404
2024-07-16[PRISM] Omit two more ast tests that will not work without RubyVM::AstKevin Newton
2024-07-16[PRISM] Properly compile branch conditions in their own sequenceKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11177
2024-07-16[PRISM] Fix up ensure+loop+breakKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11177
2024-07-16[ruby/irb] Group class methods under `class << self`Stan Lo
(https://github.com/ruby/irb/pull/981) https://github.com/ruby/irb/commit/cdaa356df2
2024-07-16[DOC] Fix typo in gc/default.cPeter Zhu
2024-07-16[Bug #20457] Drop unreachable `return` at end of methodNobuyoshi Nakada
2024-07-16Remove dependency on dtrace when building shared GCPeter Zhu
2024-07-16Set `BUILDING_SHARED_GC` when building shared GCPeter Zhu
2024-07-16Stop using `sigsetjmp` to hijack SIGCHLD handlerNobuyoshi Nakada
It already has been dead code. Follow up of 65d3eacc80bbefb29e5cd0f3f9661d886f2e4cee.
2024-07-16Update bundled gems list as of 2024-07-16git
2024-07-16Add MatchData#bytebegin and MatchData#byteendShugo Maeda
These methods return the byte-based offset of the beginning or end of the specified match. [Feature #20576]
2024-07-16static const char *type_name() implemented卜部昌平
The function body was missing.
2024-07-16fix compile error卜部昌平
2024-07-16Follow-up resolv and win32 integrationHiroshi SHIBATA
https://github.com/ruby/resolv/pull/54
2024-07-16Fix a typoKazuhiro NISHIYAMA
[Misc #20636]
2024-07-15[DOC] Document RbConfig::SIZEOFAlan Wu
2024-07-15[DOC] Document RbConfig::LIMITSAlan Wu
2024-07-15Refactor so RDoc picks up RbConfig::{SIZEOF,LIMITS}Alan Wu
2024-07-16[ruby/rdoc] Drop reimplementation of Ripper lex statenicholas a. evans
(https://github.com/ruby/rdoc/pull/1118) * Drop reimplementation of Ripper lex state This code was for ruby 2.4 compatibility, but rdoc dropped support for ruby 2.4 about three years ago, in f480b970c. This code was almost half of the lines of code in rdoc/parser/ripper_state_lex. * Remove unused Ripper constants and const_defined? This was mostly copied from the diff in @st0012's PR comment. The remaining constants have been updated to get their value directly from Ripper. Co-authored-by: Stan Lo <[email protected]> * Use Ripper::EXPR_LABEL directly Since this is only used from outside RipperStateLex, there's no longer any benefit to using the indirect reference rather than just going straight to Ripper. --------- https://github.com/ruby/rdoc/commit/dd8c216263 Co-authored-by: Stan Lo <[email protected]>
2024-07-15[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.97 to 0.9.98. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.97...v0.9.98) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> https://github.com/rubygems/rubygems/commit/291a5ad53c
2024-07-15[PRISM] Add missing rescue tracepoint for rescue modifierKevin Newton
2024-07-15YJIT: split chain_depth and flag booleans in context (#11169)Maxime Chevalier-Boisvert
Split these values to avoid using a bit mask in the context Use variable length encoding to save a few bits on chain depth