Integrated: 8289257: Some custom loader tests failed due to symbol refcount not decremented

Calvin Cheung ccheung at openjdk.org
Fri Jul 1 16:14:16 UTC 2022


On Thu, 30 Jun 2022 22:28:26 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> Removing the test for class loader name symbol refcount since similar test exists in runtime/ClassUnload/UnloadTest.java.
> 
> Tested locally on linux-x64 with ZGC. Running more tests via mach5.
> 
> An alternative approach would be adding a `WB.fullGC()` call after `ClassUnloadCommon.triggerUnloading()` as follows:
> 
> 
> --- a/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java
> +++ b/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java
> @@ -105,6 +105,7 @@ public class HelloUnload {
>  
>              urlClassLoader = null; c = null; o = null;
>              ClassUnloadCommon.triggerUnloading();
> +            wb.fullGC();
>              System.out.println("Is CustomLoadee alive? " + wb.isClassAlive(className));
>              ClassUnloadCommon.failIf(wb.isClassAlive(className), "should have been unloaded");

This pull request has now been integrated.

Changeset: c43bdf71
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c43bdf716596053ebe473c3b3bd5cf89482b9b01
Stats:     15 lines in 2 files changed: 0 ins; 14 del; 1 mod

8289257: Some custom loader tests failed due to symbol refcount not decremented

Reviewed-by: iklam, coleenp

-------------

PR: https://git.openjdk.org/jdk/pull/9340


More information about the hotspot-runtime-dev mailing list