Koichi Sasada
6c4b04de5c
clear `sched->lock_onwer` at fork
...
`sched->lock_owner` can be non-NULL at fork because the timer thread
can acquire the lock while forking. `lock_owner` information is for
debugging, so we only need to clear it at fork.
I hope this patch fixes the following assertion failure:
```
thread_pthread.c:354:thread_sched_lock_:sched->lock_owner == NULL
```
2023-12-19 02:26:37 +09:00
Peter Zhu
f35fec7710
Reset pinned_slots at the beginning of GC
...
pinned_slots is not being reset every GC, which causes this assertion to
fail:
```
Assertion Failed: gc.c:7076:gc_pin:GET_HEAP_PAGE(obj)->pinned_slots <= GET_HEAP_PAGE(obj)->total_slots
```
This commit changes it to reset it at the beginning of every compaction
GC cycle.
2023-12-18 10:37:21 -05:00
Jean Boussier
f6ad49b87c
Use #initialize instead of `initialize` in shape perf warning
...
This is more consistent with other messages.
2023-12-18 13:42:02 +01:00
Jean Boussier
b2fc1b054e
Update `BasicSocket#recv` documentation on return value
...
Ref: https://github.com/ruby/ruby/pull/6407
[Bug #19012 ]
`0` is now interpreted as closed connection an not an
empty packet, as these are very rare and pretty much
useless.
2023-12-18 12:58:08 +01:00
Nobuyoshi Nakada
40fc9b070c
[DOC] No document for internal or debug methods
2023-12-18 20:17:45 +09:00
Nobuyoshi Nakada
baf1403fba
[DOC] Show `PTY.getpty` as an alias of `PTY.spawn`
...
`:nodoc:` directive does not work at method definition in C, and must
be at the implementation function. That is, there is no way to make
one method visible and another method sharing the implementation
invisible at the same time.
2023-12-18 20:17:45 +09:00
Nobuyoshi Nakada
835f1461f7
[DOC] Add document of IO::Buffer#hexdump
2023-12-18 20:17:44 +09:00
Nobuyoshi Nakada
e9b0b6015e
[DOC] Add documents of constants for IO#wait event mask
2023-12-18 20:17:44 +09:00
Nobuyoshi Nakada
494e6b54ab
[DOC] Add links from `File::Constants` in dir.c to `File` constants
...
Due to the bug ruby/rdoc#1067 , `rb_file_const` needs `Document-const`
directives.
2023-12-18 20:17:44 +09:00
Nobuyoshi Nakada
9b00b2bfb2
[DOC] Add links from `File::Constants` to `File` constants
2023-12-18 20:17:44 +09:00
Nobuyoshi Nakada
a94f3f206e
[DOC] Added notes regarding `:nodoc:` in C code
2023-12-18 20:17:44 +09:00
Nobuyoshi Nakada
9abaf00c07
[DOC] documents of aliased methods
2023-12-18 20:17:43 +09:00
Jean Boussier
ba1d1522d3
Make the SHAPE_TOO_COMPLEX performance warning more actionable
...
As suggested by Mame, we should try to help users fix the issues
without having to lookup the meaning of the warning.
2023-12-18 10:33:18 +01:00
Takashi Kokubun
e8064c6c2c
Shorten the workflow name
...
Looking at the name in the list, "Miscellaneous / Miscellaneous checks"
seems too verbose/repetitive. Let's make it "Misc / Miscellaneous checks".
2023-12-17 21:17:19 -08:00
Takashi Kokubun
83194aa27d
Make the check_misc job name more descriptive
...
We're going to add check_misc as a required status check, and "checks"
was a bit too vague for matching the job name.
2023-12-17 21:15:11 -08:00
Takashi Kokubun
d8978445ae
Improve YJIT documentation for Ruby 3.3 ( #9263 )
2023-12-17 23:45:09 -05:00
Yusuke Endoh
e14dddcaca
Tweak NEWS.md
...
* Move `define?(@var)` optimization into GC section
* Remove a trailing space.
2023-12-16 00:25:00 +09:00
Nobuyoshi Nakada
0601bce6fc
[DOC] Add Socket::ResolutionError documentation
2023-12-18 08:49:06 +09:00
Nobuyoshi Nakada
71c4a9c38f
[DOC] Correct the location of Addrinfo document
...
The document must be placed immediately before the class definition.
No other statements can be placed in between.
2023-12-18 08:47:59 +09:00
Nobuyoshi Nakada
e316128e3d
[DOC] Stop unintentional references to builtin or standard names
2023-12-18 08:38:59 +09:00
Nobuyoshi Nakada
7bfa1c3dc9
Revert "[DOC] Make undocumented socket constans nodoc"
...
This reverts commit cbda94edd8
, because
`:nodoc:` does not work for constants.
In the case of `rb_define_const`, RDoc parses the preceeding comment
as in `"/* definition: comment */"` form.
2023-12-17 22:37:15 +09:00
Nobuyoshi Nakada
aab74eafde
[DOC] Fix Travis-CI condition
...
"Not document only" should be honored always. Also simplified repo
and branch conditions
2023-12-17 21:17:48 +09:00
Nobuyoshi Nakada
cbda94edd8
[DOC] Make undocumented socket constans nodoc
2023-12-17 20:17:45 +09:00
Nobuyoshi Nakada
557d929ba6
[DOC] Utilize COMMENTS.default_proc to add fallback documents
2023-12-17 20:17:05 +09:00
Nobuyoshi Nakada
7a60196a8e
Fix ext/socket/constdefs.c dependency [ci skip]
2023-12-17 20:14:41 +09:00
Nobuyoshi Nakada
e0914ed267
Add `undocumnted` target [ci skip]
2023-12-17 20:00:29 +09:00
Hiroshi SHIBATA
d7d10f3ee8
Adjust rubygems style
2023-12-17 05:45:33 +08:00
Hiroshi SHIBATA
8db0de92a8
Restore tracked_files for ruby core repo
2023-12-17 05:39:16 +08:00
Nobuyoshi Nakada
ab7f54688b
Stir the hash value more with encoding index
2023-12-17 00:30:00 +09:00
Nobuyoshi Nakada
2f595c744e
Adjust styles [ci skip]
2023-12-17 00:21:00 +09:00
Hiroshi SHIBATA
40113454b1
Use regex instead of hard coded paths
2023-12-16 21:02:45 +09:00
Hiroshi SHIBATA
ab87cd0baa
We don't use tracked_files in before(:suite). It breaks with release package.
2023-12-16 21:02:45 +09:00
Hiroshi SHIBATA
ad2a38dce4
Added simple test script
2023-12-16 16:36:47 +08:00
Samuel Giddins
83bdf127b8
Avoid warning when requiring bigdecimal/util when bigdecimal is in gemfile
2023-12-16 17:34:45 +09:00
Hiroshi SHIBATA
6f6b36b7e4
Added test for sub-feature like bigdecimal/util
2023-12-16 15:44:34 +08:00
Nobuyoshi Nakada
b710f96b5a
[Bug #20068 ] Encoding does not matter to empty strings
2023-12-16 16:00:12 +09:00
Hiroshi SHIBATA
dd49ee152b
Use minimum arguments for Bootsnap
2023-12-16 14:41:43 +08:00
git
f535f53cd6
Update default gems list at 582862754f
[ci skip]
2023-12-16 05:52:30 +00:00
Hiroshi SHIBATA
582862754f
[ruby/io-console] Bump up v0.7.1
...
https://github.com/ruby/io-console/commit/8ac766d870
2023-12-16 13:51:34 +08:00
Hiroshi SHIBATA
80d63fbea5
[ruby/readline] Bump up v0.0.4
...
https://github.com/ruby/readline/commit/7dbc5bd8d9
2023-12-16 13:49:13 +08:00
hogelog
cb636fe707
[ruby/readline] Fix readline-ext gem loading in non Unix-like environments
...
https://github.com/ruby/readline/commit/6e1e5d0eb8
2023-12-16 13:49:12 +08:00
ima1zumi
20fbdae5fe
[ruby/reline] Bump version to 0.4.1
...
(https://github.com/ruby/reline/pull/612 )
https://github.com/ruby/reline/commit/8937279e0f
2023-12-16 13:47:04 +08:00
git
95064832a5
Update default gems list at 4fd3c85acd
[ci skip]
2023-12-16 05:22:10 +00:00
Hiroshi SHIBATA
4fd3c85acd
[ruby/ipaddr] Bump up v1.2.6
...
https://github.com/ruby/ipaddr/commit/247459faa5
2023-12-16 13:20:55 +08:00
git
70e3cb8990
Update default gems list at 8936bb74c6
[ci skip]
2023-12-16 05:07:47 +00:00
Hiroshi SHIBATA
8936bb74c6
[ruby/abbrev] Bump up v0.1.2
...
https://github.com/ruby/abbrev/commit/b362e8e3b9
2023-12-16 13:06:47 +08:00
Hiroshi SHIBATA
3b6828f967
[ruby/syslog] Bump up v0.1.2
...
https://github.com/ruby/syslog/commit/f7b29e2199
2023-12-16 13:06:37 +08:00
git
38e0ba34f4
Update default gems list at 2b3fc0407a
[ci skip]
2023-12-16 04:11:38 +00:00
Hiroshi SHIBATA
2b3fc0407a
[ruby/securerandom] Bump up v0.3.1
...
https://github.com/ruby/securerandom/commit/890d659970
2023-12-16 12:10:38 +08:00
git
7c1ec8ae50
Update default gems list at 6a79e53823
[ci skip]
2023-12-16 04:01:59 +00:00