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

ShenandoahAsserts::print_obj() does not work for forwarded objects and UseCompactObjectHeaders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25, 26
    • hotspot
    • gc

      Found while analyzing JDK-8361342:

      `ShenandoahAsserts::print_obj()` does not work for COH if the object is forwarded, since the mark word is overwritten with forwarding pointer.

      Depending on the size of the numerical address of the forwardee nKlass either appears to be zero, resulting in "assert(!is_null(v)) failed: narrow klass value can never be zero", or some garbage value if it overlaps with the nKlass bits, in which case we get a SIGSEGV.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: