RFR(S): 8239066: make LinkedList<T> more generic

Liu, Xin xxinliu at amazon.com
Fri Feb 14 21:21:45 UTC 2020


Hi,

1.  Could I get reviewed for this patch?  I ran into some problems when I reuse this data structure. It’s a prerequisite of JDK-8229517<https://bugs.openjdk.java.net/browse/JDK-8229517>.
2.
Webrev: https://cr.openjdk.java.net/~xliu/8239066/webrev.00/webrev/
Bugs: https://bugs.openjdk.java.net/browse/JDK-8239066

Currently, we can’t instantiate it using basic types such as int or arbitrary type.  It’s because E::equals is too intrusive.
I move out find/remove and provide them like <algorithm>.  Usage is almost same as original because of template parameter type inference.

I also fix some minor issues mentioned in JDK-8239066.  I think we can implement CompileQueue, G1BufferNodeList in the future.

Thanks,
--lx





More information about the hotspot-runtime-dev mailing list