Strengthen requirements to call G1HeapVerifier::verify(VerifyOption)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 16
    • Component/s: hotspot
    • gc
    • b28

      G1HeapVerifier::verify() seems to miss a return:

      void G1HeapVerifier::verify(VerifyOption vo) {
        if (!SafepointSynchronize::is_at_safepoint()) {
          log_info(gc, verify)("Skipping verification. Not at safepoint.");
          // here?
        }
        assert(Thread::current()->is_VM_thread(),
               "Expected to be executed serially by the VM thread at this point");

      Found by [~stefank] during discussion of JDK-8256641.

      This seems to be the case since initial import of that file.

            Assignee:
            Thomas Schatzl
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: