RFR: 8266789: devirtualize find_node and remove of LinkedList

Xin Liu xliu at openjdk.java.net
Mon May 10 13:35:35 UTC 2021


Devirtualize find, find_node and remove. This patch make both LinkedListImpl
and SortedLinkedList more generic. If the client doesn't use those member functions,
it's not necessary to define equals() for the user-defined class E.

Remove those 3 member functions from the pure interface LinkedList. subclasses
implement them using regular member functions.

-------------

Commit messages:
 - 8266789: devirtualize find_node and remove of LinkedList

Changes: https://git.openjdk.java.net/jdk/pull/3944/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3944&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8266789
  Stats: 83 lines in 2 files changed: 68 ins; 7 del; 8 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3944.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3944/head:pull/3944

PR: https://git.openjdk.java.net/jdk/pull/3944


More information about the hotspot-dev mailing list