RFR: 8251158: Implementation of JEP 387: Elastic Metaspace [v11]

Thomas Stuefe stuefe at openjdk.java.net
Tue Oct 6 11:51:44 UTC 2020


On Tue, 6 Oct 2020 08:09:23 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

>> Good point. Lets do this in a follow-up though.
>
> Honestly, without this the optimization is questionable. Iterating the bits in `_mask` is like iterating the list
> heads. `is_empty()` can be easily optimized with a counter, but even this is questionable. The change is tiny and easy
> to test: just leave the while-loop as an assertion and run some class redefinition tests then remove the loop.  I'd
> object postponing it.

Okay. I had my doubt about this optimization too, as had Leo. I'll just scrap it altogether, this will make the code
more readable too.

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

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



More information about the hotspot-gc-dev mailing list