Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 21543 invoked from network); 13 Oct 2006 06:05:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 06:05:21 -0000 Received: (qmail 72534 invoked by uid 500); 13 Oct 2006 06:05:20 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 72500 invoked by uid 500); 13 Oct 2006 06:05:20 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 72489 invoked by uid 99); 13 Oct 2006 06:05:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 23:05:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 23:05:20 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 988F97142F3 for ; Thu, 12 Oct 2006 23:04:36 -0700 (PDT) Message-ID: <17799749.1160719476621.JavaMail.jira@brutus> Date: Thu, 12 Oct 2006 23:04:36 -0700 (PDT) From: "Elena Semukhina (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1816) [DRLVM] drlvm counts non daemon threads incorrectly In-Reply-To: <8007916.1160506761540.JavaMail.root@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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1816?page=comments#action_12441926 ] Elena Semukhina commented on HARMONY-1816: ------------------------------------------ I tried the patch together with HARMONY-1592 and HARMONY-1823. They eiminate recent classlib tests pass rate degradation. drlvm smoke, cunit, kernel pass. > [DRLVM] drlvm counts non daemon threads incorrectly > --------------------------------------------------- > > Key: HARMONY-1816 > URL: http://issues.apache.org/jira/browse/HARMONY-1816 > Project: Harmony > Issue Type: Bug > Reporter: Nikolay Kuznetsov > Attachments: HARMONY-1816.patch, Test1.java > > > There are several problems with non demon(those which vm should wait before destroing itself) threads counting in drlvm: > 1. Non daemon threads count being increased by the thread being run > This leads to the problem that main thread may finish w/o waiting for the child non-daemon thread; > 2. Main thread waiting while number of non daemon threads will be equal to zero, while the main thread itself also non daemon thread > (waiting method checks at enter that thread count should be <= 1, but waits on condition while count ==0) > Basically this causes vm to hang at shutdown if child thread works longer than main method. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira