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

Pad ObjectMonitor allocation size to cache line size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P4
    • tbd
    • 19
    • hotspot
    • None

    Description

      See discussion under [1].

      Since the libc malloc allocator may place ObjectMonitor instances adjacent to each other, we should pad the size of ObjectMonitor to fill a whole cache line to prevent false sharing between adjacent OMs.

      [1] https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2022-March/054187.html

      Attachments

        Issue Links

          Activity

            People

              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: