java.lang.OutOfMemoryError: Java heap space while bootstrapping OpenJDK

Ismail Dönmez ismail at pardus.org.tr
Sun Dec 9 19:17:41 UTC 2007


Sunday 09 December 2007 20:33:50 tarihinde Ismail Dönmez şunları yazmıştı:
> Sunday 09 December 2007 20:16:48 tarihinde Ismail Dönmez şunları yazmıştı:
> > Hi all,
> >
> > I cloned latest OpenJDK off HG forest tree. And I am using jdk 1.6 to
> > bootstrap, to be exact :
> >
> > [~/jdk7]> javac -version
> > javac 1.6.0_03
> >
> > All sanity tests passes but when I try make, I get :
>
> FWIW enlarging heapspace to 1000MB in common/shared/Defs-java.gmk via
>
> -Xmx1000m results in the same error.

And to answer to myself once again, attached patch fixes out of memory error 
but I got a nicer error now ;) :

=========================================================
/opt/sun-jdk/bin/javac -J-Xms512m -J-Xmx512m -sourcepath ../../../build/linux-i586/gensrc:../../../src/solaris/classes:../../../src/share/classes -d ../../../build/linux-i586/classes 
@../../../build/linux-i586/tmp/sun/java.awt/.classes.list
../../../src/share/classes/java/awt/image/DataBufferFloat.java:67: cannot find 
symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int)
location: class java.awt.image.DataBuffer
        super(STABLE, TYPE_FLOAT, size);
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:84: cannot find 
symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int,int)
location: class java.awt.image.DataBuffer
        super(STABLE, TYPE_FLOAT, size, numBanks);
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:109: cannot 
find symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int)
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_FLOAT, size);
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:135: cannot 
find symbol
symbol  : constructor 
DataBuffer(sun.java2d.StateTrackable.State,int,int,int,int)
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_FLOAT, size, 1, offset);
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:158: cannot 
find symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int,int)
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_FLOAT, size, dataArray.length);
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:182: cannot 
find symbol
symbol  : constructor 
DataBuffer(sun.java2d.StateTrackable.State,int,int,int,int[])
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_FLOAT, size,dataArray.length, offsets);
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:198: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.setUntrackable();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:214: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.setUntrackable();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:229: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.setUntrackable();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:273: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:288: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:331: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:346: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:389: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferFloat.java:404: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferFloat
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:67: cannot 
find symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int)
location: class java.awt.image.DataBuffer
        super(STABLE, TYPE_DOUBLE, size);
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:83: cannot 
find symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int,int)
location: class java.awt.image.DataBuffer
        super(STABLE, TYPE_DOUBLE, size, numBanks);
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:108: cannot 
find symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int)
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_DOUBLE, size);
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:133: cannot 
find symbol
symbol  : constructor 
DataBuffer(sun.java2d.StateTrackable.State,int,int,int,int)
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_DOUBLE, size, 1, offset);
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:156: cannot 
find symbol
symbol  : constructor DataBuffer(sun.java2d.StateTrackable.State,int,int,int)
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_DOUBLE, size, dataArray.length);
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:180: cannot 
find symbol
symbol  : constructor 
DataBuffer(sun.java2d.StateTrackable.State,int,int,int,int[])
location: class java.awt.image.DataBuffer
        super(UNTRACKABLE, TYPE_DOUBLE, size, dataArray.length, offsets);
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:196: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.setUntrackable();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:212: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.setUntrackable();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:227: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.setUntrackable();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:270: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:285: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:328: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:343: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:386: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.markDirty();
        ^
../../../src/share/classes/java/awt/image/DataBufferDouble.java:401: cannot 
find symbol
symbol  : variable theTrackable
location: class java.awt.image.DataBufferDouble
        theTrackable.markDirty();
        ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
30 errors
make[2]: *** [.compile.classlist] Error 1
make[2]: Leaving directory `/home/cartman/jdk7/jdk/make/java/awt'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/cartman/jdk7/jdk/make/java'
make: *** [all] Error 1
=========================================================

Ideas welcome.

-- 
Never learn by your mistakes, if you do you may never dare to try again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: heapsize.patch
Type: text/x-diff
Size: 381 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/build-dev/attachments/20071209/f9400287/heapsize.patch>


More information about the build-dev mailing list