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

Change parameter order of ResourceHashtable

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • b09

    Description

      The template parameter for ResourceHashtable is currently in this order:

      template<
          typename K, typename V,
          unsigned (*HASH) (K const&) = primitive_hash<K>,
          bool (*EQUALS)(K const&, K const&) = primitive_equals<K>,
          unsigned SIZE = 256,
          ResourceObj::allocation_type ALLOC_TYPE = ResourceObj::RESOURCE_AREA,
          MEMFLAGS MEM_TYPE = mtInternal
          >
      class ResourceHashtable {...}

      However, more often than not, default values of HASH and EQUALS will be used, where the other parameters may need to be specified.

      We should move the HASH and EQUALS parameters to the end of the parameter list.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: