Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066745

tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • core-libs
    • b43
    • generic
    • windows

    Backports

      Description

        This tested failed with jdk9-dev nightly-b41-2014-12-03.

        Parts of test output:
        Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at com.sun.java.util.jar.pack.BandStructure.realloc(BandStructure.java:2743)
        at com.sun.java.util.jar.pack.BandStructure$ValueBand.setCapacity(BandStructure.java:533)
        at com.sun.java.util.jar.pack.BandStructure$ValueBand.addValue(BandStructure.java:568)
        at com.sun.java.util.jar.pack.BandStructure$IntBand.putInt(BandStructure.java:959)
        at com.sun.java.util.jar.pack.PackageWriter.writeUtf8Bands(PackageWriter.java:723)
        at com.sun.java.util.jar.pack.PackageWriter.writeConstantPool(PackageWriter.java:529)
        at com.sun.java.util.jar.pack.PackageWriter.write(PackageWriter.java:75)
        at com.sun.java.util.jar.pack.PackerImpl$DoPack.flushPackage(PackerImpl.java:584)
        at com.sun.java.util.jar.pack.PackerImpl$DoPack.flushAll(PackerImpl.java:538)
        at com.sun.java.util.jar.pack.PackerImpl$DoPack.run(PackerImpl.java:474)
        at com.sun.java.util.jar.pack.PackerImpl.pack(PackerImpl.java:97)
        at com.sun.java.util.jar.pack.Driver.main(Driver.java:313)
        ----------System.err:(15/764)----------
        java.lang.RuntimeException: process failed with non-zero exit
        at Utils.runExec(Utils.java:502)
        at Utils.runExec(Utils.java:463)
        at Pack200Props.verifySegmentLimit(Pack200Props.java:70)
        at Pack200Props.main(Pack200Props.java:53)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:776)

        Attachments

          Issue Links

            Activity

              People

                ksrini Kumar Srinivasan
                xiaofeya Xiaofeng Yang
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: