RFR: 8252049: Native memory leak in ciMethodData ctor [v3]

Vladimir Ivanov vlivanov at openjdk.java.net
Fri Dec 4 22:43:12 UTC 2020


On Sat, 28 Nov 2020 19:48:14 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> But does there really need to be a mutex per MDO? Would a single immortal
> mutex, shared by all MDOs, be adequate for this purpose? If not, maybe the
> trick used by ObjectMonitor(?) -- have a set of immortal mutexes and
> "randomly" choose one per MDO. This would also eliminate this part of the
> walk of metadata objects to release heap resources when dropping them. And
> it avoids constructing and destructing lots of mutexes (which isn't free,
> even if not heap managed).

Yes, I share the same concern about a mutex-per-MDO. Filed [JDK-8257756](https://bugs.openjdk.java.net/browse/JDK-8257756).

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

PR: https://git.openjdk.java.net/jdk/pull/1478


More information about the hotspot-compiler-dev mailing list