--- old/src/share/vm/opto/divnode.cpp 2015-02-10 15:11:51.000000000 +0100 +++ new/src/share/vm/opto/divnode.cpp 2015-02-10 15:11:51.000000000 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -219,7 +219,7 @@ static bool magic_long_divide_constants(jlong d, jlong &M, jint &s) { int64_t p; uint64_t ad, anc, delta, q1, r1, q2, r2, t; - const uint64_t two63 = 0x8000000000000000LL; // 2**63. + const uint64_t two63 = UCONST64(0x8000000000000000); // 2**63. ad = ABS(d); if (d == 0 || d == 1) return false; --- old/src/share/vm/prims/jvm.cpp 2015-02-10 15:11:52.000000000 +0100 +++ new/src/share/vm/prims/jvm.cpp 2015-02-10 15:11:52.000000000 +0100 @@ -303,7 +303,7 @@ // java.lang.System, but we choose to keep it here so that it stays next // to JVM_CurrentTimeMillis and JVM_NanoTime -const jlong MAX_DIFF_SECS = 0x0100000000LL; // 2^32 +const jlong MAX_DIFF_SECS = CONST64(0x0100000000); // 2^32 const jlong MIN_DIFF_SECS = -MAX_DIFF_SECS; // -2^32 JVM_LEAF(jlong, JVM_GetNanoTimeAdjustment(JNIEnv *env, jclass ignored, jlong offset_secs))