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

Kim Barrett kbarrett at openjdk.org
Thu Aug 18 14:46:14 UTC 2022


On Wed, 17 Aug 2022 13:14:34 GMT, David Holmes <dholmes at openjdk.org> wrote:

> > For what it's worth, C++ Standard Library uses "mutex" to refer to an object that gets locked, and uses "lock" to refer to an RAII object that locks a "mutex".
> 
> So their "lock" would be our MutexLocker? The far more dominant terminology is that a mutex is a lock.

Depends on which community.  I think the C++ convention makes a lot of sense,
esp. given the RAII approach to locking.

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

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


More information about the hotspot-runtime-dev mailing list