Integrated: 8255697: LogTargetHandle::print should check if log level is enabled

Claes Redestad redestad at openjdk.java.net
Mon Nov 2 11:03:58 UTC 2020


On Fri, 30 Oct 2020 19:40:04 GMT, Claes Redestad <redestad 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.

This pull request has now been integrated.

Changeset: 79a010f7
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/79a010f7
Stats:     3 lines in 1 file changed: 2 ins; 0 del; 1 mod

8255697: LogTargetHandle::print should check if log level is enabled

Reviewed-by: stefank, tschatzl, stuefe

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

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


More information about the hotspot-runtime-dev mailing list