Integrated: 8340792: -XX:+PrintInterpreter: instructions should only be printed if printing all InterpreterCodelets

Richard Reingruber rrich at openjdk.org
Fri Oct 4 08:28:42 UTC 2024


On Tue, 24 Sep 2024 13:37:18 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> With `-XX:+PrintInterpreter` the instructions of the generated interpreter are printed at startup.
> 
> But also after startup when printing an interpreted frame the instructions of the corresponding `InterpreterCodelet` are also printed. This can become a problem with `-Xlog:continuations=trace` because large sections of the interpreter are printed repeatedly and redundantly.
> 
> With this change the instructions are only printed when printing all codelets, i.e. normally once at start-up.
> 
> I've tested with the reproducer from the JBS-Issue.

This pull request has now been integrated.

Changeset: a63ac5a6
Author:    Richard Reingruber <rrich at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a63ac5a699a5d40c76d14f94a502b8003753f4dd
Stats:     10 lines in 3 files changed: 7 ins; 0 del; 3 mod

8340792: -XX:+PrintInterpreter: instructions should only be printed if printing all InterpreterCodelets

Reviewed-by: mdoerr, coleenp

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

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


More information about the hotspot-compiler-dev mailing list