From dev-return-27680-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Wed Jun 13 10:13:46 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 44954 invoked from network); 13 Jun 2007 10:13:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 10:13:45 -0000 Received: (qmail 16990 invoked by uid 500); 13 Jun 2007 10:13:45 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 16961 invoked by uid 500); 13 Jun 2007 10:13:44 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 16939 invoked by uid 99); 13 Jun 2007 10:13:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 03:13:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of sayapina@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 03:13:40 -0700 Received: by wa-out-1112.google.com with SMTP id k22so171783waf for ; Wed, 13 Jun 2007 03:13:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=AsXt43SXfesjaIUNvSB7lRK+3dTGwK1rIdkAwtrIhqiqqbPpn9kLwrmw5x1ixYxHqqHAzKv831B4ixn9EHbnncHEpMZ7qtIXKVjGXoLhTLUYHVmTu6tlpUPWxzRKbHaA4EdqH8CnAQZUo9qvUm45Zuo48FI7H3lSutx+Q41GXPA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=k2fJPRmK8BBZSeAS3akK7lPnes4c/Z8WjjgpHHvWl66ukkccr9+Nekh7nMh3SP2rK8gKwr5mwQUIMf3vD4llEr7bevTraR0Jl/5bcec18hOgYhdR9+5C5UWwdYqVVR00w4d494R09scll0sAaKWhYvjLN3cTrPuiAs6NlqOzKIk= Received: by 10.114.158.1 with SMTP id g1mr496862wae.1181729599620; Wed, 13 Jun 2007 03:13:19 -0700 (PDT) Received: by 10.141.194.12 with HTTP; Wed, 13 Jun 2007 03:13:19 -0700 (PDT) Message-ID: <9ef42bb30706130313w278ba040ud8c53497bb5260f7@mail.gmail.com> Date: Wed, 13 Jun 2007 17:13:19 +0700 From: "Elena Sayapina" To: dev@harmony.apache.org Subject: Regression in java.util.BitSet(int nbits) on Harmony-r545749 MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org The following piece of code fails on Harmony-r545749, but passes on Harmony-r545092: import java.util.BitSet; public class bitsetTest { public static void main(String[] args) { BitSet bitset =3D null; try { bitset =3D new BitSet(Integer.MAX_VALUE); System.out.println("TEST PASSED"); } catch (OutOfMemoryError e) { System.out.println("TEST PASSED: " + e); } catch (Exception e) { System.out.println("TEST FAILED: " + e); } } } Output on Harmony-r546722: Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn =3D r546722, (Jun 13 2007), Windows/ia32/msvc 1310, debug build http://harmony.apache.org Max heap size: can't be reserved, reduced to 679 MB according to virtual memory limitation. TEST FAILED: java.lang.NegativeArraySizeException Output on Harmony-r545092 with =96Xmx300M: Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors,as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn =3D r545092, (Jun 7 2007), Windows/ia32/msvc 1310, release build http://harmony.apache.org The GC did not provide gc_add_weak_root_set_entry() TEST PASSED Possibly the following commit cause the regression. modified tellison /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/BitSe= t.java 06/07/2007 22:19:21 Apply modified patch for HARMONY-4051 ([classlib][luni] Performance improvement of java.util.BitSet) modified tellison /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/= util/BitSetTest.java 06/07/2007 22:19:21 Apply modified patch for HARMONY-4051 ([classlib][luni] Performance improvement of java.util.BitSet) added tellison /harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serializat= ion/tests/api/java/util/BitSetTest.golden.ser 06/07/2007 22:19:21 Apply modified patch for HARMONY-4051 ([classlib][luni] Performance improvement of java.util.BitSet) Could someone, please, take care of it? Thank you, Lena