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

CDS archive with 4K alignment unusable on machines with 64k pages

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      generic
    • OS:
      linux

      Description

      If you build JDK on a machime with 4k pages, and then move it to machine with 64k pages, java will not start (see below).

      The problem goes away if you rebuild CDS archive.

      *This bug has signisficant impact to development process.*

      Running a simple java -version results:

      ./jdk/bin/java -version

      [0.015s][error][cds] Unable to map CDS archive -- os::vm_allocation_granularity() expected: 4096 actual: 65536


      openjdk version "14-internal"

      OpenJDK Runtime Environment (build 14-internal+0-adhoc.jenkins.jdk-dev-nightly)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iklam Ioi Lam
                Reporter:
                dsamersoff Dmitriy Samersoff
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: