Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
3194b7b4
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看板
提交
3194b7b4
编写于
12月 06, 2010
作者:
K
kamg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7003782: Update JVMTI version to 1.2 for jdk7
Summary: Update minor version to 1.2 for jdk7 Reviewed-by: phh, dcubed
上级
5a82c0b0
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
11 deletion
+22
-11
src/share/vm/prims/jvmti.xml
src/share/vm/prims/jvmti.xml
+3
-3
src/share/vm/prims/jvmtiEnvBase.cpp
src/share/vm/prims/jvmtiEnvBase.cpp
+8
-0
src/share/vm/prims/jvmtiEnvBase.hpp
src/share/vm/prims/jvmtiEnvBase.hpp
+3
-1
src/share/vm/prims/jvmtiExport.cpp
src/share/vm/prims/jvmtiExport.cpp
+6
-6
src/share/vm/prims/jvmtiH.xsl
src/share/vm/prims/jvmtiH.xsl
+2
-1
未找到文件。
src/share/vm/prims/jvmti.xml
浏览文件 @
3194b7b4
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="jvmti.xsl"?>
<?xml-stylesheet type="text/xsl" href="jvmti.xsl"?>
<!--
<!--
Copyright (c) 2002, 20
06
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2002, 20
10
, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
This code is free software; you can redistribute it and/or modify it
...
@@ -359,8 +359,8 @@
...
@@ -359,8 +359,8 @@
<specification
label=
"JVM(TM) Tool Interface"
<specification
label=
"JVM(TM) Tool Interface"
majorversion=
"1"
majorversion=
"1"
minorversion=
"
1
"
minorversion=
"
2
"
microversion=
"1
09
"
>
microversion=
"1"
>
<title
subtitle=
"Version"
>
<title
subtitle=
"Version"
>
<tm>
JVM
</tm>
Tool Interface
<tm>
JVM
</tm>
Tool Interface
</title>
</title>
...
...
src/share/vm/prims/jvmtiEnvBase.cpp
浏览文件 @
3194b7b4
...
@@ -161,6 +161,14 @@ JvmtiEnvBase::use_version_1_1_semantics() {
...
@@ -161,6 +161,14 @@ JvmtiEnvBase::use_version_1_1_semantics() {
return
major
==
1
&&
minor
==
1
;
// micro version doesn't matter here
return
major
==
1
&&
minor
==
1
;
// micro version doesn't matter here
}
}
bool
JvmtiEnvBase
::
use_version_1_2_semantics
()
{
int
major
,
minor
,
micro
;
JvmtiExport
::
decode_version_values
(
_version
,
&
major
,
&
minor
,
&
micro
);
return
major
==
1
&&
minor
==
2
;
// micro version doesn't matter here
}
JvmtiEnvBase
::
JvmtiEnvBase
(
jint
version
)
:
_env_event_enable
()
{
JvmtiEnvBase
::
JvmtiEnvBase
(
jint
version
)
:
_env_event_enable
()
{
_version
=
version
;
_version
=
version
;
...
...
src/share/vm/prims/jvmtiEnvBase.hpp
浏览文件 @
3194b7b4
...
@@ -66,7 +66,8 @@ class JvmtiEnvBase : public CHeapObj {
...
@@ -66,7 +66,8 @@ class JvmtiEnvBase : public CHeapObj {
enum
{
enum
{
JDK15_JVMTI_VERSION
=
JVMTI_VERSION_1_0
+
33
,
/* version: 1.0.33 */
JDK15_JVMTI_VERSION
=
JVMTI_VERSION_1_0
+
33
,
/* version: 1.0.33 */
JDK16_JVMTI_VERSION
=
JVMTI_VERSION_1_1
+
102
/* version: 1.1.102 */
JDK16_JVMTI_VERSION
=
JVMTI_VERSION_1_1
+
102
,
/* version: 1.1.102 */
JDK17_JVMTI_VERSION
=
JVMTI_VERSION_1_2
+
1
/* version: 1.2.1 */
};
};
static
jvmtiPhase
get_phase
()
{
return
_phase
;
}
static
jvmtiPhase
get_phase
()
{
return
_phase
;
}
...
@@ -136,6 +137,7 @@ class JvmtiEnvBase : public CHeapObj {
...
@@ -136,6 +137,7 @@ class JvmtiEnvBase : public CHeapObj {
bool
use_version_1_0_semantics
();
// agent asked for version 1.0
bool
use_version_1_0_semantics
();
// agent asked for version 1.0
bool
use_version_1_1_semantics
();
// agent asked for version 1.1
bool
use_version_1_1_semantics
();
// agent asked for version 1.1
bool
use_version_1_2_semantics
();
// agent asked for version 1.2
bool
is_retransformable
()
{
return
_is_retransformable
;
}
bool
is_retransformable
()
{
return
_is_retransformable
;
}
...
...
src/share/vm/prims/jvmtiExport.cpp
浏览文件 @
3194b7b4
...
@@ -354,18 +354,18 @@ JvmtiExport::get_jvmti_interface(JavaVM *jvm, void **penv, jint version) {
...
@@ -354,18 +354,18 @@ JvmtiExport::get_jvmti_interface(JavaVM *jvm, void **penv, jint version) {
// micro version doesn't matter here (yet?)
// micro version doesn't matter here (yet?)
decode_version_values
(
version
,
&
major
,
&
minor
,
&
micro
);
decode_version_values
(
version
,
&
major
,
&
minor
,
&
micro
);
switch
(
major
)
{
switch
(
major
)
{
case
1
:
case
1
:
switch
(
minor
)
{
switch
(
minor
)
{
case
0
:
// version 1.0.<micro> is recognized
case
0
:
// version 1.0.<micro> is recognized
case
1
:
// version 1.1.<micro> is recognized
case
1
:
// version 1.1.<micro> is recognized
case
2
:
// version 1.2.<micro> is recognized
break
;
break
;
default:
default:
return
JNI_EVERSION
;
// unsupported minor version number
return
JNI_EVERSION
;
// unsupported minor version number
}
}
break
;
break
;
default:
default:
return
JNI_EVERSION
;
// unsupported major version number
return
JNI_EVERSION
;
// unsupported major version number
}
}
...
...
src/share/vm/prims/jvmtiH.xsl
浏览文件 @
3194b7b4
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
<!--
Copyright (c) 2002, 20
06
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2002, 20
10
, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
This code is free software; you can redistribute it and/or modify it
...
@@ -112,6 +112,7 @@ enum {
...
@@ -112,6 +112,7 @@ enum {
JVMTI_VERSION_1 = 0x30010000,
JVMTI_VERSION_1 = 0x30010000,
JVMTI_VERSION_1_0 = 0x30010000,
JVMTI_VERSION_1_0 = 0x30010000,
JVMTI_VERSION_1_1 = 0x30010100,
JVMTI_VERSION_1_1 = 0x30010100,
JVMTI_VERSION_1_2 = 0x30010200,
JVMTI_VERSION = 0x30000000 + (
</xsl:text>
JVMTI_VERSION = 0x30000000 + (
</xsl:text>
<xsl:value-of
select=
"//specification/@majorversion"
/>
<xsl:value-of
select=
"//specification/@majorversion"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录