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

Add PackageEntry::locked_lookup_only

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • hotspot
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: