-Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true
. This is done
automatically during build, see make/GenerateLinkOptData.gmk. See
build/tools/classlist/HelloClasslist.java for the training application.
HelloClasslist tries to reflect common use of java.lang.invoke during early
startup and warmup in various applications. To ensure a good default
trade-off between static footprint and startup the application should be
relatively conservative.
When using jlink to build a custom application runtime, generating a trace
file using -Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true
and
feeding that into jlink using --generate-jli-classes=@trace_file
can
help improve startup time.
Modifier and Type | Field and Description |
---|---|
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final String | |
private static final JavaLangInvokeAccess | |
private String | |
private Stream |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | configure(Map<String, String>
The plugin configuration. config)Overrides default jdk. |
private Stream | |
public Set | |
public boolean | hasArguments()
Overrides default jdk. |
public void | |
public ResourcePool | transform(ResourcePool
Read only content. in, ResourcePoolBuilder The pool to fill with content. This pool must contain
the result of the visit. out)Implements jdk. |
BASIC_FORMS_HOLDER_ENTRY | back to summary |
---|---|
private static final String BASIC_FORMS_HOLDER_ENTRY |
DEFAULT_TRACE_FILE | back to summary |
---|---|
private static final String DEFAULT_TRACE_FILE |
DELEGATING_METHOD_HOLDER_ENTRY | back to summary |
---|---|
private static final String DELEGATING_METHOD_HOLDER_ENTRY |
DIRECT_METHOD_HOLDER_ENTRY | back to summary |
---|---|
private static final String DIRECT_METHOD_HOLDER_ENTRY |
INVOKERS_HOLDER_ENTRY | back to summary |
---|---|
private static final String INVOKERS_HOLDER_ENTRY |
JLIA | back to summary |
---|---|
private static final JavaLangInvokeAccess JLIA |
mainArgument | back to summary |
---|---|
private String mainArgument |
traceFileStream | back to summary |
---|---|
private Stream<String> traceFileStream |
GenerateJLIClassesPlugin | back to summary |
---|---|
public GenerateJLIClassesPlugin() |
configure | back to summary |
---|---|
public void configure(Map<String, String> config) Overrides default jdk. Doc from jdk. Configure the plugin based on the passed configuration. This method is called prior to invoke the plugin. |
fileLines | back to summary |
---|---|
private Stream |
getState | back to summary |
---|---|
public Set Overrides default jdk. Doc from jdk. The Plugin set of states. |
hasArguments | back to summary |
---|---|
public boolean hasArguments() Overrides default jdk. Doc from jdk. Has this plugin require one or more arguments?
A plugin can have one or more optional arguments.
--plugin-option=arg_valueIf there are more than arguments, command line option looks like: --plugin-option=arg_value:arg2=value2:arg3=value3...
|
initialize | back to summary |
---|---|
public void initialize(ResourcePool in) |
transform | back to summary |
---|---|
public ResourcePool transform(ResourcePool in, ResourcePoolBuilder out) Implements jdk. Doc from jdk. Visit the content of the modules that are composing the image.
|