Package sun.misc

Examples of sun.misc.Unsafe.freeMemory()


    // ensure we are using signed bytes
    unsafe.setMemory(addr, 10L, (byte)(-1));
    System.out.println(unsafe.getByte(addr + 5));

    unsafe.freeMemory(addr);
  }
}
View Full Code Here


      readPtr++;
     
      Assert.assertEquals(b, readByte);
    }
   
    unsafe.freeMemory(ptr);
  }
}
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.