RFR: 8295278: Add parallel class loading tests [v2]

Andrey Turbanov aturbanov at openjdk.org
Fri Oct 14 19:14:23 UTC 2022


On Fri, 14 Oct 2022 12:37:23 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> I moved the ParallelLoad test to a subdirectory, and created a new one called CallLoadClass that calls loadClass directly and then waits on the ClassLoader object, while another thread calls forName() to go through the SystemDictionary resolution.
>> 
>> I also made dedicated tests out of the bugs reported in
>> [JDK-4699981](https://bugs.openjdk.org/browse/JDK-4699981) ClassCircularityError thrown without reason during class loading and
>> [JDK-4670071](https://bugs.openjdk.org/browse/JDK-4670071) java.lang.ClassLoader.loadClassInternal(String) is too restrictive
>> 
>> Tested with tier1 on Oracle platforms. These tests are run in tier1.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fix success test for loadClass case.

test/hotspot/jtreg/runtime/ParallelLoad/SuperWait/test-classes/A.java line 25:

> 23: 
> 24: // A extends B in other Class loader.
> 25: public class A  extends B {

Suggestion:

public class A extends B {

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

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


More information about the hotspot-runtime-dev mailing list