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

add ALT_JDK_IMAGE_DIR and improve test_jdk

    Details

    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        I'd like to add the possibility to specify JDK_IMAGE_DIR via ALT_JDK_IMAGE_DIR. This is very helpful during development since it's possible to copy a JDK into a specified directory and export different VM builds to the same JDK. Doing this you don't have to change any paths (or command line arguments) but use the same java command, e.g.:

        $ make copy_product_jdk ALT_JDK_IMAGE_DIR=/foo/jdk
        $ make jvmg export_debug ALT_EXPORT_DIR=/foo/jdk

        And after all your bugs are fixed do a product build, export that and use the same java command:

        $ make product export_product ALT_EXPORT_DIR=/foo/jdk

        The changes for test_jdk make sure that the right VM is tested. This might not be the case when you are doing 64-bit builds on Solaris, export the VM and do a test_jdk:

        $ make test_jdk LP64=1
        INFO: no objcopy cmd found so cannot create .debuginfo files.
        /export/twisti/build/hsx/hotspot-comp/hotspot/build/jdk-solaris/bin/java -server -version
        java version "1.8.0-ea"
        Java(TM) SE Runtime Environment (build 1.8.0-ea-b24)
        Java HotSpot(TM) Server VM (build 23.0-b12, mixed mode)

        What you actually want is to run the just-built 64-bit VM, like:

        $ make test_jdk LP64=1
        INFO: no objcopy cmd found so cannot create .debuginfo files.
        /export/twisti/build/hsx/hotspot-comp/hotspot/build/jdk-solaris/bin/java -d64 -server -Xinternalversion
        Java HotSpot(TM) 64-Bit Server VM (23.0-b15-internal-jvmg) for solaris-amd64 JRE (1.8.0), built on Feb 8 2012 04:26:02 by "ct232829" with Sun Studio 12u1
        /export/twisti/build/hsx/hotspot-comp/hotspot/build/jdk-solaris/bin/java -d64 -server -version
        java version "1.8.0-ea"
        Java(TM) SE Runtime Environment (build 1.8.0-ea-b24)
        Java HotSpot(TM) 64-Bit Server VM (build 23.0-b15-internal-jvmg, mixed mode)

        I also added printing -Xinternalversion to test_jdk. This makes it easier to verify the installed VM is the one you just built (and want to test).

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  twisti Christian Thalinger
                  Reporter:
                  twisti Christian Thalinger
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: