Improve unlink() and unlink_all() of ResourceHashtableBase

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 21
    • Component/s: hotspot
    • generic
    • generic

      Apply the same idea of JDK-8300184 to unlink().

      Because ResourceHashtableBase doesn't support copy constructor and copy assignment, client of it has to purge all elements first. We would like provide a specialized version called 'unlink_all()'. We don't need to update each node's _next in this case. We could nullify each bucket. We could also use unlink_all() in destructor.

            Assignee:
            Unassigned
            Reporter:
            Xin Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: