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

Pad ObjectMonitor allocation size to cache line size

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: