RFR: 8319797: Recursive lightweight locking: Runtime implementation [v6]

Coleen Phillimore coleenp at openjdk.org
Fri Jan 19 21:42:54 UTC 2024


On Fri, 19 Jan 2024 21:30:35 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Sure. They are generally tricky, you usually need to tell the compiler not to do stuff like eliding locks, and inline methods. I will attempt to write tests both for -Xint and the compiler that tests both recursive and normal full lock stack. (The recursive tests requires the platform to implement recursive lightweight for it to effectively test anything)
>
> I wrote a little test case just now.  Maybe deciding which object should cause inflation can be tuned with some benchmarking results if we find some degenerate case?  Maybe the top lock should be inflated since that might be the one that causes the stack to overflow?

In any case, maybe there should be a logging statement here for this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16606#discussion_r1459808523


More information about the hotspot-dev mailing list