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

Check for the validity of oop before printing it in verify_remembered_set

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b110

      Backports

        Description

        The following change should be made in verify_remembered_set() in src/share/vm/gc/g1/heapRegion.cpp to protect against the crashes that can occur if the object (obj) in the 'to' region which is being printed here has been overwritten and is no longer a valid oop:

        739 _containing_obj->print_on(log.info_stream());
        740 log.info("points to obj " PTR_FORMAT " in region " HR_FORMAT, p2i(obj), HR_FORMAT_PARAMS(to));
        + if (obj->is_oop()) {
        741 obj->print_on(log.info_stream());
        + }
        742 log.info("Obj head CTE = %d, field CTE = %d.", cv_obj, cv_field);

          Issue Links

            Activity

            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/55fe28454251
            User: poonam
            Date: 2016-03-02 21:15:06 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/55fe28454251 User: poonam Date: 2016-03-02 21:15:06 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/55fe28454251
            User: lana
            Date: 2016-03-14 15:54:56 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/55fe28454251 User: lana Date: 2016-03-14 15:54:56 +0000

              People

              • Assignee:
                shshahma Shafi Ahmad
                Reporter:
                poonam Poonam Bajaj Parhar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: