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