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

Make AbortVMOnVMOperationTimeout more resilient to OS scheduling

XMLWordPrintable

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

      `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.

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

              Created:
              Updated:
              Resolved: