|
| 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