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

Unsafe use of long in VMThread::setup_periodic_safepoint_if_needed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19
    • hotspot
    • b27

      In VMThread::setup_periodic_safepoint_if_needed there is an unsafe use of long:

      long interval_ms = SafepointTracing::time_since_last_safepoint_ms();

      because SafepointTracing::time_since_last_safepoint_ms returns jlong which can be bigger than long.

            azafari Afshin Zafari
            eastigeevich Evgeny Astigeevich
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: