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)
* 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)
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)
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)
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)
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)
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)
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)
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)
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)