RFR: 8204165: Filter out tests requiring class unloading when ClassUnloading is disabled

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Thu May 31 12:35:42 UTC 2018


If  you look for ClassUnloadCommon, there are a couple others.  It would 
be good to have these tagged as well, even though the last one tests two 
things.

runtime/appcds/customLoader/UnloadUnregisteredLoaderTest.java
runtime/appcds/customLoader/test-classes/UnloadUnregisteredLoader.java
runtime/logging/LoaderConstraintsTest.java
runtime/BadObjectClass/TestUnloadClassError.java

If you look for triggerUnloading there are more: e.g. 
vmTestbase/metaspace/stressHierarchy.  I assume they pass without class 
unloading though.

Thanks,
Coleen


On 5/31/18 8:01 AM, Stefan Karlsson wrote:
> Hi all,
>
> Please review this patch to annotate jtreg tests that require 
> ClassUnloading with @requires vm.opt.final.ClassUnloading.
>
> http://cr.openjdk.java.net/~stefank/8204165/webrev.01/
> https://bugs.openjdk.java.net/browse/JDK-8204165
>
> This @requires tag will filter out these tests when run with 
> -XX:-ClassUnloading or when run with GC that doesn't support class 
> unloading.
>
> For the discussion around the introduction of the vm.opt.final tags, 
> see: 
> http://mail.openjdk.java.net/pipermail/hotspot-dev/2018-May/032586.html
>
> Thanks,
> StefanK



More information about the hotspot-dev mailing list