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

Hashtable literal_size functions are broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      The literal_size functions are used to estimate the size of held objects in some of our hashtables.

      Two bugs:
      1) They return int, but the returned value is in bytes and could be larger than MAX_INT.
      2) Non-String objects report words instead of bytes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stefank Stefan Karlsson
              Reporter:
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: