Return-Path: Delivered-To: apmail-incubator-river-dev-archive@minotaur.apache.org Received: (qmail 76305 invoked from network); 8 Jun 2010 16:14:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 16:14:07 -0000 Received: (qmail 69107 invoked by uid 500); 8 Jun 2010 16:14:07 -0000 Delivered-To: apmail-incubator-river-dev-archive@incubator.apache.org Received: (qmail 69049 invoked by uid 500); 8 Jun 2010 16:14:07 -0000 Mailing-List: contact river-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-dev@incubator.apache.org Received: (qmail 69041 invoked by uid 99); 8 Jun 2010 16:14:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 16:14:07 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.18.0.184] (HELO exprod5og107.obsmtp.com) (64.18.0.184) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 08 Jun 2010 16:13:58 +0000 Received: from source ([209.202.150.67]) by exprod5ob107.postini.com ([64.18.4.12]) with SMTP ID DSNKTA5sLtzwUlZm4D+nzh0I9/vpBxScG6fb@postini.com; Tue, 08 Jun 2010 09:13:37 PDT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01CB0725.84881801" Subject: RE: com.sun.jini.thread lock contention Date: Tue, 8 Jun 2010 12:13:17 -0400 Message-ID: <77F1E32F67C8D5479858C0C7E93EB465A63A07@WAL-MAIL.global.avidww.com> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: com.sun.jini.thread lock contention Thread-Index: AcsGdBjP9GtTg9HySJqHrDusiHaEDQAsGioQAAA8TvA= References: <4C0914F4.2070906@cytetech.com> <4C09BE57.3010009@zeus.net.au> <4C0D41D1.4040506@zeus.net.au> From: "Christopher Dolan" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CB0725.84881801 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Oops, let me try that patch one more time... Chris -----Original Message----- From: Christopher Dolan=20 Sent: Tuesday, June 08, 2010 11:11 AM To: 'river-dev@incubator.apache.org' Subject: RE: com.sun.jini.thread lock contention Attached is a minimalist initial patch. I'm not happy that I had to store a reference to the thread in the Runnable... But otherwise I wasn't sure how to interrupt it from removeTask() without a separate map of TaskThread to Thread. There's all a null pointer race in this patch if you try to remove a task before it's run() method executes. Chris ------_=_NextPart_001_01CB0725.84881801--