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

Replace MinObjectAlignmentSize usages for non-Java heap objects

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 18
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: