Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
fef3ee77
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看板
提交
fef3ee77
编写于
4月 14, 2015
作者:
I
iveresov
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
8cd3003d
df8542c1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
8 deletion
+10
-8
src/share/vm/classfile/classLoaderData.cpp
src/share/vm/classfile/classLoaderData.cpp
+1
-1
src/share/vm/classfile/classLoaderData.hpp
src/share/vm/classfile/classLoaderData.hpp
+1
-1
src/share/vm/gc_implementation/g1/g1RootProcessor.cpp
src/share/vm/gc_implementation/g1/g1RootProcessor.cpp
+8
-6
未找到文件。
src/share/vm/classfile/classLoaderData.cpp
浏览文件 @
fef3ee77
...
...
@@ -882,7 +882,7 @@ Klass* ClassLoaderDataGraphKlassIteratorAtomic::next_klass_in_cldg(Klass* klass)
}
Klass
*
ClassLoaderDataGraphKlassIteratorAtomic
::
next_klass
()
{
Klass
*
head
=
(
Klass
*
)
_next_klass
;
Klass
*
head
=
_next_klass
;
while
(
head
!=
NULL
)
{
Klass
*
next
=
next_klass_in_cldg
(
head
);
...
...
src/share/vm/classfile/classLoaderData.hpp
浏览文件 @
fef3ee77
...
...
@@ -307,7 +307,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
// An iterator that distributes Klasses to parallel worker threads.
class
ClassLoaderDataGraphKlassIteratorAtomic
:
public
StackObj
{
volatile
Klass
*
_next_klass
;
Klass
*
volatile
_next_klass
;
public:
ClassLoaderDataGraphKlassIteratorAtomic
();
Klass
*
next_klass
();
...
...
src/share/vm/gc_implementation/g1/g1RootProcessor.cpp
浏览文件 @
fef3ee77
...
...
@@ -93,11 +93,13 @@ void G1RootProcessor::worker_has_discovered_all_strong_classes() {
uint
n_workers
=
_g1h
->
n_par_threads
();
assert
(
ClassUnloadingWithConcurrentMark
,
"Currently only needed when doing G1 Class Unloading"
);
uint
new_value
=
(
uint
)
Atomic
::
add
(
1
,
&
_n_workers_discovered_strong_classes
);
if
(
new_value
==
n_workers
)
{
// This thread is last. Notify the others.
MonitorLockerEx
ml
(
&
_lock
,
Mutex
::
_no_safepoint_check_flag
);
_lock
.
notify_all
();
if
(
n_workers
>
0
)
{
uint
new_value
=
(
uint
)
Atomic
::
add
(
1
,
&
_n_workers_discovered_strong_classes
);
if
(
new_value
==
n_workers
)
{
// This thread is last. Notify the others.
MonitorLockerEx
ml
(
&
_lock
,
Mutex
::
_no_safepoint_check_flag
);
_lock
.
notify_all
();
}
}
}
...
...
@@ -105,7 +107,7 @@ void G1RootProcessor::wait_until_all_strong_classes_discovered() {
uint
n_workers
=
_g1h
->
n_par_threads
();
assert
(
ClassUnloadingWithConcurrentMark
,
"Currently only needed when doing G1 Class Unloading"
);
if
((
uint
)
_n_workers_discovered_strong_classes
!=
n_workers
)
{
if
(
n_workers
>
0
&&
(
uint
)
_n_workers_discovered_strong_classes
!=
n_workers
)
{
MonitorLockerEx
ml
(
&
_lock
,
Mutex
::
_no_safepoint_check_flag
);
while
((
uint
)
_n_workers_discovered_strong_classes
!=
n_workers
)
{
_lock
.
wait
(
Mutex
::
_no_safepoint_check_flag
,
0
,
false
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录