--- a/hotspot/src/share/vm/runtime/java.hpp Mon Oct 29 16:39:14 2012 -0700
+++ b/hotspot/src/share/vm/runtime/java.hpp Thu Nov 01 13:05:47 2012 +0100
@@ -75,6 +75,7 @@
static JDK_Version _current;
static const char* _runtime_name;
+ static const char* _runtime_version;
// In this class, we promote the minor version of release to be the
// major version for releases >= 5 in anticipation of the JDK doing the
@@ -189,6 +190,13 @@
_runtime_name = name;
}
+ static const char* runtime_version() {
+ return _runtime_version;
+ }
+ static void set_runtime_version(const char* version) {
+ _runtime_version = version;
+ }
+
// Convenience methods for queries on the current major/minor version
static bool is_jdk12x_version() {
return current().compare_major(2) == 0;