From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14877 invoked by alias); 5 Apr 2006 21:38:41 -0000 Received: (qmail 14861 invoked by uid 48); 5 Apr 2006 21:38:40 -0000 Date: Wed, 05 Apr 2006 21:38:00 -0000 Message-ID: <20060405213840.14860.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/23682] gnu.java.nio.SelectorImpl.select(long) throws ArrayIndexOutOfBoundsException In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "tromey at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00050.txt.bz2 List-Id: ------- Comment #4 from tromey at gcc dot gnu dot org 2006-04-05 21:38 ------- One possible problem I see here is that the 'interestOps' of a SelectionKeyImpl can change while getFDsAsArray is running. There are a few possible fixes here, the simplest would be to avoid having two loops in getFDsAsArray. If I send a patch can you easily test it? -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-04-05 21:38:39 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23682