JDK-8230928 : [TESTBUG] Add hotspot tests for hidden classes and weak classes
Type:Sub-task
Component:hotspot
Sub-Component:runtime
Affected Version:repo-valhalla
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2019-09-12
Updated:2020-01-07
Resolved:2020-01-07
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.
This subtask is to audit the hotspot tests for Unsafe VM anonymous classes and determine if new tests should be developed to test the new `Lookup::defineHiddenClass` equivalent to those Unsafe VM anonymous class tests.
Comments
Fixed with this push:
Changeset: 3ff43480c2a2
Author: hseigel
Date: 2020-01-07 13:49 +0000
URL: https://hg.openjdk.java.net/valhalla/valhalla/rev/3ff43480c2a2
8230928: [TESTBUG] Add hotspot tests for hidden classes and weak classes
Summary: Add new tests adapted from unsafe anonymous class tests
Reviewed-by: fparain, mchung
+ test/hotspot/jtreg/runtime/HiddenClasses/CastToParentTest.java
+ test/hotspot/jtreg/runtime/HiddenClasses/GCHiddenClass.java
+ test/hotspot/jtreg/runtime/HiddenClasses/HiddenClassStack.java
+ test/hotspot/jtreg/runtime/HiddenClasses/HiddenDefMeths.java
+ test/hotspot/jtreg/runtime/HiddenClasses/HiddenGetModule.java
+ test/hotspot/jtreg/runtime/HiddenClasses/InstantiateHiddenClass.java
+ test/hotspot/jtreg/runtime/HiddenClasses/NestedHidden.java
+ test/hotspot/jtreg/runtime/HiddenClasses/StressHiddenClasses.java
+ test/hotspot/jtreg/runtime/HiddenClasses/TestHiddenClassUnloading.java
+ test/hotspot/jtreg/runtime/HiddenClasses/pkg/HasNamedModule.java