This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12798] New: unlimited memory consumption with -O3
- From: "tneumann at pi3 dot informatik dot uni-mannheim dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2003 22:40:38 -0000
- Subject: [Bug java/12798] New: unlimited memory consumption with -O3
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12798
Summary: unlimited memory consumption with -O3
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tneumann at pi3 dot informatik dot uni-mannheim dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i586-suse-linux
The following code consumes an unlimited (or at least huge) ammount of memory
when compiled with gcj -c -O3 A.java. I highly recommend to use ulimit before
testing this...
class A
{
A[] a;
void foo() {
for (int i=0;i<256;i++) {
for (;i<256;++i)
a[i]=null;
}
}
}