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

Stop checking for duplicate packages in the JVM_DefineModule() package list

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      Currently, the JVM implementation of JVM_DefineModule(..., jobjectArray packages) checks that 'packages' does not contain any duplicates. For example, if 'packages' contained p1, p2, p1 then the JVM would detect the duplicate p1's and throw an IAE. Let's remove this check because it is potentially expensive and not that beneficial to the user. Instead, the JVM would just ignore any duplicates.

      The JVM would still check that the packages are not in any already defined module for the loader. This check would not change.

        Attachments

          Activity

            People

            Assignee:
            hseigel Harold Seigel
            Reporter:
            hseigel Harold Seigel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: