Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
92208b59
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看板
提交
92208b59
编写于
10月 06, 2015
作者:
A
asaha
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
ddacb939
e78394ef
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
17 deletion
+18
-17
.hgtags
.hgtags
+1
-0
src/share/vm/gc_implementation/g1/g1RootProcessor.cpp
src/share/vm/gc_implementation/g1/g1RootProcessor.cpp
+16
-16
src/share/vm/gc_implementation/g1/g1RootProcessor.hpp
src/share/vm/gc_implementation/g1/g1RootProcessor.hpp
+1
-1
未找到文件。
.hgtags
浏览文件 @
92208b59
...
...
@@ -755,3 +755,4 @@ ab64d7ea4f48ea4bdbcc43d4a653be157d9c29e3 jdk8u66-b12
5b67af3317bce1f940c5dc1535411a1002bed6c1 jdk8u66-b15
4bbf0e9196f2786e0bc4f17664e2533808d944bf jdk8u66-b16
b8f426369187c32551f0a3d571d933908988c81c jdk8u72-b00
c0205eddb31766ece562483595ec28a7506971e9 jdk8u72-b01
src/share/vm/gc_implementation/g1/g1RootProcessor.cpp
浏览文件 @
92208b59
...
...
@@ -117,7 +117,7 @@ void G1RootProcessor::wait_until_all_strong_classes_discovered() {
G1RootProcessor
::
G1RootProcessor
(
G1CollectedHeap
*
g1h
)
:
_g1h
(
g1h
),
_process_strong_tasks
(
new
SubTasksDone
(
G1RP_PS_NumElements
)
),
_process_strong_tasks
(
G1RP_PS_NumElements
),
_srs
(
g1h
),
_lock
(
Mutex
::
leaf
,
"G1 Root Scanning barrier lock"
,
false
),
_n_workers_discovered_strong_classes
(
0
)
{}
...
...
@@ -160,7 +160,7 @@ void G1RootProcessor::evacuate_roots(OopClosure* scan_non_heap_roots,
{
// Now the CM ref_processor roots.
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
CMRefRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_refProcessor_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_refProcessor_oops_do
))
{
// We need to treat the discovered reference lists of the
// concurrent mark ref processor as roots and keep entries
// (which are added by the marking threads) on them live
...
...
@@ -203,12 +203,12 @@ void G1RootProcessor::evacuate_roots(OopClosure* scan_non_heap_roots,
// as implicitly live).
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
SATBFiltering
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_filter_satb_buffers
)
&&
_g1h
->
mark_in_progress
())
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_filter_satb_buffers
)
&&
_g1h
->
mark_in_progress
())
{
JavaThread
::
satb_mark_queue_set
().
filter_thread_buffers
();
}
}
_process_strong_tasks
->
all_tasks_completed
();
_process_strong_tasks
.
all_tasks_completed
();
}
void
G1RootProcessor
::
process_strong_roots
(
OopClosure
*
oops
,
...
...
@@ -218,7 +218,7 @@ void G1RootProcessor::process_strong_roots(OopClosure* oops,
process_java_roots
(
oops
,
clds
,
clds
,
NULL
,
blobs
,
NULL
,
0
);
process_vm_roots
(
oops
,
NULL
,
NULL
,
0
);
_process_strong_tasks
->
all_tasks_completed
();
_process_strong_tasks
.
all_tasks_completed
();
}
void
G1RootProcessor
::
process_all_roots
(
OopClosure
*
oops
,
...
...
@@ -228,11 +228,11 @@ void G1RootProcessor::process_all_roots(OopClosure* oops,
process_java_roots
(
oops
,
NULL
,
clds
,
clds
,
NULL
,
NULL
,
0
);
process_vm_roots
(
oops
,
oops
,
NULL
,
0
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_CodeCache_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_CodeCache_oops_do
))
{
CodeCache
::
blobs_do
(
blobs
);
}
_process_strong_tasks
->
all_tasks_completed
();
_process_strong_tasks
.
all_tasks_completed
();
}
void
G1RootProcessor
::
process_java_roots
(
OopClosure
*
strong_roots
,
...
...
@@ -248,7 +248,7 @@ void G1RootProcessor::process_java_roots(OopClosure* strong_roots,
// let the thread process the weak CLDs and nmethods.
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
CLDGRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_ClassLoaderDataGraph_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_ClassLoaderDataGraph_oops_do
))
{
ClassLoaderDataGraph
::
roots_cld_do
(
strong_clds
,
weak_clds
);
}
}
...
...
@@ -265,49 +265,49 @@ void G1RootProcessor::process_vm_roots(OopClosure* strong_roots,
uint
worker_i
)
{
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
UniverseRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_Universe_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_Universe_oops_do
))
{
Universe
::
oops_do
(
strong_roots
);
}
}
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
JNIRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_JNIHandles_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_JNIHandles_oops_do
))
{
JNIHandles
::
oops_do
(
strong_roots
);
}
}
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
ObjectSynchronizerRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_ObjectSynchronizer_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_ObjectSynchronizer_oops_do
))
{
ObjectSynchronizer
::
oops_do
(
strong_roots
);
}
}
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
FlatProfilerRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_FlatProfiler_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_FlatProfiler_oops_do
))
{
FlatProfiler
::
oops_do
(
strong_roots
);
}
}
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
ManagementRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_Management_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_Management_oops_do
))
{
Management
::
oops_do
(
strong_roots
);
}
}
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
JVMTIRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_jvmti_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_jvmti_oops_do
))
{
JvmtiExport
::
oops_do
(
strong_roots
);
}
}
{
G1GCParPhaseTimesTracker
x
(
phase_times
,
G1GCPhaseTimes
::
SystemDictionaryRoots
,
worker_i
);
if
(
!
_process_strong_tasks
->
is_task_claimed
(
G1RP_PS_SystemDictionary_oops_do
))
{
if
(
!
_process_strong_tasks
.
is_task_claimed
(
G1RP_PS_SystemDictionary_oops_do
))
{
SystemDictionary
::
roots_oops_do
(
strong_roots
,
weak_roots
);
}
}
...
...
@@ -335,5 +335,5 @@ void G1RootProcessor::scan_remembered_sets(G1ParPushHeapRSClosure* scan_rs,
}
void
G1RootProcessor
::
set_num_workers
(
int
active_workers
)
{
_process_strong_tasks
->
set_n_threads
(
active_workers
);
_process_strong_tasks
.
set_n_threads
(
active_workers
);
}
src/share/vm/gc_implementation/g1/g1RootProcessor.hpp
浏览文件 @
92208b59
...
...
@@ -45,7 +45,7 @@ class SubTasksDone;
// worker thread call the process_roots methods.
class
G1RootProcessor
:
public
StackObj
{
G1CollectedHeap
*
_g1h
;
SubTasksDone
*
_process_strong_tasks
;
SubTasksDone
_process_strong_tasks
;
SharedHeap
::
StrongRootsScope
_srs
;
// Used to implement the Thread work barrier.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录