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

Improve unlink() and unlink_all() of ResourceHashtableBase

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 21
    • 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.

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

              Created:
              Updated:
              Resolved: