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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 12, 13.0.1
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: