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

Generation of classlists at build time should be configurable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b121
    • CPU:
      generic
    • OS:
      generic

      Description

      After JDK-8150044 classlists get generated at build-time. It uses the -Xshare:dump switch for doing this, but that option is not supported for all JVM variants. There should be a configure option to disable this.

      This currently breaks JDK 9 image builds using the Zero JVM variant:
      Generating lib/classlist
      /home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/interim-image/bin/java -XX:DumpLoadedClassList=/home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/classlist/classlist.tmp \
          -cp /home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/classlist.jar \
          build.tools.classlist.HelloClasslist 2>&1
      hello
      world!
      from:
      localhost/127.0.0.1
      May 19, 2016 2:51:40 PM build.tools.classlist.HelloClasslist main
      INFO: New Date: 2016-05-19T12:51:40.73984 - old: 2016 May 19

      /home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/interim-image/bin/java -XX:DumpLoadedClassList=/home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/classlist/classlist \
          -Xshare:dump -XX:SharedClassListFile=/home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/classlist/classlist.tmp 2>&1
      Error occurred during initialization of VM
      Cannot dump shared archive when UseCompressedOops or UseCompressedClassPointers is off.
      GenerateClasslist.gmk:60: recipe for target '/home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/classlist/classlist' failed
      gmake[3]: *** [/home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/build/linux-x86_64-normal-zero-release/support/classlist/classlist] Error 1
      gmake[3]: Leaving directory '/home/sgehwolf/Documents/openjdk/upstream-sources/openjdk9-hs-pristine/jdk/make'
      make/Main.gmk:373: recipe for target 'generate-classlist' failed
      gmake[2]: *** [generate-classlist] Error 1
      gmake[2]: *** Waiting for unfinished jobs....

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                erikj Erik Joelsson
                Reporter:
                sgehwolf Severin Gehwolf
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: