Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
d2a15d2f
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看板
提交
d2a15d2f
编写于
11月 23, 2018
作者:
Y
ysuenaga
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8213015: Inconsistent settings between JFR.configure and -XX:FlightRecorderOptions
Reviewed-by: mgronlun, egahlin
上级
7b8f4d16
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
18 deletion
+18
-18
src/share/vm/jfr/dcmd/jfrDcmds.cpp
src/share/vm/jfr/dcmd/jfrDcmds.cpp
+10
-10
src/share/vm/jfr/dcmd/jfrDcmds.hpp
src/share/vm/jfr/dcmd/jfrDcmds.hpp
+4
-4
src/share/vm/jfr/recorder/service/jfrOptionSet.cpp
src/share/vm/jfr/recorder/service/jfrOptionSet.cpp
+4
-4
未找到文件。
src/share/vm/jfr/dcmd/jfrDcmds.cpp
浏览文件 @
d2a15d2f
...
...
@@ -534,12 +534,12 @@ JfrConfigureFlightRecorderDCmd::JfrConfigureFlightRecorderDCmd(outputStream* out
bool
heap
)
:
DCmdWithParser
(
output
,
heap
),
_repository_path
(
"repositorypath"
,
"Path to repository,.e.g
\\\"
My Repository
\\\"
"
,
"STRING"
,
false
,
NULL
),
_dump_path
(
"dumppath"
,
"Path to dump,.e.g
\\\"
My Dump path
\\\"
"
,
"STRING"
,
false
,
NULL
),
_stack_depth
(
"stackdepth"
,
"Stack Depth"
,
"JLONG"
,
false
,
"64"
),
_global_buffer_count
(
"globalbuffercount"
,
"Number of global buffers,"
,
"J
LONG"
,
false
,
"32
"
),
_global_buffer_size
(
"globalbuffersize"
,
"Size of a global buffers,"
,
"
JLONG"
,
false
,
"524288
"
),
_thread_buffer_size
(
"thread_buffer_size"
,
"Size of a thread buffer"
,
"
JLONG"
,
false
,
"8192
"
),
_memory_size
(
"memorysize"
,
"Overall memory size, "
,
"
JLONG"
,
false
,
"16777216
"
),
_max_chunk_size
(
"maxchunksize"
,
"Size of an individual disk chunk"
,
"
JLONG"
,
false
,
"12582912
"
),
_stack_depth
(
"stackdepth"
,
"Stack Depth"
,
"J
U
LONG"
,
false
,
"64"
),
_global_buffer_count
(
"globalbuffercount"
,
"Number of global buffers,"
,
"J
ULONG"
,
false
,
"20
"
),
_global_buffer_size
(
"globalbuffersize"
,
"Size of a global buffers,"
,
"
MEMORY SIZE"
,
false
,
"512k
"
),
_thread_buffer_size
(
"thread_buffer_size"
,
"Size of a thread buffer"
,
"
MEMORY SIZE"
,
false
,
"8k
"
),
_memory_size
(
"memorysize"
,
"Overall memory size, "
,
"
MEMORY SIZE"
,
false
,
"10m
"
),
_max_chunk_size
(
"maxchunksize"
,
"Size of an individual disk chunk"
,
"
MEMORY SIZE"
,
false
,
"12m
"
),
_sample_threads
(
"samplethreads"
,
"Activate Thread sampling"
,
"BOOLEAN"
,
false
,
"true"
)
{
_dcmdparser
.
add_dcmd_option
(
&
_repository_path
);
_dcmdparser
.
add_dcmd_option
(
&
_dump_path
);
...
...
@@ -602,22 +602,22 @@ void JfrConfigureFlightRecorderDCmd::execute(DCmdSource source, TRAPS) {
jobject
global_buffer_size
=
NULL
;
if
(
_global_buffer_size
.
is_set
())
{
global_buffer_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_global_buffer_size
.
value
(),
CHECK
);
global_buffer_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_global_buffer_size
.
value
()
.
_size
,
CHECK
);
}
jobject
thread_buffer_size
=
NULL
;
if
(
_thread_buffer_size
.
is_set
())
{
thread_buffer_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_thread_buffer_size
.
value
(),
CHECK
);
thread_buffer_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_thread_buffer_size
.
value
()
.
_size
,
CHECK
);
}
jobject
max_chunk_size
=
NULL
;
if
(
_max_chunk_size
.
is_set
())
{
max_chunk_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_max_chunk_size
.
value
(),
CHECK
);
max_chunk_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_max_chunk_size
.
value
()
.
_size
,
CHECK
);
}
jobject
memory_size
=
NULL
;
if
(
_memory_size
.
is_set
())
{
memory_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_memory_size
.
value
(),
CHECK
);
memory_size
=
JfrJavaSupport
::
new_java_lang_Long
(
_memory_size
.
value
()
.
_size
,
CHECK
);
}
jobject
sample_threads
=
NULL
;
...
...
src/share/vm/jfr/dcmd/jfrDcmds.hpp
浏览文件 @
d2a15d2f
...
...
@@ -145,10 +145,10 @@ class JfrConfigureFlightRecorderDCmd : public DCmdWithParser {
DCmdArgument
<
char
*>
_dump_path
;
DCmdArgument
<
jlong
>
_stack_depth
;
DCmdArgument
<
jlong
>
_global_buffer_count
;
DCmdArgument
<
jlong
>
_global_buffer_size
;
DCmdArgument
<
jlong
>
_thread_buffer_size
;
DCmdArgument
<
jlong
>
_memory_size
;
DCmdArgument
<
jlong
>
_max_chunk_size
;
DCmdArgument
<
MemorySizeArgument
>
_global_buffer_size
;
DCmdArgument
<
MemorySizeArgument
>
_thread_buffer_size
;
DCmdArgument
<
MemorySizeArgument
>
_memory_size
;
DCmdArgument
<
MemorySizeArgument
>
_max_chunk_size
;
DCmdArgument
<
bool
>
_sample_threads
;
public:
...
...
src/share/vm/jfr/recorder/service/jfrOptionSet.cpp
浏览文件 @
d2a15d2f
...
...
@@ -351,19 +351,19 @@ bool JfrOptionSet::configure(TRAPS) {
configure
.
_stack_depth
.
set_value
(
_dcmd_stackdepth
.
value
());
configure
.
_thread_buffer_size
.
set_is_set
(
_dcmd_threadbuffersize
.
is_set
());
configure
.
_thread_buffer_size
.
set_value
(
_dcmd_threadbuffersize
.
value
()
.
_size
);
configure
.
_thread_buffer_size
.
set_value
(
_dcmd_threadbuffersize
.
value
());
configure
.
_global_buffer_count
.
set_is_set
(
_dcmd_numglobalbuffers
.
is_set
());
configure
.
_global_buffer_count
.
set_value
(
_dcmd_numglobalbuffers
.
value
());
configure
.
_global_buffer_size
.
set_is_set
(
_dcmd_globalbuffersize
.
is_set
());
configure
.
_global_buffer_size
.
set_value
(
_dcmd_globalbuffersize
.
value
()
.
_size
);
configure
.
_global_buffer_size
.
set_value
(
_dcmd_globalbuffersize
.
value
());
configure
.
_max_chunk_size
.
set_is_set
(
_dcmd_maxchunksize
.
is_set
());
configure
.
_max_chunk_size
.
set_value
(
_dcmd_maxchunksize
.
value
()
.
_size
);
configure
.
_max_chunk_size
.
set_value
(
_dcmd_maxchunksize
.
value
());
configure
.
_memory_size
.
set_is_set
(
_dcmd_memorysize
.
is_set
());
configure
.
_memory_size
.
set_value
(
_dcmd_memorysize
.
value
()
.
_size
);
configure
.
_memory_size
.
set_value
(
_dcmd_memorysize
.
value
());
configure
.
_sample_threads
.
set_is_set
(
_dcmd_sample_threads
.
is_set
());
configure
.
_sample_threads
.
set_value
(
_dcmd_sample_threads
.
value
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录