hg: valhalla/valhalla/jdk: VarHandles for int/long arrays.

Remi Forax forax at univ-mlv.fr
Wed Oct 29 19:05:27 UTC 2014


On 10/22/2014 06:25 PM, paul.sandoz at oracle.com wrote:
> Changeset: fff1c746733f
> Author:    psandoz
> Date:      2014-10-22 18:08 +0200
> URL:       http://hg.openjdk.java.net/valhalla/valhalla/jdk/rev/fff1c746733f
>
> VarHandles for int/long arrays.
>
> + src/java.base/share/classes/java/lang/invoke/ArrayIntHandle.java
> + src/java.base/share/classes/java/lang/invoke/ArrayLongHandle.java
> ! src/java.base/share/classes/java/lang/invoke/VarHandleGuards.java
> ! src/java.base/share/classes/java/lang/invoke/VarHandles.java
> ! test/java/lang/invoke/VarHandleTest.java
>

Hi Paul,
I'm wondering if for any Array*Handle.getVolatile() instead of using 
unsafe to get the value,
it was not better to get the value with an array[index] and use unsafe 
only to emit the right fence ?

cheers,
Rémi




More information about the valhalla-dev mailing list