Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
88dff4bd
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
88dff4bd
编写于
5月 06, 2020
作者:
S
sgehwolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8244548: JDK 8u: sun.misc.Version.jdkUpdateVersion() returns wrong result
Reviewed-by: aph, andrew
上级
ea9c7952
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
src/share/vm/prims/jvm.h
src/share/vm/prims/jvm.h
+4
-4
src/share/vm/runtime/java.hpp
src/share/vm/runtime/java.hpp
+3
-3
src/share/vm/runtime/vm_version.cpp
src/share/vm/runtime/vm_version.cpp
+1
-1
未找到文件。
src/share/vm/prims/jvm.h
浏览文件 @
88dff4bd
...
...
@@ -1628,9 +1628,9 @@ typedef struct {
}
jvm_version_info
;
#define JVM_VERSION_MAJOR(version) ((version & 0xFF000000) >> 24)
#define JVM_VERSION_MINOR(version) ((version & 0x00FF
0000) >> 16
)
#define JVM_VERSION_MINOR(version) ((version & 0x00FF
FF00) >> 8
)
// Micro version is 0 in HotSpot Express VM (set in jvm.cpp).
#define JVM_VERSION_MICRO(version)
((version & 0x0000FF00) >> 8)
#define JVM_VERSION_MICRO(version)
0
/* Build number is available in all HotSpot Express VM builds.
* It is defined in make/hotspot_version file.
*/
...
...
@@ -1643,9 +1643,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.
...
...
src/share/vm/runtime/java.hpp
浏览文件 @
88dff4bd
...
...
@@ -85,7 +85,7 @@ class JDK_Version VALUE_OBJ_CLASS_SPEC {
uint8_t
_major
;
uint8_t
_minor
;
uint8_t
_micro
;
uint
8
_t
_update
;
uint
16
_t
_update
;
uint8_t
_special
;
uint8_t
_build
;
...
...
@@ -121,7 +121,7 @@ class JDK_Version VALUE_OBJ_CLASS_SPEC {
_pending_list_uses_discovered_field
(
false
)
{}
JDK_Version
(
uint8_t
major
,
uint8_t
minor
=
0
,
uint8_t
micro
=
0
,
uint
8
_t
update
=
0
,
uint8_t
special
=
0
,
uint8_t
build
=
0
,
uint
16
_t
update
=
0
,
uint8_t
special
=
0
,
uint8_t
build
=
0
,
bool
thread_park_blocker
=
false
,
bool
post_vm_init_hook_enabled
=
false
,
bool
pending_list_uses_discovered_field
=
false
)
:
_major
(
major
),
_minor
(
minor
),
_micro
(
micro
),
_update
(
update
),
...
...
@@ -145,7 +145,7 @@ class JDK_Version VALUE_OBJ_CLASS_SPEC {
uint8_t
major_version
()
const
{
return
_major
;
}
uint8_t
minor_version
()
const
{
return
_minor
;
}
uint8_t
micro_version
()
const
{
return
_micro
;
}
uint
8_t
update_version
()
const
{
return
_update
;
}
uint
16_t
update_version
()
const
{
return
_update
;
}
uint8_t
special_update_version
()
const
{
return
_special
;
}
uint8_t
build_number
()
const
{
return
_build
;
}
...
...
src/share/vm/runtime/vm_version.cpp
浏览文件 @
88dff4bd
...
...
@@ -283,7 +283,7 @@ const char *Abstract_VM_Version::vm_build_user() {
unsigned
int
Abstract_VM_Version
::
jvm_version
()
{
return
((
Abstract_VM_Version
::
vm_major_version
()
&
0xFF
)
<<
24
)
|
((
Abstract_VM_Version
::
vm_minor_version
()
&
0xFF
)
<<
16
)
|
((
Abstract_VM_Version
::
vm_minor_version
()
&
0xFF
FF
)
<<
8
)
|
(
Abstract_VM_Version
::
vm_build_number
()
&
0xFF
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录