RFR(L) : 8199370: [TESTBUG] Open source vm testbase GC tests

Erik Helin erik.helin at oracle.com
Mon May 14 11:23:43 UTC 2018

On 05/08/2018 12:35 AM, Igor Ignatyev wrote:
> Hi all,

Hi Igor,

On 05/08/2018 12:35 AM, Igor Ignatyev wrote:
> could you please review the patch which open sources GC tests from vm testbase? it introduces the following test groups:
> - vmTestbase_vm_g1classunloading
> - vmTestbase_vm_gc_compact
> - vmTestbase_vm_gc_concurrent
> - vmTestbase_vm_gc_container
> - vmTestbase_vm_gc_juggle
> - vmTestbase_vm_gc_locker
> - vmTestbase_vm_gc_ref
> - vmTestbase_vm_gc_misc

This is a very welcome, and pretty massive, change :) I won't be able to 
read through each test, there are simple too many, but I can sample a 
few of them and have a look.

On 05/08/2018 12:35 AM, Igor Ignatyev wrote:
> As usually w/ VM testbase code, these tests are old, they have been run in hotspot testing for a long period of time. Originally, these tests were run by a test harness different from jtreg and had different build and execution schemes, some parts couldn't be easily translated to jtreg, so tests might have actions or pieces of code which look weird. In a long term, we are planning to rework them.

I'm also assuming that to help the open sourcing of these tests, most 
comments will likely be deferred until later? If so, that is fine with me.

On 05/08/2018 12:35 AM, Igor Ignatyev wrote:
> JBS: https://bugs.openjdk.java.net/browse/JDK-8199370
> webrev: http://cr.openjdk.java.net/~iignatyev/8199370/webrev.00/index.html

Many of the tests are a bit cryptic, but that can be refactored later. 
Could you please file bugs for the two tests written in shell? 
Particularly parOld/test.sh should be trivial to rewrite in Java.

It seems like a lot of tests contains a TEST.properties file with the 
content `exclusiveAccess.dirs=.`. Could this become the default value 
somewhere, so we don't need all those TEST.properties files?


> Thanks,
> -- Igor

More information about the hotspot-gc-dev mailing list