Package org.openjdk.jmh.runner
Class CompilerHints
java.lang.Object
org.openjdk.jmh.runner.CompilerHints
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCompilerHints
(List<String> command) We need to generate a compiler hints file such that it includes: No compile command files are specified and no .hotspotrc file is available, then do JMH hints only No compile command files are specified and .hotspotrc file is available, then do JMH hints + .hotspotrc 1 to N compile command files are specified, then do JMH hints + all specified hints in filesstatic CompilerHints
static CompilerHints
static CompilerHints
fromResource
(String resource) get()
getCompileCommandFiles
(List<String> command) Helper method for creating a Reader for the list file.static String
static void
printHints
(PrintStream out) static void
printWarnings
(PrintStream out)
-
Field Details
-
LIST
- See Also:
-
-
Method Details
-
defaultList
-
hintsFile
-
fromResource
-
fromFile
-
compilerHintsSelect
-
get
-
getCompileCommandFiles
- Parameters:
command
- command arguments list- Returns:
- the compiler hint files specified by the command
-
addCompilerHints
We need to generate a compiler hints file such that it includes:- No compile command files are specified and no .hotspotrc file is available, then do JMH hints only
- No compile command files are specified and .hotspotrc file is available, then do JMH hints + .hotspotrc
- 1 to N compile command files are specified, then do JMH hints + all specified hints in files
This is a departure from default JVM behavior as the JVM would normally just take the last hints file and ignore the rest.
- Parameters:
command
- all -XX:CompileCommandLine args will be removed and a merged file will be set
-
printHints
-
printWarnings
-
getReaders
Helper method for creating a Reader for the list file.- Returns:
- a correct Reader instance
-