Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
ad074b94
D
dragonwell11
项目概览
openanolis
/
dragonwell11
通知
7
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell11
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ad074b94
编写于
12月 09, 2013
作者:
E
ehelin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8029326: G1 does not check if threads gets created
Reviewed-by: brutisso, jmasa, jwilhelm
上级
6febfa6c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
0 deletion
+8
-0
hotspot/src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp
.../src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp
+5
-0
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
+3
-0
未找到文件。
hotspot/src/share/vm/gc_implementation/g1/concurrentG1Refine.cpp
浏览文件 @
ad074b94
...
...
@@ -27,6 +27,7 @@
#include "gc_implementation/g1/concurrentG1RefineThread.hpp"
#include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
#include "gc_implementation/g1/g1HotCardCache.hpp"
#include "runtime/java.hpp"
ConcurrentG1Refine
::
ConcurrentG1Refine
(
G1CollectedHeap
*
g1h
)
:
_threads
(
NULL
),
_n_threads
(
0
),
...
...
@@ -62,6 +63,10 @@ ConcurrentG1Refine::ConcurrentG1Refine(G1CollectedHeap* g1h) :
for
(
int
i
=
_n_threads
-
1
;
i
>=
0
;
i
--
)
{
ConcurrentG1RefineThread
*
t
=
new
ConcurrentG1RefineThread
(
this
,
next
,
worker_id_offset
,
i
);
assert
(
t
!=
NULL
,
"Conc refine should have been created"
);
if
(
t
->
osthread
()
==
NULL
)
{
vm_shutdown_during_initialization
(
"Could not create ConcurrentG1RefineThread"
);
}
assert
(
t
->
cg1r
()
==
this
,
"Conc refine thread should refer to this"
);
_threads
[
i
]
=
t
;
next
=
t
;
...
...
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
浏览文件 @
ad074b94
...
...
@@ -553,6 +553,9 @@ ConcurrentMark::ConcurrentMark(G1CollectedHeap* g1h, ReservedSpace heap_rs) :
_cmThread
=
new
ConcurrentMarkThread
(
this
);
assert
(
cmThread
()
!=
NULL
,
"CM Thread should have been created"
);
assert
(
cmThread
()
->
cm
()
!=
NULL
,
"CM Thread should refer to this cm"
);
if
(
_cmThread
->
osthread
()
==
NULL
)
{
vm_shutdown_during_initialization
(
"Could not create ConcurrentMarkThread"
);
}
assert
(
CGC_lock
!=
NULL
,
"Where's the CGC_lock?"
);
assert
(
_markBitMap1
.
covers
(
heap_rs
),
"_markBitMap1 inconsistency"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录