hg: jdk9/sandbox/jdk: - Replace the array of MethodType on VarHandle with final fields
paul.sandoz at oracle.com
paul.sandoz at oracle.com
Fri Jul 10 12:17:31 UTC 2015
Changeset: 8c6d691db3ee
Author: psandoz
Date: 2015-07-10 14:17 +0200
URL: http://hg.openjdk.java.net/jdk9/sandbox/jdk/rev/8c6d691db3ee
- Replace the array of MethodType on VarHandle with final fields
to reduce memory per handle (Note: the lookup of the method type
in the guard method will still constant fold).
- Remove the checkCast method and use explcit casts now Class.cast
is an intrinsic.
! src/java.base/share/classes/java/lang/invoke/Invokers.java
! src/java.base/share/classes/java/lang/invoke/VarHandle.java
! src/java.base/share/classes/java/lang/invoke/VarHandleGuards.java
! src/java.base/share/classes/java/lang/invoke/VarHandleRefs.java
! src/java.base/share/classes/java/lang/invoke/VarHandles.java
More information about the jdk9-sandbox-changes
mailing list