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

Make ClassLoaderDataGraph linked list lock free

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 14
    • 14
    • hotspot

      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.

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

              Created:
              Updated:
              Resolved: