Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
d8dc79bf
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看板
提交
d8dc79bf
编写于
7月 15, 2020
作者:
D
Denghui Dong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "[JFR] Add compatibility for UnlockCommercialFeatures"
This reverts commit
c7503dc8
.
上级
ca3b5874
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
0 addition
and
74 deletion
+0
-74
src/share/vm/jfr/dcmd/jfrDcmds.cpp
src/share/vm/jfr/dcmd/jfrDcmds.cpp
+0
-1
src/share/vm/jfr/dcmd/jfrDcmds.hpp
src/share/vm/jfr/dcmd/jfrDcmds.hpp
+0
-19
src/share/vm/runtime/globals.hpp
src/share/vm/runtime/globals.hpp
+0
-3
test/jfr/test_unlockCommercialFeatures_compatibility.sh
test/jfr/test_unlockCommercialFeatures_compatibility.sh
+0
-51
未找到文件。
src/share/vm/jfr/dcmd/jfrDcmds.cpp
浏览文件 @
d8dc79bf
...
...
@@ -626,7 +626,6 @@ bool register_jfr_dcmds() {
DCmdFactory
::
register_DCmdFactory
(
new
DCmdFactoryImpl
<
JfrStartFlightRecordingDCmd
>
(
full_export
,
true
,
false
));
DCmdFactory
::
register_DCmdFactory
(
new
DCmdFactoryImpl
<
JfrStopFlightRecordingDCmd
>
(
full_export
,
true
,
false
));
DCmdFactory
::
register_DCmdFactory
(
new
DCmdFactoryImpl
<
JfrConfigureFlightRecorderDCmd
>
(
full_export
,
true
,
false
));
DCmdFactory
::
register_DCmdFactory
(
new
DCmdFactoryImpl
<
JfrUnlockCommercialFeaturesDCmd
>
(
full_export
,
true
,
false
));
return
true
;
}
src/share/vm/jfr/dcmd/jfrDcmds.hpp
浏览文件 @
d8dc79bf
...
...
@@ -166,25 +166,6 @@ class JfrConfigureFlightRecorderDCmd : public DCmdWithParser {
virtual
void
execute
(
DCmdSource
source
,
TRAPS
);
};
class
JfrUnlockCommercialFeaturesDCmd
:
public
DCmd
{
public:
JfrUnlockCommercialFeaturesDCmd
(
outputStream
*
output
,
bool
heap
)
:
DCmd
(
output
,
heap
)
{
}
static
const
char
*
name
()
{
return
"VM.unlock_commercial_features"
;
}
static
const
char
*
description
()
{
return
"Simulate commercial features unlocking for Alibaba Dragonwell8."
;
}
static
const
char
*
impact
()
{
return
"Low"
;
}
static
const
JavaPermission
permission
()
{
JavaPermission
p
=
{
"java.lang.management.ManagementPermission"
,
"monitor"
,
NULL
};
return
p
;
}
static
int
num_arguments
()
{
return
0
;
}
virtual
void
execute
(
DCmdSource
source
,
TRAPS
)
{
UnlockCommercialFeatures
=
true
;
}
};
bool
register_jfr_dcmds
();
#endif // SHARE_VM_JFR_JFRDCMDS_HPP
src/share/vm/runtime/globals.hpp
浏览文件 @
d8dc79bf
...
...
@@ -4030,9 +4030,6 @@ class CommandLineFlags {
\
product(bool, EnableJFR, false, "Enable JFR feature") \
\
product(bool, UnlockCommercialFeatures, false, \
"This flag is ignored. Left for compatibility") \
\
lp64_product(bool, CompilationWarmUpRecording, false, \
"Collect profiling information for JWarmUP") \
\
...
...
test/jfr/test_unlockCommercialFeatures_compatibility.sh
已删除
100644 → 0
浏览文件 @
ca3b5874
#!/usr/bin/env bash
#
# @test
# @summary Test 'jcmd VM.unlock_commercial_features'
# @run shell/timeout=500 test_unlockCommercialFeatures_compatibility.sh
#
if
[
"
${
TESTSRC
}
"
=
""
]
then
TESTSRC
=
${
PWD
}
echo
"TESTSRC not set. Using "
${
TESTSRC
}
" as default"
fi
echo
"TESTSRC=
${
TESTSRC
}
"
## Adding common setup Variables for running shell tests.
.
${
TESTSRC
}
/../test_env.sh
JAVA
=
${
TESTJAVA
}${
FS
}
bin
${
FS
}
java
JAVAC
=
${
TESTJAVA
}${
FS
}
bin
${
FS
}
javac
JCMD
=
${
TESTJAVA
}${
FS
}
bin
${
FS
}
jcmd
JPS
=
${
TESTJAVA
}${
FS
}
bin
${
FS
}
jps
# A simple testcase used to invoke JVM
TEST_CLASS
=
Test_
$(
date
+%Y%m%d%H%M%S
)
TEST_SOURCE
=
$TEST_CLASS
.java
cat
>
$TEST_SOURCE
<<
EOF
public class
${
TEST_CLASS
}
{
public static void main(String[] args) throws Exception{
// keep Java process running
while (true) { Thread.sleep(1000); }
}
}
EOF
# compile the test class
$JAVAC
$TEST_SOURCE
if
[
$?
!=
'0'
]
;
then
echo
"Failed to compile
${
TEST_SOURCE
}
"
exit
1
fi
${
JAVA
}
-XX
:+EnableJFR
-cp
.
${
TEST_CLASS
}
&
PID
=
$(
${
JPS
}
|
grep
${
TEST_CLASS
}
|
awk
'{print $1}'
)
if
[
$?
!=
0
]
||
[
-z
"
${
PID
}
"
]
;
then
exit
1
;
fi
${
JCMD
}
${
PID
}
VM.unlock_commercial_features
if
[
$?
!=
0
]
;
then
exit
1
;
fi
kill
-9
${
PID
}
exit
0
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录