You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Elena Sayapina <sa...@gmail.com> on 2007/06/13 12:13:19 UTC
Regression in java.util.BitSet(int nbits) on Harmony-r545749
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 = null;
try {
bitset = 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 = 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 –Xmx300M:
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 = 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/BitSet.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/serialization/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
Re: Regression in java.util.BitSet(int nbits) on Harmony-r545749
Posted by Elena Sayapina <sa...@gmail.com>.
Thank you, Tim, Kelvin
The issue was eliminated.
Lena
2007/6/14, Elena Sayapina <sa...@gmail.com>:
> HARMONY-4147 was filed about this issue.
>
> Thank you, Lena
>
> 2007/6/13, Tim Ellison <t....@gmail.com>:
> > Thanks Elena -- please open a JIRA and we'll fix it there.
> >
> > Regards,
> > Tim
> >
> > Elena Sayapina wrote:
> > > 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 = null;
> > > try {
> > > bitset = 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 = 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 –Xmx300M:
> > >
> > > 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 = 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/BitSet.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/serialization/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
> > >
> >
>
Re: Regression in java.util.BitSet(int nbits) on Harmony-r545749
Posted by Elena Sayapina <sa...@gmail.com>.
HARMONY-4147 was filed about this issue.
Thank you, Lena
2007/6/13, Tim Ellison <t....@gmail.com>:
> Thanks Elena -- please open a JIRA and we'll fix it there.
>
> Regards,
> Tim
>
> Elena Sayapina wrote:
> > 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 = null;
> > try {
> > bitset = 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 = 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 –Xmx300M:
> >
> > 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 = 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/BitSet.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/serialization/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
> >
>
Re: Regression in java.util.BitSet(int nbits) on Harmony-r545749
Posted by Tim Ellison <t....@gmail.com>.
Thanks Elena -- please open a JIRA and we'll fix it there.
Regards,
Tim
Elena Sayapina wrote:
> 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 = null;
> try {
> bitset = 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 = 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 –Xmx300M:
>
> 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 = 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/BitSet.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/serialization/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
>