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

Merge VM_PrintJNI and VM_PrintThreads and remove the unused field 'is_deadlock' of DeadlockCycle

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b03

      Description

      Most users use `jstack <pid>` or `kill -3 <pid>` to capture the thread information
      This patch merge VM_PrintThreads, VM_PrintJNI, VM_FindDeadlocks into on VM_ExtendedPrintThreads

      pros:
      1. reduce the overhead of entering and exiting safepoint
      2. ensure the consistency of the results of VM_PrintThreads and VM_FindDeadlocks

      cons:
      1. maximum continuous pause time will increase

      After some discussion, We finally decided to merge only VM_PrintJNI and VM_PrintThreads operations. See review comments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ddong Denghui Dong
              Reporter:
              ddong Denghui Dong
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: