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

XMLWordPrintable

    • b14
    • generic
    • linux

        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)

              Assignee:
              Yumin Qi
              Reporter:
              Dmitriy Samersoff
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: