[lworld] RFR: 8244975: [lworld] Investigate if VM can implement Object::hashCode by calling ValueBootstrapMethods for inline types
Rémi Forax
github.com+828220+forax at openjdk.java.net
Wed Aug 5 19:56:35 UTC 2020
On Wed, 5 Aug 2020 11:32:15 GMT, David Simms <dsimms at openjdk.org> wrote:
> Use ValueBootstrapMethods for Object::hashCode()
src/java.base/share/classes/java/lang/invoke/ValueBootstrapMethods.java line 480:
> 479:
> 480: static <T> MethodHandle hashCodeInvoker(Class<T> type) {
> 481: return HASHCODE_METHOD_HANDLES.get(type);
the type parameter is not needed, can be:
static MethodHandle hashCodeInvoker(Class<?> type) {
-------------
PR: https://git.openjdk.java.net/valhalla/pull/136
More information about the valhalla-dev
mailing list