RFR: 8281195: Mistakenly used logging causes significant overhead in interpreter [v2]

Alexey Pavlyutkin duke at openjdk.java.net
Mon Feb 7 17:54:06 UTC 2022


On Mon, 7 Feb 2022 17:21:18 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Yes, you're right, there are many ways to say the same. Log(...)::trace() returns exactly the object represented by `log` variable.
>
> Or even:
> 
> 
> LogStreamHandle(Trace, interpreter, oopmap) st;

`LogStream(Log(Trace, interpreter, oopmap)::trace)` looks as the best alternative cuz it does not use confusing "implementation" or "handle" but only public "interfaces"

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

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


More information about the hotspot-runtime-dev mailing list