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

Make ClassLoaderDataGraph linked list lock free

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 14
    • Fix Version/s: 14
    • Component/s: hotspot

      Description

      It's a single linked list, so should be able to be made lock free. This would have prevented a lot of bugs that we've seen with trying to take this lock during a safepoint by a GC thread and with safepoint locking with non-gc threads.

      The reason for the lock was because performance wasn't critical, but removing it would avoid certain potential deadlocks.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: