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

Update CompactHashtable for readability

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • b18

      The comments of CompactHashtable and related classes are out of date, and some comments are unclear, wrong or misleading.

      As the related classes are used in more and more scenarios, it's helpful to update the comments.

      To improve readability (of both the source code and the comments), we should also rename some of the field/parameters to distinguish between the type V (the "value " stored inside the table; it could be a 64-bit pointer) vs "encoded value" (the 32-bit representation of V in the CompactHashtable storage).

            mli Hamlin Li
            mli Hamlin Li
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: