--- a/hotspot/src/share/vm/utilities/globalDefinitions.hpp Wed Oct 26 20:13:29 2016 +0000
+++ b/hotspot/src/share/vm/utilities/globalDefinitions.hpp Tue Oct 25 16:42:28 2016 +0200
@@ -193,6 +193,16 @@
return (byte_size + (HeapWordSize-1)) >> LogHeapWordSize;
}
+//-------------------------------------------
+// Constant for jlong (standardized by C++11)
+
+// Build a 64bit integer constant
+#define CONST64(x) (x ## LL)
+#define UCONST64(x) (x ## ULL)
+
+const jlong min_jlong = CONST64(0x8000000000000000);
+const jlong max_jlong = CONST64(0x7fffffffffffffff);
+
const size_t K = 1024;
const size_t M = K*K;
const size_t G = M*K;