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

Alexey Pavlyutkin duke at openjdk.java.net
Tue Feb 8 03:34:53 UTC 2022


On Tue, 8 Feb 2022 02:27:26 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> The logging framework was intended to avoid these explicit if statements also.  It seems it could be refactored to duplicate the loops with logging, and not combine them with verification.
>
> The logging framework was also supposed to not introduce overhead if logging is not enabled, but that is not the case as has been discovered here. I prefer the `if` statements to duplicating the code to have one block with logging and one without.

fixed 34713cf

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

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


More information about the hotspot-runtime-dev mailing list