code: public static long toAddress(Object obj) {
      Object[] array = new Object[] {obj};
      long baseOffset = unsafe.arrayBaseOffset(Object[].class);
      return normalize(unsafe.getInt(array, baseOffset));
    }
docs: Returns the address the object is located at
  
  <p>WARNING: This does not return a pointer, so be warned pointer arithmetic will not work.
  
  @param obj The object
  @return the address of the object