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

Remove obsolete CDS check in Reflection::verify_class_access()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • hotspot
    • b11

      This check seems to be obsolete, as module information is now available even during -Xshare:dump

      https://github.com/openjdk/jdk/blame/fe0ccdf5f8a5559a608d2e2cd2b6aecbe245c5ec/src/hotspot/share/runtime/reflection.cpp#L460-L465

          // Ignore modules for DumpSharedSpaces because we do not have any package
          // or module information for modules other than java.base.
          if (DumpSharedSpaces) {
            return ACCESS_OK;
          }

            ccheung Calvin Cheung
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: