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

Add PackageEntry::locked_lookup_only

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b05

      Description

      There exists a PackageEntryTable::locked_create_entry_or_null that assumes Module_lock is held by the thread, but this calls PackageEntry::lookup_only which does MutexLockerEx ml(Module_lock->owned_by_self() ? NULL : Module_lock); -- accessing Module_lock->owned_by_self() repeatedly adds up to a measurable cost during startup.

      While making the code lock-free could ultimately be profitable, we could at least streamlined accesses so that we avoid unnecessary owned_by_self checks.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: