RFR: 8292697: ZGC: Hangs when almost out of metaspace memory

Coleen Phillimore coleenp at openjdk.org
Wed Aug 24 16:18:27 UTC 2022


On Wed, 24 Aug 2022 16:05:13 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> why did it need to be pulled out into a function?  It's just a small amount of code that either is a lambda inline or just code inline? I'm a massive fan of lambdas but I don't see the purpose here.
>
> I think code gets easier to read if you separate out the two concerns:
> 1) What is it you want to check
> 2) What is it you want to do if that happens
> 
> I find that stye of code easier to read, and easier to add precise comments to.

🤷  Fine, it's a matter of taste then.

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

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


More information about the hotspot-dev mailing list