89518 Commits

Author SHA1 Message Date
Takashi Kokubun
f450108330 [DOC] Fix indentation for rdoc v3_4_0 2024-12-24 20:50:41 -08:00
Takashi Kokubun
663f833bac [DOC] Mention method argument optimization 2024-12-24 20:49:52 -08:00
Takashi Kokubun
e25b350fc5 [DOC] Fix the broken format of RubyVM::YJIT.enable docs 2024-12-24 20:42:06 -08:00
Takashi Kokubun
7245d3e356 [DOC] Mention --yjit-perf=codegen in NEWS 2024-12-24 20:36:12 -08:00
Takashi Kokubun
828e913cf7 [DOC] Use the same indentation depth as adjacent sections 2024-12-24 20:31:02 -08:00
ydah
1b0e362692 [DOC] Fix typo in NEWS.md regarding thread-safety 2024-12-25 13:22:15 +09:00
Nobuyoshi Nakada
bf878b5494
[DOC] Ractor::RemoteError 2024-12-25 13:16:28 +09:00
Nobuyoshi Nakada
2acbf45d36
[DOC] Monitor 2024-12-25 13:16:14 +09:00
Nobuyoshi Nakada
871124c3ea
[DOC] Stop document Ripper::Lexer
`:nodoc:` seems not working for inner classes.
2024-12-25 13:07:22 +09:00
Nobuyoshi Nakada
970513f677
Sort undocumented entry list [ci skip] 2024-12-25 12:04:32 +09:00
Nobuyoshi Nakada
e8aca1aafc
[DOC] Fix indentation
RDoc markdown parser requires exact 4 spaces or tab as indentation.
2024-12-25 12:00:00 +09:00
Nobuyoshi Nakada
f72b94bdb6
[DOC] Fix duplicate entries
A tentative workaround for duplicate entries in "Class and Module
Index".
2024-12-25 11:37:37 +09:00
Nobuyoshi Nakada
51d3f6459b
[DOC] Hide Fiber::Pool
It is experimental yet and is disabled currently.
2024-12-25 11:25:03 +09:00
Nobuyoshi Nakada
92f850ae84
[DOC] Hide Ractor::Selector
It is not enabled by default currently.
2024-12-25 11:13:07 +09:00
Takashi Kokubun
36e9028f93 [DOC] Clarified YJIT stats changes 2024-12-24 18:00:06 -08:00
Takashi Kokubun
4e4b87d324 [DOC] Categorize YJIT new features 2024-12-24 17:48:49 -08:00
Nobuyoshi Nakada
e46314edd1
[DOC] Monitor 2024-12-25 10:30:40 +09:00
Kazuhiro NISHIYAMA
c194357c08
[DOC] Sort links [ci skip] 2024-12-25 08:56:08 +09:00
Hiroshi SHIBATA
8aac08498b
Update bundler version on NEWS.md 2024-12-25 08:46:15 +09:00
Alan Wu
468b7af67e [DOC] RegExp: The Graph property includes some control characters
The behavior of this is a carry-over from Oniguruma:
  5eaee9f5f8/doc/RE (L246)

The previous phrasing was inaccurate since it's fair to construe e.g.
Zero Width Joiner as a control character.

Reported-by: https://github.com/ruby/ruby/pull/12294
2024-12-24 15:40:57 -05:00
tomoya ishida
372e19bbb5
[DOC] Add IRB's new completion section to NEWS.md
* Fix link and copyedit blurb

Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
2024-12-24 19:29:42 +00:00
Stan Lo
645d604766 Fix missing/broken links in NEWS.md 2024-12-24 14:02:00 -05:00
Victor Shepelev
58460b4dbd
[DOC] Adjust documentation related to backtraces (#12420) 2024-12-24 20:49:55 +02:00
Misaki Shioi
3be1baab82
Introduce a timeout to prevent rb_thread_fd_select from hanging with write(2) failure (#12457)
Rarely, there are cases where a write(2) call from a child thread
to notify the main thread of the completion of name resolution fails.
If this happens while the main thread is waiting in `rb_thread_fd_select`,
rb_thread_fd_select may not notice that the name resolution has completed and end up hanging.

This issue becomes a problem when there are no sockets currently being connected,
no addresses ready for immediate connection attempts,
and name resolution has already completed for one address family
while the main thread is waiting for the name resolution of the other address family.
(If name resolution is not completed for either address family,
the chances of write(2) failing in both child threads are likely low.)

To avoid this issue, a timeout is introduced to rb_thread_fd_select under the above conditions.
This way, even if the issue occurs,
the completion of name resolution should still be detected
in the subsequent `if (!resolution_store.is_all_finished) ...` block.
2024-12-25 03:06:02 +09:00
Peter Zhu
07e89bde46 Fix MEMMOVE in rb_darray_insert
Ruby's MEMMOVE takes in the element data type for the third argument, not
the size of the element. What this did was do sizeof(sizeof( ... )) which
always returned sizeof(size_t).
2024-12-24 09:40:12 -05:00
Nobuyoshi Nakada
13e6fe9bbc
[DOC] Hide RubyVM::Shape that is for debug from RDoc totally 2024-12-24 21:31:52 +09:00
Nobuyoshi Nakada
94df8a0cae Postpone spec of eszett with ignore case in look behind 2024-12-24 17:50:01 +09:00
Soutaro Matsumoto
737ca6b83d
Bundle rbs-3.8.0 (#12453) 2024-12-24 08:10:43 +00:00
Nobuyoshi Nakada
1b0c46daed
[Bug #20979] [DOC] Add a proviso to +comment option 2024-12-24 13:27:05 +09:00
Nobuyoshi Nakada
fb82f3a632 Win32: Defer change of timezone name encoding after 3.4
This change will be merged into 3.5 along with other encoding, command
line, environment variables, etc.

Revert following commits:

- bd831bcca534955533d9135d8c2f22d7ae5b9aa8
  [Bug #20929] Win32: Use `wcsftime`

- 1c15f641cc2bb88fa88123a11036ed58fbf9aa6d
  [Bug #20929] Win32: Encode timezone name in UTF-8

- 78762b52185aa80ee55c0d49b495aceed863dce2
  [Bug #20929] Fix `assert_zone_encoding`
2024-12-24 13:25:55 +09:00
David Rodríguez
42026ec3da Fix bundled gems warning for sub feature locations 2024-12-24 12:07:54 +09:00
lukeg
0d81177c20 Fix calls to require_internal in multi-ractor mode
After a ractor is started (multi-ractor mode), any calls to
require_internal will hang the process due to deadlock. For example,
loading a new encoding will deadlock after a ractor starts.

Fixes [Bug #19562]
2024-12-24 11:40:00 +09:00
Luke Gruber
38af38edcb Fix ractor move of unshareable frozen objects
These objects didn't retain their frozen status after the move

Bug [#19408]
2024-12-24 11:38:44 +09:00
Hiroshi SHIBATA
1eb5c03fda
Added previous version or prime 2024-12-24 11:38:05 +09:00
Hiroshi SHIBATA
ed7ed25e6e
Update RubyGems, Bundler and missing histories of minitest and typeprof 2024-12-24 11:27:37 +09:00
Koichi Sasada
ab8fd5bb6c not a incompatbile, but a feature
The change of `Object#singleton_method` doesn't harm existing code
so it should be new feature (bug fix).
2024-12-24 10:47:20 +09:00
Luke Gruber
2a08f7283e Fix [Bug #20779] Dedicated native thread creation failed bug
When a dedicated native thread fails to create (OS can't create more
threads), don't add the ruby-level thread to the thread scheduler. If
it's added, then next time the thread is scheduled to run it will sleep
forever, waiting for a native thread that doesn't exist to pick it up.
2024-12-24 09:05:49 +09:00
David Rodríguez
9e0eb9778d Merge RubyGems-3.6.2 and Bundler-2.6.2 2024-12-24 07:21:10 +09:00
Takashi Kokubun
527cc73282
YJIT: Return None if entry block compilation fails (#12445) 2024-12-23 22:12:08 +00:00
Peter Zhu
5b22f14e53 GC guard the iseq in eval for prism
We need to GC guard the iseq because the code above it malloc memory which
could trigger a GC. Since we only use ISEQ_BODY, the compiler may optimize
out the iseq local variable so we need to GC guard it.

Fixes: http://ci.rvm.jp/results/trunk_asan@ruby-sp1/5484752
2024-12-23 16:44:30 -05:00
Peter Zhu
f4476f0d07 Disable GC during RUBY_INTERNAL_EVENT_NEWOBJ
We must disable GC when running RUBY_INTERNAL_EVENT_NEWOBJ hooks because
the callback could call xmalloc which could potentially trigger a GC,
and a lot of code is unsafe to trigger a GC right after an object has
been allocated because they perform initialization for the object and
assume that the GC does not trigger before then.
2024-12-23 09:03:32 -05:00
Nobuyoshi Nakada
4e12c25778
[DOC] Fix indentation
RDoc markdown parser requires exact 4 spaces or tab as indentation.
2024-12-23 21:53:47 +09:00
Nobuyoshi Nakada
a438c37ce9
CI: auto-update workflow makes sense only on ruby/ruby [ci skip] 2024-12-23 21:50:28 +09:00
Yusuke Endoh
376ef474de Bundle TypeProf 0.30.1 2024-12-23 20:40:03 +09:00
Yusuke Endoh
1aba05f370 Check if TypeProf 0.30.1 (planned) passes the CI 2024-12-23 20:40:03 +09:00
Nobuyoshi Nakada
bf5f8ecef1
[Bug #20978] Use ruby_bug instead of ruby_version_is 2024-12-23 19:21:46 +09:00
Nobuyoshi Nakada
adad97a031
[Bug #20978] Stringize Fiber storage keys 2024-12-23 18:16:28 +09:00
zzak
a11bb36316
Add more back quotes for code and fix missing feature#20018 link 2024-12-23 17:37:47 +09:00
Hiroshi SHIBATA
49de9078c7
Added version histories for csv, net-imap, power_assert and rbs 2024-12-23 16:39:47 +09:00
Hiroshi SHIBATA
4de6680a88
Added limitation of bundled_gems.rb with sub-feature example 2024-12-23 16:21:27 +09:00