Project

General

Profile

Actions

Bug #9302

closed

[PATCH] thread: fix deadlock/freeze on SizedQueue#push

Added by normalperson (Eric Wong) almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.2.0dev (2013-12-26 trunk 44439) [x86_64-linux]
[ruby-core:59324]

Description

SizedQueue#push needs to check the thread list for threads
waiting on enqueue. Checking the wrong thread list leads
strange/surprising behavior when the the queue is full.

This needs to be backported to 2.1.0 (not 2.0.0 or earlier)


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0