Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
6b94025c
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看板
提交
6b94025c
编写于
1月 24, 2013
作者:
J
jmasa
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
a1c505a5
6ea88389
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
25 addition
and
17 deletion
+25
-17
src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp
src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp
+20
-14
src/share/vm/gc_implementation/g1/g1GCPhaseTimes.hpp
src/share/vm/gc_implementation/g1/g1GCPhaseTimes.hpp
+2
-0
test/Makefile
test/Makefile
+3
-3
未找到文件。
src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp
浏览文件 @
6b94025c
...
...
@@ -131,17 +131,23 @@ void WorkerDataArray<T>::print(int level, const char* title) {
#ifndef PRODUCT
template
<
>
const
int
WorkerDataArray
<
int
>::
_uninitialized
=
-
1
;
template
<
>
const
double
WorkerDataArray
<
double
>::
_uninitialized
=
-
1.0
;
template
<
>
const
size_t
WorkerDataArray
<
size_t
>::
_uninitialized
=
(
size_t
)
-
1
;
template
<
class
T
>
void
WorkerDataArray
<
T
>::
reset
()
{
for
(
uint
i
=
0
;
i
<
_length
;
i
++
)
{
_data
[
i
]
=
(
T
)
-
1
;
_data
[
i
]
=
(
T
)
_uninitialized
;
}
}
template
<
class
T
>
void
WorkerDataArray
<
T
>::
verify
()
{
for
(
uint
i
=
0
;
i
<
_length
;
i
++
)
{
assert
(
_data
[
i
]
>=
(
T
)
0
,
err_msg
(
"Invalid data for worker %d"
,
i
));
assert
(
_data
[
i
]
!=
_uninitialized
,
err_msg
(
"Invalid data for worker "
UINT32_FORMAT
", data: %lf, uninitialized: %lf"
,
i
,
(
double
)
_data
[
i
],
(
double
)
_uninitialized
));
}
}
...
...
@@ -201,20 +207,20 @@ void G1GCPhaseTimes::note_gc_end() {
_last_termination_attempts
.
verify
();
_last_gc_worker_end_times_ms
.
verify
();
for
(
uint
i
=
0
;
i
<
_active_gc_threads
;
i
++
)
{
double
worker_time
=
_last_gc_worker_end_times_ms
.
get
(
i
)
-
_last_gc_worker_start_times_ms
.
get
(
i
);
_last_gc_worker_times_ms
.
set
(
i
,
worker_time
);
for
(
uint
i
=
0
;
i
<
_active_gc_threads
;
i
++
)
{
double
worker_time
=
_last_gc_worker_end_times_ms
.
get
(
i
)
-
_last_gc_worker_start_times_ms
.
get
(
i
);
_last_gc_worker_times_ms
.
set
(
i
,
worker_time
);
double
worker_known_time
=
_last_ext_root_scan_times_ms
.
get
(
i
)
+
_last_satb_filtering_times_ms
.
get
(
i
)
+
_last_update_rs_times_ms
.
get
(
i
)
+
_last_scan_rs_times_ms
.
get
(
i
)
+
_last_obj_copy_times_ms
.
get
(
i
)
+
_last_termination_times_ms
.
get
(
i
);
double
worker_known_time
=
_last_ext_root_scan_times_ms
.
get
(
i
)
+
_last_satb_filtering_times_ms
.
get
(
i
)
+
_last_update_rs_times_ms
.
get
(
i
)
+
_last_scan_rs_times_ms
.
get
(
i
)
+
_last_obj_copy_times_ms
.
get
(
i
)
+
_last_termination_times_ms
.
get
(
i
);
double
worker_other_time
=
worker_time
-
worker_known_time
;
_last_gc_worker_other_times_ms
.
set
(
i
,
worker_other_time
);
}
double
worker_other_time
=
worker_time
-
worker_known_time
;
_last_gc_worker_other_times_ms
.
set
(
i
,
worker_other_time
);
}
_last_gc_worker_times_ms
.
verify
();
_last_gc_worker_other_times_ms
.
verify
();
...
...
src/share/vm/gc_implementation/g1/g1GCPhaseTimes.hpp
浏览文件 @
6b94025c
...
...
@@ -35,6 +35,8 @@ class WorkerDataArray : public CHeapObj<mtGC> {
const
char
*
_print_format
;
bool
_print_sum
;
NOT_PRODUCT
(
static
const
T
_uninitialized
;)
// We are caching the sum and average to only have to calculate them once.
// This is not done in an MT-safe way. It is intetened to allow single
// threaded code to call sum() and average() multiple times in any order
...
...
test/Makefile
浏览文件 @
6b94025c
...
...
@@ -189,9 +189,9 @@ jtreg_tests: prep $(JT_HOME) $(PRODUCT_HOME) $(JTREG)
$(JTREG)
-a
-v
:fail,error
\
$(JTREG_KEY_OPTION)
\
$(EXTRA_JTREG_OPTIONS)
\
-r
:
$(
ABS_TEST_OUTPUT_DIR
)
/JTreport
\
-w
:
$(
ABS_TEST_OUTPUT_DIR
)
/JTwork
\
-jdk
:
$(
PRODUCT_HOME
)
\
-r
:
$(
shell
$(GETMIXEDPATH)
"
$(ABS_TEST_OUTPUT_DIR)
"
)
/JTreport
\
-w
:
$(
shell
$(GETMIXEDPATH)
"
$(ABS_TEST_OUTPUT_DIR)
"
)
/JTwork
\
-jdk
:
$(
shell
$(GETMIXEDPATH)
"
$(PRODUCT_HOME)
"
)
\
$
(
JAVA_OPTIONS:%
=
-vmoption
:%
)
\
$(JTREG_TESTDIRS)
\
||
$(BUNDLE_UP_FAILED)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录