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

Missing memory barriers in Parallel GC task time printing data handover

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • gc

      In GCTaskThread::run() there is the comment

      "Update the index after we have set up the entry correctly since GCTaskThread::print_task_time_stamps() may read this value concurrently".

      However, the following code neither adds compiler nor cpu barriers to actually enforce that.

      I.e. the thread printing the task time log messages for parallel gc (in GCTaskThread::print_task_time_stamps()) may print bogus or even corrupt values.

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: