Unsafe use of long in VMThread::setup_periodic_safepoint_if_needed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 19
    • Component/s: 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.

            Assignee:
            Afshin Zafari
            Reporter:
            Evgeny Astigeevich
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: