-XX:CompileOnly command: how should it look like?
Vladimir Kozlov
vladimir.kozlov at oracle.com
Fri Oct 12 16:00:08 PDT 2012
From what I remember originally we only accepted format ("," on command line to
separate method and " " in .hotspot_compiler file):
/c1/c2/c3,m
Then Tom added next format to match PrintCompilation output:
c1.c2.c3::m
Vladimir
Vladimir Ivanov wrote:
> Hi,
>
> Are there any requirements on how -XX:CompileOnly command should look
> like? It's comma-separated list of class/method patterns, but pattern
> format differs from what is used in -XX:CompileCommand/XX:CompilerOracle.
>
> Moreover, code in CompilerOracle::parse_compile_only is broken.
>
> For example:
> $ java -XX:+PrintVMOptions -XX:CompileOnly=p1.c ...
> VM option '+PrintVMOptions'
> VM option 'CompileOnly=p1.c'
> CompileOnly: compileonly *p1*.c
>
> vs
>
> $ java -XX:+PrintVMOptions -XX:CompileOnly=p1.c,c1::m ...
> VM option '+PrintVMOptions'
> VM option 'CompileOnly=p1.c,c1::m'
> CompileOnly: compileonly p1/c*.*
> CompileOnly: compileonly *c1*.m
>
> I want to fix it, but also make it compliant with other compiler control
> options. What I want to understand is whether such change in format is
> safe.
>
> Best regards,
> Vladimir Ivanov
More information about the hotspot-compiler-dev
mailing list