JDK-8196194 : Test plan for JDK-8194759 Support caching class mirror objects
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-01-25
  • Updated: 2018-02-28
  • Resolved: 2018-02-28
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 11
11Fixed
Description
Tests Inventory
1. Existing tests
    open/test/hotspot/jtreg/runtime/SharedArchiveFile
    open/test/hotspot/jtreg/runtime/appcds
    open/test/hotspot/jtreg/runtime/appcds/cacheObject

    The existing tests in open/test/hotspot/jtreg/runtime/appcds/cacheObject contains functional tests for archiving object in open archive heap regions.

2. New tests
    Regression tests: None

    Functional tests
    1) Check well-known shared library classes should have cached mirror objects at runtime.
    2) Check shared application classes should have cached mirror objects at runtime
    3) Verify shared classes for user defined class loader do not have cached mirror objects

    4) Check static String fields with initial value in cached mirror should be also archived
    5) GC should not crash when reference fields in cached mirror are updated at runtime
         5.1) Reference fields are updated to point to runtime created objects
         5.2) Reference fields are nullified

    6) Verify class redefinition has no impact on cached mirror
        6.1) Check cached mirror after class redefinition
        6.2) No crash with GC

    7) Test primitive types via reflection and verify the primitive type mirrors are archived

    Stress tests

    JCK tests: no new tests

Test execution matrix
1. Tier 1 - Tier 6 tests via mach5

Success criteria
1. Test pass rate - at RDP-2 level of quality
2. Test stability - all new tests are stable
3. No native coverage test required
4. No measurable performance degradation




    
Comments
Test Plan approved by SQE.
09-02-2018