equal
deleted
inserted
replaced
301 |
301 |
302 // The function below is actually exposed by sun.misc.VM and not |
302 // The function below is actually exposed by sun.misc.VM and not |
303 // java.lang.System, but we choose to keep it here so that it stays next |
303 // java.lang.System, but we choose to keep it here so that it stays next |
304 // to JVM_CurrentTimeMillis and JVM_NanoTime |
304 // to JVM_CurrentTimeMillis and JVM_NanoTime |
305 |
305 |
306 const jlong MAX_DIFF_SECS = 0x0100000000LL; // 2^32 |
306 const jlong MAX_DIFF_SECS = CONST64(0x0100000000); // 2^32 |
307 const jlong MIN_DIFF_SECS = -MAX_DIFF_SECS; // -2^32 |
307 const jlong MIN_DIFF_SECS = -MAX_DIFF_SECS; // -2^32 |
308 |
308 |
309 JVM_LEAF(jlong, JVM_GetNanoTimeAdjustment(JNIEnv *env, jclass ignored, jlong offset_secs)) |
309 JVM_LEAF(jlong, JVM_GetNanoTimeAdjustment(JNIEnv *env, jclass ignored, jlong offset_secs)) |
310 JVMWrapper("JVM_GetNanoTimeAdjustment"); |
310 JVMWrapper("JVM_GetNanoTimeAdjustment"); |
311 jlong seconds; |
311 jlong seconds; |