From 84bc4767a4cd68fb52a36c6644bbec67c24b0e1d Mon Sep 17 00:00:00 2001 From: Volker Simonis Date: Fri, 19 Jul 2024 11:26:44 +0000 Subject: [PATCH] 8336258: Document the behavior of 'exclude' and 'compileonly' with respect to inlining Reviewed-by: thartmann, jkarthikeyan --- src/hotspot/share/compiler/compilerOracle.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hotspot/share/compiler/compilerOracle.cpp b/src/hotspot/share/compiler/compilerOracle.cpp index a81d60c9fc4..d0479f3fdbb 100644 --- a/src/hotspot/share/compiler/compilerOracle.cpp +++ b/src/hotspot/share/compiler/compilerOracle.cpp @@ -637,6 +637,10 @@ static void usage() { tty->print_cr("and 'compileonly'. There is no priority of commands. Applying (a subset of) these"); tty->print_cr("commands to the same method results in undefined behavior."); tty->cr(); + tty->print_cr("The 'exclude' command excludes methods from top-level compilations as well as"); + tty->print_cr("from inlining, whereas the 'compileonly' command only excludes methods from"); + tty->print_cr("top-level compilations (i.e. they can still be inlined into other compilation units)."); + tty->cr(); }; static int skip_whitespace(char* &line) {