equal
deleted
inserted
replaced
283 JVM_LEAF(jlong, JVM_NanoTime(JNIEnv *env, jclass ignored)) |
283 JVM_LEAF(jlong, JVM_NanoTime(JNIEnv *env, jclass ignored)) |
284 JVMWrapper("JVM_NanoTime"); |
284 JVMWrapper("JVM_NanoTime"); |
285 return os::javaTimeNanos(); |
285 return os::javaTimeNanos(); |
286 JVM_END |
286 JVM_END |
287 |
287 |
288 // The function below is actually exposed by sun.misc.VM and not |
288 // The function below is actually exposed by jdk.internal.misc.VM and not |
289 // java.lang.System, but we choose to keep it here so that it stays next |
289 // java.lang.System, but we choose to keep it here so that it stays next |
290 // to JVM_CurrentTimeMillis and JVM_NanoTime |
290 // to JVM_CurrentTimeMillis and JVM_NanoTime |
291 |
291 |
292 const jlong MAX_DIFF_SECS = CONST64(0x0100000000); // 2^32 |
292 const jlong MAX_DIFF_SECS = CONST64(0x0100000000); // 2^32 |
293 const jlong MIN_DIFF_SECS = -MAX_DIFF_SECS; // -2^32 |
293 const jlong MIN_DIFF_SECS = -MAX_DIFF_SECS; // -2^32 |