提交 b518c46e 编写于 作者: S sgehwolf

8244548: JDK 8u: sun.misc.Version.jdkUpdateVersion() returns wrong result

Reviewed-by: aph, andrew
上级 bcccda1f
......@@ -1470,8 +1470,8 @@ typedef struct {
} jvm_version_info;
#define JVM_VERSION_MAJOR(version) ((version & 0xFF000000) >> 24)
#define JVM_VERSION_MINOR(version) ((version & 0x00FF0000) >> 16)
#define JVM_VERSION_MICRO(version) ((version & 0x0000FF00) >> 8)
#define JVM_VERSION_MINOR(version) ((version & 0x00FFFF00) >> 8)
#define JVM_VERSION_MICRO(version) 0
/* Build number is available only for RE builds.
* It will be zero for internal builds.
......@@ -1485,9 +1485,9 @@ typedef struct {
// Naming convention of RE build version string: n.n.n[_uu[c]][-<identifier>]-bxx
unsigned int jdk_version; /* Consists of major, minor, micro (n.n.n) */
/* and build number (xx) */
unsigned int update_version : 8; /* Update release version (uu) */
unsigned int update_version : 16; /* Update release version (uu) */
unsigned int special_update_version : 8; /* Special update release version (c)*/
unsigned int reserved1 : 16;
unsigned int reserved1 : 8;
unsigned int reserved2;
/* The following bits represents new JDK supports that VM has dependency on.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册