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

Unsafe use of long in VMThread::setup_periodic_safepoint_if_needed

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: