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

Make AbortVMOnVMOperationTimeout more resilient to OS scheduling

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 11.0.4, 17, 18
    • 18
    • hotspot
    • b10

    Description

      `AbortVMOnVMOperationTimeout` and `AbortVMOnVMOperationTimeoutDelay` can be used to catch long-running VM operations.

      Currently, a periodic task, `VMOperationTimeoutTask`, checks if timeout occurs. However, depending on the scheduling, it's possible that such checking misses the arm-disarm window. In other words, even when timeout does occur, abort might not happen.

      To remedy this, we can perform timeout checks on the VM thread right after VM operation is completed. This way, we will never miss timeouts.

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: