Add PackageEntry::locked_lookup_only

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: hotspot
    • b05

      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.

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

              Created:
              Updated:
              Resolved: