-Xcomp test time regressions?

Aleksey Shipilev shade at redhat.com
Mon Jun 28 13:49:09 UTC 2021

Hi David,

On 6/28/21 3:18 PM, David Holmes wrote:
> Did we use to handle the TEST_VM_OPTS differently, such that it didn't
> apply to the javac part?

Looking at test history, I think -Xcomp always applied to javac, but now -Xcomp is slower itself, 
and it shows. See below.

>> Before I go and bisect this more thoroughly, is this an already known
>> thing?


Yes, it is a known thing:

So maybe we should attack it from a different angle: somehow ask jtreg to invoke javac without 
additional JVM options, so we don't spend significant time -Xcomp-ing javac itself. I tried to add 
"@build <testname>" to the exemplar test, but it is still compiled with -Xcomp. Either way, even if 
that worked, it would be awkward to add to every test out there.

jtreg docs say that -vmoption is used when compiling and running classes. I cannot find the option 
that could provide different VM options to compiling and running classes. Adding one might make sense?


More information about the jdk-dev mailing list