Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202035 Archive the set of ModuleDescriptor and ModuleReference objects for observable system modules with unnamed initial module
  3. JDK-8205500

Test plan for JDK-8202035 Archive the set of ModuleDescriptor and ModuleReference objects for observable system modules

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • 12
    • 12
    • hotspot

      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 including mirrors in open archive heap regions.

      2. New tests
          Regression tests: None

          Functional tests
          1) Dump without --module-path. Verify archived system module sub-graph is used at runtime when only -cp is used. Check archived system ModuleDescriptor objects are used at runtime.

          2) Dump without --module-path. Verify archived system module sub-graph is not used when running with --module-path. Check system ModuleDescriptor objects are not from archive at runtime.

          3) Dump with --module-path. Verify archived system module sub-graph is not used at runtime when only -cp is used. Verify no archived system ModuleDescriptor objects at runtime.

          4) Dump with --module-path. Verify archived system module sub-graph is not used at runtime when running with --module-path. Verify no system ModuleDescriptor objects at runtime.

          5) Verify the list of system module names from archived system module graph is the same as the list from non-archived system modules at runtime.

          6) Dump without --module-path. Verify archived system module sub-graph is used at runtime when only -cp is used and with --show-module-resolution enabled (which requires resolution). Check archived system ModuleDescriptor objects are used at runtime.

          7) Check the output with --show-module-resolution run using archived module graph and verifies it’s the same as the output from -Xshrare:off run.

          8) Test archived module graph using custom runtime image created by jlink. Dump without --module-path, archived module graph should be used at runtime when running from -cp only.

          9) Test archived module graph using custom runtime image created by jlink. Verify --show-module-resolution output should be the same as the output from -Xshrare:off run.

          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

            jiangli Jiangli Zhou
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: