hotspot/src/share/vm/prims/jvm.cpp
changeset 35565 ba5fe4d701e4
parent 35554 c9184290875c
parent 35233 357bf863e7c1
child 37064 5c82fa70d313
child 37078 dc9ee85e80d3
child 36508 5f9eee6b383b
equal deleted inserted replaced
35564:3485bf43b924 35565:ba5fe4d701e4
   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