Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell11
提交
06010840
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,发现更多精彩内容 >>
提交
06010840
编写于
3月 11, 2013
作者:
S
stefank
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
06e5f138
1149c693
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
8 deletion
+19
-8
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
+1
-1
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.hpp
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.hpp
+7
-3
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.inline.hpp
...c/share/vm/gc_implementation/g1/concurrentMark.inline.hpp
+2
-4
hotspot/src/share/vm/runtime/arguments.cpp
hotspot/src/share/vm/runtime/arguments.cpp
+8
-0
hotspot/src/share/vm/runtime/arguments.hpp
hotspot/src/share/vm/runtime/arguments.hpp
+1
-0
未找到文件。
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.cpp
浏览文件 @
06010840
...
...
@@ -4111,7 +4111,7 @@ void CMTask::do_marking_step(double time_target_ms,
// bitmap knows by how much we need to move it as it knows its
// granularity).
assert
(
_finger
<
_region_limit
,
"invariant"
);
HeapWord
*
new_finger
=
_nextMarkBitMap
->
next
Word
(
_finger
);
HeapWord
*
new_finger
=
_nextMarkBitMap
->
next
Object
(
_finger
);
// Check if bitmap iteration was aborted while scanning the last object
if
(
new_finger
>=
_region_limit
)
{
giveup_current_region
();
...
...
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.hpp
浏览文件 @
06010840
...
...
@@ -97,7 +97,6 @@ class CMBitMapRO VALUE_OBJ_CLASS_SPEC {
HeapWord
*
limit
=
NULL
)
const
;
// conversion utilities
// XXX Fix these so that offsets are size_t's...
HeapWord
*
offsetToHeapWord
(
size_t
offset
)
const
{
return
_bmStartWord
+
(
offset
<<
_shifter
);
}
...
...
@@ -105,8 +104,13 @@ class CMBitMapRO VALUE_OBJ_CLASS_SPEC {
return
pointer_delta
(
addr
,
_bmStartWord
)
>>
_shifter
;
}
int
heapWordDiffToOffsetDiff
(
size_t
diff
)
const
;
HeapWord
*
nextWord
(
HeapWord
*
addr
)
{
return
offsetToHeapWord
(
heapWordToOffset
(
addr
)
+
1
);
// The argument addr should be the start address of a valid object
HeapWord
*
nextObject
(
HeapWord
*
addr
)
{
oop
obj
=
(
oop
)
addr
;
HeapWord
*
res
=
addr
+
obj
->
size
();
assert
(
offsetToHeapWord
(
heapWordToOffset
(
res
))
==
res
,
"sanity"
);
return
res
;
}
// debugging
...
...
hotspot/src/share/vm/gc_implementation/g1/concurrentMark.inline.hpp
浏览文件 @
06010840
/*
* Copyright (c) 2001, 201
2
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
3
, 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
...
...
@@ -252,12 +252,10 @@ inline bool CMBitMapRO::iterate(BitMapClosure* cl, MemRegion mr) {
start_offset
=
_bm
.
get_next_one_offset
(
start_offset
,
end_offset
);
while
(
start_offset
<
end_offset
)
{
HeapWord
*
obj_addr
=
offsetToHeapWord
(
start_offset
);
oop
obj
=
(
oop
)
obj_addr
;
if
(
!
cl
->
do_bit
(
start_offset
))
{
return
false
;
}
HeapWord
*
next_addr
=
MIN2
(
obj_addr
+
obj
->
size
(
),
end_addr
);
HeapWord
*
next_addr
=
MIN2
(
nextObject
(
offsetToHeapWord
(
start_offset
)
),
end_addr
);
BitMap
::
idx_t
next_offset
=
heapWordToOffset
(
next_addr
);
start_offset
=
_bm
.
get_next_one_offset
(
next_offset
,
end_offset
);
}
...
...
hotspot/src/share/vm/runtime/arguments.cpp
浏览文件 @
06010840
...
...
@@ -1813,6 +1813,13 @@ void Arguments::check_deprecated_gcs() {
}
}
void
Arguments
::
check_deprecated_gc_flags
()
{
if
(
FLAG_IS_CMDLINE
(
MaxGCMinorPauseMillis
))
{
warning
(
"Using MaxGCMinorPauseMillis as minor pause goal is deprecated"
"and will likely be removed in future release"
);
}
}
// Check stack pages settings
bool
Arguments
::
check_stack_pages
()
{
...
...
@@ -3292,6 +3299,7 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
set_g1_gc_flags
();
}
check_deprecated_gcs
();
check_deprecated_gc_flags
();
#else // INCLUDE_ALL_GCS
assert
(
verify_serial_gc_flags
(),
"SerialGC unset"
);
#endif // INCLUDE_ALL_GCS
...
...
hotspot/src/share/vm/runtime/arguments.hpp
浏览文件 @
06010840
...
...
@@ -414,6 +414,7 @@ class Arguments : AllStatic {
// Check for consistency in the selection of the garbage collector.
static
bool
check_gc_consistency
();
static
void
check_deprecated_gcs
();
static
void
check_deprecated_gc_flags
();
// Check consistecy or otherwise of VM argument settings
static
bool
check_vm_args_consistency
();
// Check stack pages settings
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录