Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
0f24cda1
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看板
提交
0f24cda1
编写于
7月 11, 2014
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8049831: Metadata Full GCs are not triggered when CMSClassUnloadingEnabled is turned off
Reviewed-by: brutisso, tschatzl, ehelin, jmasa, dfazunen
上级
4cef28b1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
16 deletion
+18
-16
src/share/vm/gc_implementation/shared/vmGCOperations.cpp
src/share/vm/gc_implementation/shared/vmGCOperations.cpp
+17
-16
test/TEST.groups
test/TEST.groups
+1
-0
未找到文件。
src/share/vm/gc_implementation/shared/vmGCOperations.cpp
浏览文件 @
0f24cda1
/*
* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -211,28 +211,29 @@ void VM_GenCollectFull::doit() {
bool
VM_CollectForMetadataAllocation
::
initiate_concurrent_GC
()
{
#if INCLUDE_ALL_GCS
if
(
UseConcMarkSweepGC
||
UseG1GC
)
{
if
(
UseConcMarkSweepGC
&&
CMSClassUnloadingEnabled
)
{
MetaspaceGC
::
set_should_concurrent_collect
(
true
);
}
else
if
(
UseG1GC
)
{
G1CollectedHeap
*
g1h
=
G1CollectedHeap
::
heap
();
g1h
->
g1_policy
()
->
set_initiate_conc_mark_if_possible
();
if
(
UseConcMarkSweepGC
&&
CMSClassUnloadingEnabled
)
{
MetaspaceGC
::
set_should_concurrent_collect
(
true
);
return
true
;
}
GCCauseSetter
x
(
g1h
,
_gc_cause
);
if
(
UseG1GC
)
{
G1CollectedHeap
*
g1h
=
G1CollectedHeap
::
heap
();
g1h
->
g1_policy
()
->
set_initiate_conc_mark_if_possible
();
// At this point we are supposed to start a concurrent cycle. We
// will do so if one is not already in progress.
bool
should_start
=
g1h
->
g1_policy
()
->
force_initial_mark_if_outside_cycle
(
_gc_cause
);
GCCauseSetter
x
(
g1h
,
_gc_cause
);
if
(
should_start
)
{
double
pause_target
=
g1h
->
g1_policy
()
->
max_pause_time_ms
();
g1h
->
do_collection_pause_at_safepoint
(
pause_target
);
}
}
// At this point we are supposed to start a concurrent cycle. We
// will do so if one is not already in progress.
bool
should_start
=
g1h
->
g1_policy
()
->
force_initial_mark_if_outside_cycle
(
_gc_cause
);
if
(
should_start
)
{
double
pause_target
=
g1h
->
g1_policy
()
->
max_pause_time_ms
();
g1h
->
do_collection_pause_at_safepoint
(
pause_target
);
}
return
true
;
}
#endif
return
false
;
}
...
...
test/TEST.groups
浏览文件 @
0f24cda1
...
...
@@ -169,6 +169,7 @@ compact1 = \
#
needs_full_vm_compact1 = \
runtime/NMT \
gc/class_unloading/TestCMSClassUnloadingDisabledHWM.java \
gc/g1/TestRegionAlignment.java \
gc/g1/TestShrinkToOneRegion.java \
gc/metaspace/G1AddMetaspaceDependency.java \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录