JDK-8265694 : Investigate test StressHiddenClasses.java
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-21
  • Updated: 2021-05-20
  • Resolved: 2021-05-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b23Fixed
Related Reports
Relates :  
Relates :  
Description
Investigate test runtime/HiddenClasses/StressHiddenClasses.java to see if it can improved or perhaps just deleted.  Currently, the test does the following 40,000 times.  It creates a thread and waits for it to terminate.  The thread defines a hidden class and exits.

Perhaps the test should be changed to run the threads in parallel instead of sequentially.
Comments
Changeset: 16ca370f Author: Harold Seigel <hseigel@openjdk.org> Date: 2021-05-14 14:52:37 +0000 URL: https://git.openjdk.java.net/jdk/commit/16ca370f1ac933a6aef49bd147d985e66b4c8930
14-05-2021

[~hseigel] There was only minor change made after the initial addition of this test [1]. I believe this is a much simplified version of StressClassLoadingTest.java. I would recommend as part of JDK-8243287, the existing regression tests for VM anonymous classes should be converted to use `Lookup::defineHiddenClass` where appropriate. StressHiddenClasses can be removed. [1] http://hg.openjdk.java.net/valhalla/valhalla/rev/3ff43480c2a2
28-04-2021