[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:60691] [ruby-trunk - Bug #9342] [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3
From:
usa@...
Date:
2014-02-14 03:49:22 UTC
List:
ruby-core #60691
Issue #9342 has been updated by Usaku NAKAMURA. Backport changed from 1.9.3: REQUIRED, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED Commited to ruby_1_9_3 at r44932. Thank you, Justin! ---------------------------------------- Bug #9342: [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3 https://bugs.ruby-lang.org/issues/9342#change-45113 * Author: Justin Collins * Status: Closed * Priority: Normal * Assignee: Koichi Sasada * Category: ext * Target version: current: 2.2.0 * ruby -v: ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin11.4.2] * Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED ---------------------------------------- In Ruby 1.9.3, when SizedQueue#clear is called, it empties the queue but does not notify waiting threads that the queue is empty. This typically leads to deadlock when the queue is full. For example: sq = SizedQueue.new(1) sq << 1 # Fill queue t1 = Thread.new do sq << 1 # Attempt to add another item to queue, fail and go to sleep waiting end t2 = Thread.new do Thread.pass sq.clear end t2.join # Empty queue t1.join # Deadlock, t1 continues to sleep ---Files-------------------------------- 0001-Wake-waiting-threads-when-SizedQueue-clear-is-called.patch (1.73 KB) 0002-Wake-waiting-threads-when-SizedQueue-clear-is-called-2.0.patch (769 Bytes) -- http://bugs.ruby-lang.org/