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

Replace MinObjectAlignmentSize usages for non-Java heap objects

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 17
    • hotspot
    • None
    • b06

      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.

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

              Created:
              Updated:
              Resolved: