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

Access of mark word should use oopDesc::mark_offset_in_bytes() instead of '0'

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      generic
    • OS:
      generic

      Description

      In several places in Hotspot's assembly routines, we're using Address(obj, 0) to access the object's mark word. This is bad style and makes it very hard to find all the places where the mark word is used. It should use Address(obj, oopDesc::mark_offset_in_bytes()) instead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rkennke Roman Kennke
              Reporter:
              rkennke Roman Kennke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: