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

Concurrent checking in SystemDictionary::do_unloading() is racy and incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 12, 13.0.1
    • hotspot

      SystemDictionary::do_unloading() method checks if it is invoked concurrently, by checking if there is a safepoint in progress. However, it is racy and unsafe.

      If it is invoked by a concurrent GC thread, there may have a non-GC safepoint in progress, therefore, the answer is incorrect.

            coleenp Coleen Phillimore
            zgu Zhengyu Gu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: