Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
80621b1d
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看板
提交
80621b1d
编写于
10月 21, 2011
作者:
T
tonyp
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
1c5c2fd8
b0de3cc4
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
13 addition
and
1 deletion
+13
-1
src/share/vm/gc_implementation/g1/heapRegion.hpp
src/share/vm/gc_implementation/g1/heapRegion.hpp
+8
-0
src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp
src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp
+5
-1
未找到文件。
src/share/vm/gc_implementation/g1/heapRegion.hpp
浏览文件 @
80621b1d
...
...
@@ -431,6 +431,14 @@ class HeapRegion: public G1OffsetTableContigSpace {
return
_humongous_start_region
;
}
// Same as Space::is_in_reserved, but will use the original size of the region.
// The original size is different only for start humongous regions. They get
// their _end set up to be the end of the last continues region of the
// corresponding humongous object.
bool
is_in_reserved_raw
(
const
void
*
p
)
const
{
return
_bottom
<=
p
&&
p
<
_orig_end
;
}
// Makes the current region be a "starts humongous" region, i.e.,
// the first region in a series of one or more contiguous regions
// that will contain a single "humongous" object. The two parameters
...
...
src/share/vm/gc_implementation/g1/heapRegionRemSet.cpp
浏览文件 @
80621b1d
...
...
@@ -143,7 +143,11 @@ protected:
// If the test below fails, then this table was reused concurrently
// with this operation. This is OK, since the old table was coarsened,
// and adding a bit to the new table is never incorrect.
if
(
loc_hr
->
is_in_reserved
(
from
))
{
// If the table used to belong to a continues humongous region and is
// now reused for the corresponding start humongous region, we need to
// make sure that we detect this. Thus, we call is_in_reserved_raw()
// instead of just is_in_reserved() here.
if
(
loc_hr
->
is_in_reserved_raw
(
from
))
{
size_t
hw_offset
=
pointer_delta
((
HeapWord
*
)
from
,
loc_hr
->
bottom
());
CardIdx_t
from_card
=
(
CardIdx_t
)
hw_offset
>>
(
CardTableModRefBS
::
card_shift
-
LogHeapWordSize
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录