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

Add new flag for verifying the heap during startup

XMLWordPrintable

    • gc
    • b28

        As part of the code review comments for 8010463, it was suggested that the following code:

          assert (Universe::is_fully_initialized(), "not initialized");
          if (VerifyBeforeGC && VerifyGCStartAt == 0) {
            Universe::heap()->prepare_for_verify();
            Universe::verify(); // make sure we're starting with a clean slate

        that is executed during VM startup be changed so that the verification was done using a flag other than VerifyBeforeGC.

        It was also suggested to use a VM_Operation to verify the heap at this point during startup since certain parts of the verification are skipped if executed outside of a safepoint.

        This CR is to address those review comments.

              johnc John Cuthbertson
              johnc John Cuthbertson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: