Add ResourceHashtable::xxx_if_absent

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: 15
    • Component/s: hotspot
    • b24

      A common pattern when using ResourceHashTable is:

      if (table.get(k) == NULL) table.add(k,v);

      This runs the lookup code twice. By providing methods "xxx_if_absent" - similar to how j.u.Map does - we could reduce the number of lookups needed.

            Assignee:
            Thomas Stuefe
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: