Currently, MetaspaceArena locks on entry for all public functions. It locks on a lock given to it by the CLMS, which is ultimately the CLD metaspace lock.
Since MetaspaceArena is only used (outside of tests) by CLMS, it would be simpler were CLMS itself to synchronize instead of bothering its arenas. Many of the "xxx_locked()" function could be removed.
Since MetaspaceArena is only used (outside of tests) by CLMS, it would be simpler were CLMS itself to synchronize instead of bothering its arenas. Many of the "xxx_locked()" function could be removed.