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

[lworld] We should preserve the markWord for all GCs

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • repo-valhalla
    • hotspot
    • None
    • gc

      JDK-8368875 saw that we had to preserve the markWord for ParallelGC. This issue represents an investigation into whether this is necessary for other GCs, and to take action if that is the case.

      Original investigative prompt:
      Preserving the markWord only doesn't work for Serial GC, if changing oopDesc::init_mark() to not look in the Klass header for the prototype_header, but does work for the other GCs, and fixes the linked bug JDK-8368875 for ParallelGC. Since in ParallelGC it's unsafe to look at the klass() pointer in MoveAndUpdateClosure::do_addr().

            phubner Paul Hübner
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: