Class CompilerHints
java.lang.Object
org.openjdk.jmh.runner.AbstractResourceReader
org.openjdk.jmh.runner.CompilerHints
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumprivate static enum -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final String(package private) static final boolean(package private) static final boolean(package private) static final Stringprivate static CompilerHints.BlackholeModeprivate static CompilerHints.BlackholeSelectprivate static CompilerHints(package private) static final String[]private static String(package private) static final Stringstatic final String(package private) static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCompilerHints(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 filesprivate static CompilerHints.BlackholeModeprivate static CompilerHints.BlackholeSelectprivate static booleanprivate static voidstatic CompilerHintsstatic CompilerHintsstatic CompilerHintsfromResource(String resource) get()getCompileCommandFiles(List<String> command) static Stringprivate static booleanFIXME (low priority): check if supplied JVM is hint compatible.private static StringmergeHintFiles(List<String> compileCommandFiles) static voidstatic voidprintWarnings(PrintStream out) read()private static voidremoveCompileCommandFiles(List<String> command, List<String> compileCommandFiles) Methods inherited from class AbstractResourceReader
getReaders
-
Field Details
-
LIST
- See Also:
-
HINT_COMPATIBLE_JVMS
-
JVM_ZING
- See Also:
-
defaultList
-
hintsFile
-
hints
-
XX_COMPILE_COMMAND_FILE
- See Also:
-
BLACKHOLE_MODE_NAME
- See Also:
-
BLACKHOLE_AUTODETECT_NAME
- See Also:
-
BLACKHOLE_DEBUG_NAME
- See Also:
-
BLACKHOLE_MODE_AUTODETECT
static final boolean BLACKHOLE_MODE_AUTODETECT -
BLACKHOLE_MODE_DEBUG
static final boolean BLACKHOLE_MODE_DEBUG -
blackholeMode
-
blackholeSelect
-
-
Constructor Details
-
CompilerHints
-
-
Method Details
-
defaultList
-
hintsFile
-
fromResource
-
fromFile
-
isHintCompatibleVM
private static boolean isHintCompatibleVM()FIXME (low priority): check if supplied JVM is hint compatible. This test is applied to the Runner VM, not the Forked and may therefore be wrong if the forked VM is not the same JVM -
get
-
read
-
getCompileCommandFiles
-
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
-
removeCompileCommandFiles
-
mergeHintFiles
-
blackholeMode
-
blackholeSelect
-
compilerBlackholesAvailable
private static boolean compilerBlackholesAvailable() -
debug
-
printBlackhole
-
printWarnings
-