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

delay_to_keep_mmu passes wrong arguments to Monitor wait

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 16
    • 16
    • hotspot
    • gc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: