RFR: 8291714: Implement a Multi-Reader Single-Writer mutex for Hotspot [v5]

Johan Sjölén duke at openjdk.org
Mon Aug 29 08:47:31 UTC 2022


> May I please have a review for this PR which implements a `MRWMutex` class for Hotspot?
> 
> This PR does 3 things:
> 
> * Adds a port of ZGC's MRSW mutex (see [0]) to Hotspot
> * Adds some new utilities for writing multi-threaded tests.
> * Adds some tests for MRSW Mutex using these new utilities
> 
> The ticket has some comments which might be worth checking out: https://bugs.openjdk.org/browse/JDK-8291714
> 
> [0] Original source code here: https://github.com/openjdk/zgc/blob/zgc_generational/src/hotspot/share/gc/z/zJNICritical.cpp

Johan Sjölén has updated the pull request incrementally with one additional commit since the last revision:

  Review comments

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/9838/files
  - new: https://git.openjdk.org/jdk/pull/9838/files/da53eaa2..5bb6a520

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9838&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9838&range=03-04

  Stats: 64 lines in 3 files changed: 22 ins; 21 del; 21 mod
  Patch: https://git.openjdk.org/jdk/pull/9838.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9838/head:pull/9838

PR: https://git.openjdk.org/jdk/pull/9838


More information about the hotspot-dev mailing list