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

Coarsen locking in Modules::add_module_exports

    XMLWordPrintable

Details

    • b17

    Description

      In:

      Modules::add_module_exports
      Modules::add_module_exports_qualified
      Modules::add_module_exports_to_all_unnamed

      We first lookup a PackageEntry - taking and releasing Module_lock - to then, after some trivial checks - take the Module_lock again.

      Coarsening the locking so we only take the mutex once per call brings a small improvement to bootstrap (reduction of ~200-250k instructions)

      Attachments

        Activity

          People

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: