-
Enhancement
-
Resolution: Fixed
-
P4
-
15
-
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.
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.
- relates to
-
JDK-8250563 Add KVHashtable::add_if_absent
-
- Resolved
-