Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8270803

Reduce CDS API verbosity

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b07

      Description

      The CDS APIs have some excessively long names:

          HeapShared::set_closed_archive_heap_region_mapped()
          HeapShared::fixup_mapped_heap_regions()
          MetaspaceShared::first_closed_archive_heap_region
          FileMapInfo::write_archive_heap_regions()

      Words such as "archive_heap_", "archive_", "heap_", ... can be removed when the context is clear:

          HeapShared::set_closed_regions_mapped()
          HeapShared::fixup_mapped_regions()
          MetaspaceShared::first_closed_heap_region
          FileMapInfo::write_heap_regions()

      This RFE also fixes some irregularities and grammatical errors in the code:

      [1] GrowableArray<MemRegion>* {archive, mem, range}
           =>
           GrowableArray<MemRegion>* regions

      [2] The word "region" is changed to "regions" when appropriate

      [3] Remove unused HeapShared::_archive_heap_region_fixed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: