Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 11249 invoked from network); 22 Sep 2007 11:03:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Sep 2007 11:03:14 -0000 Received: (qmail 96901 invoked by uid 500); 22 Sep 2007 11:03:05 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 96887 invoked by uid 500); 22 Sep 2007 11:03:05 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 96878 invoked by uid 99); 22 Sep 2007 11:03:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 04:03:04 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Sep 2007 11:05:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E32F571421A for ; Sat, 22 Sep 2007 04:02:50 -0700 (PDT) Message-ID: <29480855.1190458970885.JavaMail.jira@brutus> Date: Sat, 22 Sep 2007 04:02:50 -0700 (PDT) From: "Ilya Berezhniuk (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-4766) [drlvm][thread] ThreadGroup.destroy() does not destroy groups with non-started threads In-Reply-To: <11942316.1189208370835.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ilya Berezhniuk updated HARMONY-4766: ------------------------------------- Attachment: H-4766.patch Suggested patch implements desired ThreadGroup.destroy() behavior. It does not affect other ThreadGroup functionality. 'build test' is passed except java.lang.ThreadGroupTest (which is evidently supposed to check previous behavior). I'm going to fix j.l.ThreadGroupTest and check other functional tests on ThreadGroup. > [drlvm][thread] ThreadGroup.destroy() does not destroy groups with non-started threads > -------------------------------------------------------------------------------------- > > Key: HARMONY-4766 > URL: https://issues.apache.org/jira/browse/HARMONY-4766 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Ilya Berezhniuk > Attachments: H-4766.patch, TG1.java, TG1.java, TG1.java > > > While investigating HARMONY-4361 I've discovered that ThreadGroup.destroy() behavior does not match RI behavior. > I did not experiment with daemon groups, but for non-daemon groups ThreadGroup.destroy() throws j.l.IllegalThreadStateException when trying to destroy thread group containing thread which is not started yet. > API spec. says: "This thread group must be empty, indicating that all threads that had been in this thread group have since stopped" > In other words, it should be possible to destroy group containing stopped thread, and also containing subgroups with stopped threads. > Spec. says nothing about non-started threads... > I've wrote simple test to check RI behavior, and on both Sun and BEA VMs it's OK to destroy group with a thread which is not started yet. > Harmony throws exception for not started threads. > It's possible that some points in my test are incorrect, but it's evident that Harmony behavior essentially differs from RI behavior. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.