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

revisit ObjectMonitor padding between fields

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      [~rehn] mentioned this RFE during the JDK-8253064 review:

       src/hotspot/share/runtime/objectMonitor.hpp
        DEFINE_PAD_MINUS_SIZE(0, OM_CACHE_LINE_SIZE, sizeof(volatile markWord) +
                              sizeof(WeakHandle) + sizeof(AllocationState));
                              sizeof(WeakHandle));
        // Used by async deflation as a marker in the _owner field:


      I have test with and without padding, I saw no difference.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: