Skip to content

Commit 09df29f

Browse files
committed
Update docs
1 parent 5f24943 commit 09df29f

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ public static long getTearDownFailureNanos() {
913913
@Option(help = "file:doc-files/NeverInlineHelp.txt", type = OptionType.Debug)//
914914
public static final HostedOptionKey<AccumulatingLocatableMultiOptionValue.Strings> NeverInline = new HostedOptionKey<>(AccumulatingLocatableMultiOptionValue.Strings.build());
915915

916-
@Option(help = "Never trivially inline provided methods. Uses the same method pattern syntax as the 'NeverInline' option.")//
916+
@Option(help = "file:doc-files/NeverInlineTrivialHelp.txt")//
917917
public static final HostedOptionKey<AccumulatingLocatableMultiOptionValue.Strings> NeverInlineTrivial = new HostedOptionKey<>(AccumulatingLocatableMultiOptionValue.Strings.build());
918918

919919
@Option(help = "Maximum number of nodes in a method so that it is considered trivial.")//
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Pattern for disabling trivial inlining of methods during image generation.
2+
The syntax for a pattern is:
3+
4+
SourcePatterns = SourcePattern ["," SourcePatterns] .
5+
SourcePattern = [ Class "." ] method [ "(" [ Parameter { ";" Parameter } ] ")" ] .
6+
Parameter = Class | "int" | "long" | "float" | "double" | "short" | "char" | "boolean" .
7+
Class = { package "." } class .
8+
9+
Glob pattern matching (*, ?) is allowed in all parts of the source pattern.
10+
11+
Examples of method filters:
12+
---------
13+
visit(Argument;BlockScope)
14+
15+
Matches all methods named "visit", with the first parameter of
16+
type "Argument", and the second parameter of type "BlockScope".
17+
The packages of the parameter types are irrelevant.
18+
---------
19+
arraycopy(Object;;;;)
20+
21+
Matches all methods named "arraycopy", with the first parameter
22+
of type "Object", and four more parameters of any type. The
23+
packages of the parameter types are irrelevant.
24+
---------
25+
jdk.graal.compiler.core.graph.PostOrderNodeIterator.*
26+
27+
Matches all methods in the class "jdk.graal.compiler.core.graph.PostOrderNodeIterator".
28+
---------
29+
*
30+
31+
Matches all methods in all classes
32+
---------
33+
jdk.graal.compiler.core.graph.*.visit
34+
35+
Matches all methods named "visit" in classes in the package
36+
"jdk.graal.compiler.core.graph".
37+
---------
38+
arraycopy,toString
39+
40+
Matches all methods named "arraycopy" or "toString", meaning that ',' acts as an or operator.

0 commit comments

Comments
 (0)