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

Add support for fractional values of SafepointTimeoutDelay

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 21
    • hotspot
    • None
    • behavioral
    • minimal
    • The change of the flag type has no affect on any code currently setting the flag to a valid value.
    • add/remove/modify command line option
    • Implementation

      Summary

      Change the SafepointTimeoutDelay flag type to double so that it supports fractions of milliseconds.

      Problem

      The SafepointTimeoutDelay is useful for debugging issues with safepoint timeouts, but as an intx type only supports millisecond resolution. Finer resolution is required.

      Solution

      Change the type of the SafepointTimeoutDelay flag to double so that a fraction of a millisecond can be represented.

      Specification

      Change:

        product(intx, SafepointTimeoutDelay, 10000,                               \
                "Delay in milliseconds for option SafepointTimeout")              \
                range(0, max_intx LP64_ONLY(/MICROUNITS))                         \

      to

       product(double, SafepointTimeoutDelay, 10000,                             \
               "Delay in milliseconds for option SafepointTimeout; "             \
               "supports sub-millisecond resolution with fractional values.")    \
               range(0, max_jlongDouble LP64_ONLY(/MICROUNITS))                  \

            dholmes David Holmes
            dholmes David Holmes
            David Holmes, Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: