RFR: 8255697: LogTargetHandle::print should check if log level is enabled
Claes Redestad
redestad at openjdk.java.net
Mon Nov 2 11:03:56 UTC 2020
On Mon, 2 Nov 2020 07:37:03 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
>> An early check in LogTargetHandle::print like this can reduce overhead by not dropping into code that initialize LogDecorations et.c. This saves around 100k instructions on VM bootstrap, and can reduce cost of not logging in a few places.
>
> Marked as reviewed by tschatzl (Reviewer).
@tschatzl @stefank @tstuefe - thank you for reviewing!
-------------
PR: https://git.openjdk.java.net/jdk/pull/964
More information about the hotspot-runtime-dev
mailing list