ifdef out more CDS code

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: 20
    • Component/s: hotspot

      In JDK-8293046, I found that some CDS-only command-line flags are used in generic code even when CDS is disabled. E.g.,

      https://github.com/openjdk/jdk/blob/master/src/hotspot/share/runtime/arguments.cpp#L93

      size_t Arguments::_default_SharedBaseAddress = SharedBaseAddress;

      Such code should be placed inside #if INCLUDE_CDS blocks.

            Assignee:
            Matias Saavedra Silva
            Reporter:
            Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: