Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 81836 invoked from network); 19 Sep 2006 12:30:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 12:30:01 -0000 Received: (qmail 90941 invoked by uid 500); 19 Sep 2006 12:30:00 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 90919 invoked by uid 500); 19 Sep 2006 12:30:00 -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 90907 invoked by uid 99); 19 Sep 2006 12:30:00 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 05:30:00 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:32939] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id E6/54-26148-7C2EF054 for ; Tue, 19 Sep 2006 05:29:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E2D91714300 for ; Tue, 19 Sep 2006 12:26:23 +0000 (GMT) Message-ID: <13001159.1158668783926.JavaMail.jira@brutus> Date: Tue, 19 Sep 2006 05:26:23 -0700 (PDT) From: "Artem Aliev (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-1340) Fix invalid assertion in thread_native_fat_monitor.c In-Reply-To: <6119557.1156870703483.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1340?page=comments#action_12435767 ] Artem Aliev commented on HARMONY-1340: -------------------------------------- The assertion in the current code is incorrect, it check that monitor is entered not more then once (recursion_count < 1) It was left in the code by mistake. The monitor recursion count could be any positive number (the number of nested monitorEnter calls). So the fix is correct. > Fix invalid assertion in thread_native_fat_monitor.c > ---------------------------------------------------- > > Key: HARMONY-1340 > URL: http://issues.apache.org/jira/browse/HARMONY-1340 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows XP professional > Reporter: Anton Luht > Assigned To: weldon washburn > Attachments: patch.txt > > > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r438091, (Aug 29 2006), Windows/ia32/msvc 1310, debug build > http://incubator.apache.org/harmony > An attempt to run 'ant test' to run tests causes a popup notifying about an assertion failure in thread_native_fat_monitor.c line 183: saved_recursion < 1 > Seems like assertion saved_recursion >= 0 is more appropriate here > at least with this assertion popup disappears and build proceeds > Please see the patch attached -- 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