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

Remove ThreadCritical

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • hotspot

      NMT has comments that it needs to use ThreadCritical for Chunk accounting, particularly if the Chunk is deleted. Instead of using ThreadCritical, which is another hand written pthread or windows implemented lock, use PlatformMutex. The ChunkPool is used before the current thread is created in many cases, so the ChunkPool lock needs to be a global PlatformMutex, and can't use the runtime Mutex interface that wraps PlatformMonitor with rank checking and other nice deadlock detection.

      This is the last use of ThreadCritical, so ThreadCritical can be removed.

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

              Created:
              Updated: