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

Replace MinObjectAlignmentSize usages for non-Java heap objects

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b06

      Description

      MinObjectAlignmentSize and its derived "constants", describe the alignment of Java objects on the heap. The value can be used to increase the alignment, to free up more least-significant-bits in object pointers, which allows for larger memory ranges for compressed oops.

      One usage of LogMinObjAlignmentInBytes was introduced to Symbol::identity_hash() with JDK-8087143.

      In a pull request for JDK-8266642, similar code is suggested for the ClassLoaderData.

      I think we should stop using LogMinObjAlignmentInBytes for C++ objects.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: