Fwd: Unsafe.{get,put}-X-Unaligned; Efficient array comparison intrinsics (original) (raw)

Andrew Haley aph at redhat.com
Mon Mar 9 13:09:09 UTC 2015


On 03/06/2015 10:35 PM, John Rose wrote:

Are we missing anything else?

The Javadoc for getInt(Object o, long offset) says

 * @param o Java heap object in which the variable resides, if any, else
 *        null
 * @param offset indication of where the variable resides in a Java heap
 *        object, if any, else a memory address locating the variable
 *        statically

Do you want the specification for Unaligned methods to include the possibility that o is null, in which case offset is a raw address? It'll work with the current implementation.

Andrew.



More information about the panama-dev mailing list