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

Implement a Multi-Reader Single-Writer mutex for Hotspot

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 20
    • hotspot

      Making a MRSW mutex available in Hotspot would allow for more diverse implementation options which may lessen our maintenance load.
      For example, in UL there is a lock-free linked list which is written to very seldomly when in production. It's fairly complex code and would be greatly simplified by being replaced with something wrapped around a MRSW mutex.

      This is especially relevant as ZGC has already implemented a Reader-Writer lock[0] that we can directly port.

      [0] https://github.com/openjdk/zgc/blob/zgc_generational/src/hotspot/share/gc/z/zJNICritical.cpp

            Unassigned Unassigned
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: