public class CompilerHints extends Object
Modifier and Type | Method and Description |
---|---|
static 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 files
|
static CompilerHints |
defaultList() |
static CompilerHints |
fromFile(String file) |
static CompilerHints |
fromResource(String resource) |
Set<String> |
get() |
static List<String> |
getCompileCommandFiles(List<String> command) |
protected List<Reader> |
getReaders()
Helper method for creating a Reader for the list file.
|
static String |
hintsFile() |
static void |
printBlackholeMode(PrintStream out) |
public static final String LIST
public static CompilerHints defaultList()
public static String hintsFile()
public static CompilerHints fromResource(String resource)
public static CompilerHints fromFile(String file)
public static List<String> getCompileCommandFiles(List<String> command)
command
- command arguments listpublic static void addCompilerHints(List<String> command)
This is a departure from default JVM behavior as the JVM would normally just take the last hints file and ignore the rest.
command
- all -XX:CompileCommandLine args will be removed and a merged file will be setpublic static void printBlackholeMode(PrintStream out)
Copyright © 2012–2020 Oracle. All rights reserved.