General

Profile

ko1 (Koichi Sasada)

  • Login: ko1
  • Registered on: 05/28/2008
  • Last sign in: 11/29/2026

Issues

open closed Total
Assigned issues 71 684 755
Reported issues 15 208 223

Projects

Project Roles Registered on
Ruby Committer 05/28/2008

Activity

Today

09:51 AM Ruby Feature #21869: Add receive_all Method to Ractor API for Message Batching
Sorry for the late reply again. I measured the PR (4cc333f667) on the current master (2dc7d694fc).
I compared three ways to consume 1M messages:
- receive: port.receive for each message
- loop: a = [port.receive]; while m = port.r...
ko1 (Koichi Sasada)
09:04 AM Ruby Feature #21539: Export symbols for external profiling of stripped shared Ruby builds
* I'm okay to introduce it if we can agree that this symbols are implementation dependent and no guarantee even between teeny version.
* BTW `ruby_debug_current_ec` is difficult for M:N thread scheduler. Should we comment about that?
ko1 (Koichi Sasada)

11/26/2026

05:58 PM Ruby Revision 529e2b77 (git): Fix a race in test_match_concurrently_on_same_string
The other thread could finish its match after the check of th.alive?
and before s.replace, then nothing was raised (seen on trunk_asan).
Check after the replace that the other thread is still in the match,
and omit otherwise. Also omit i...
ko1 (Koichi Sasada)
05:47 AM Ruby Revision 52214dff (git): Lock the target string during a regexp match
A regexp match checks interrupts every 128 steps (CHECK_INTERRUPT_IN_MATCH_AT),
so other threads, trap handlers or finalizers can run in the middle of the
match. If one of them modified the target string, the buffer onigmo was
reading co...
ko1 (Koichi Sasada)
05:47 AM Ruby Revision b0bea23c (git): Keep the buffer of a locked string during a regexp match
When the target string is already locked, e.g. by another thread
matching the same string, rb_reg_onig_match() matched it without taking
the lock. The owner of the lock could release it in the middle of the
match, and then the string cou...
ko1 (Koichi Sasada)
05:47 AM Ruby Revision c75ab848 (git): Match grapheme clusters on a frozen copy of the string
String#grapheme_clusters and each_grapheme_cluster.size passed
RSTRING_PTR(str) to onig_match() directly. Interrupt checks in the
match may run other threads, which can modify str and free the buffer
being read. The block form already ...
ko1 (Koichi Sasada)
05:47 AM Ruby Revision 6a3f481d (git): Bound the regexp lock test helper by time
The helper doubled the string up to 48_000 and flunked when no thread
switch happened; the O(n^2) match then could take over a minute. Stop
after 10 seconds and omit instead, as the environment decides whether
the timer interrupt switch...
ko1 (Koichi Sasada)

11/25/2026

06:05 PM Ruby Revision d4df3943 (git): [ruby/openssl] ssl: fix flaky test for SSLSocket#connect(timeout:)
The server proc expected the second accept_nonblock, 0.2s after accept,
to complete the handshake. That holds only if the client has sent its
second flight (or closed) by then. On a slow machine the client with
`timeout: 0.1` could be st...
ko1 (Koichi Sasada)
05:33 PM Ruby Revision f0bc77f5 (git): [ruby/resolv] Stop defining a global Object#stub in the DNS tests
The tests defined Object#stub unless one already existed, and the copy
dropped the block and keyword arguments. In ruby/ruby's test-all, when
test/resolv/test_dns.rb was loaded before the RubyGems tests in the same
process, Gem::TestCas...
ko1 (Koichi Sasada)

11/24/2026

11:45 PM Ruby Revision 0607a4a4 (git): [ruby/resolv] Stop defining a global Object#stub in the DNS tests
The tests defined Object#stub unless one already existed, and the copy
dropped the block and keyword arguments. In ruby/ruby's test-all, when
test/resolv/test_dns.rb was loaded before the RubyGems tests in the same
process, Gem::TestCas...
ko1 (Koichi Sasada)

Also available in: Atom