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

delay_to_keep_mmu passes wrong arguments to Monitor wait

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b23

      Description

      G1ConcurrentMarkThread::delay_to_keep_mmu locks the CGC_lock monitor using MonitorLocker, and does a wait on that MonitorLocker object. However, the arguments passed to wait include a second argument of Monitor::_no_safepoint_check_flag. Whether waits should be safepoint checking are determined by the MonitorLocker, not by the wait. The second argument to wait is bool as_suspend_equivalent, so this is actually a kind of type error that can't currently be detected by the compiler. The fix here is to just remove the second argument to wait.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: