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

Make AbortVMOnVMOperationTimeout more resilient to OS scheduling

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11.0.4, 17, 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: