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

The fixup_module_list must be protected by Module_lock when inserting new entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b139

      Description

      In java_lang_Class::create_mirror(), prior to java.base being defined, all class' mirrors are put onto the fixup_module_list. This allows their module fields to later be patched once java.base is defined to the VM and its java.lang.reflect.Module is known.

      Since java_lang_Class::create_mirror() is multi-threaded during startup, the insertion of mirrors into the fixup_module_list must be protected by Module_lock.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lfoltan Lois Foltan
              Reporter:
              lfoltan Lois Foltan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: