src/java.base/share/classes/java/lang/System.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8076112 Cdiff src/java.base/share/classes/java/lang/System.java

src/java.base/share/classes/java/lang/System.java

Print this page

        

*** 40,49 **** --- 40,50 ---- import sun.nio.ch.Interruptible; import sun.reflect.CallerSensitive; import sun.reflect.Reflection; import sun.security.util.SecurityConstants; import sun.reflect.annotation.AnnotationType; + import jdk.internal.HotSpotIntrinsicCandidate; /** * The <code>System</code> class contains several useful class fields * and methods. It cannot be instantiated. *
*** 347,356 **** --- 348,358 ---- * * @return the difference, measured in milliseconds, between * the current time and midnight, January 1, 1970 UTC. * @see java.util.Date */ + @HotSpotIntrinsicCandidate public static native long currentTimeMillis(); /** * Returns the current value of the running Java Virtual Machine's * high-resolution time source, in nanoseconds.
*** 390,399 **** --- 392,402 ---- * * @return the current value of the running Java Virtual Machine's * high-resolution time source, in nanoseconds * @since 1.5 */ + @HotSpotIntrinsicCandidate public static native long nanoTime(); /** * Copies an array from the specified source array, beginning at the * specified position, to the specified position of the destination array.
*** 484,493 **** --- 487,497 ---- * array could not be stored into the <code>dest</code> array * because of a type mismatch. * @exception NullPointerException if either <code>src</code> or * <code>dest</code> is <code>null</code>. */ + @HotSpotIntrinsicCandidate public static native void arraycopy(Object src, int srcPos, Object dest, int destPos, int length); /**
*** 499,508 **** --- 503,513 ---- * * @param x object for which the hashCode is to be calculated * @return the hashCode * @since 1.1 */ + @HotSpotIntrinsicCandidate public static native int identityHashCode(Object x); /** * System properties. The following properties are guaranteed to be defined: * <dl>
src/java.base/share/classes/java/lang/System.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File