Examples of arrayBaseOffset()


Examples of sun.misc.Unsafe.arrayBaseOffset()

  public static void main(String[] args) {
    Unsafe unsafe = getUnsafe();
    // These will vary from platform to platform,
    // so just make sure they exist
    int addrSize = unsafe.addressSize();
    int abo = unsafe.arrayBaseOffset(int[].class);
    int ais = unsafe.arrayIndexScale(int[].class);

    Object f;
    try {
      f = unsafe.allocateInstance(Foo.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.