Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
3d730e82
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看板
提交
3d730e82
编写于
1月 03, 2012
作者:
J
jmasa
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
80d0251e
1baf2cd4
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
12 addition
and
16 deletion
+12
-16
src/os/bsd/vm/os_bsd.cpp
src/os/bsd/vm/os_bsd.cpp
+1
-1
src/os/linux/vm/os_linux.cpp
src/os/linux/vm/os_linux.cpp
+2
-2
src/os/solaris/vm/os_solaris.cpp
src/os/solaris/vm/os_solaris.cpp
+1
-1
src/os/windows/vm/os_windows.cpp
src/os/windows/vm/os_windows.cpp
+1
-1
src/share/vm/gc_implementation/g1/concurrentMark.cpp
src/share/vm/gc_implementation/g1/concurrentMark.cpp
+2
-6
src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp
src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp
+3
-3
src/share/vm/gc_implementation/shared/mutableSpace.cpp
src/share/vm/gc_implementation/shared/mutableSpace.cpp
+1
-1
src/share/vm/runtime/os.hpp
src/share/vm/runtime/os.hpp
+1
-1
未找到文件。
src/os/bsd/vm/os_bsd.cpp
浏览文件 @
3d730e82
...
...
@@ -2835,7 +2835,7 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
#endif
}
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
)
{
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
)
{
::
madvise
(
addr
,
bytes
,
MADV_DONTNEED
);
}
...
...
src/os/linux/vm/os_linux.cpp
浏览文件 @
3d730e82
...
...
@@ -2546,8 +2546,8 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
}
}
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
)
{
commit_memory
(
addr
,
bytes
,
false
);
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
)
{
commit_memory
(
addr
,
bytes
,
alignment_hint
,
false
);
}
void
os
::
numa_make_global
(
char
*
addr
,
size_t
bytes
)
{
...
...
src/os/solaris/vm/os_solaris.cpp
浏览文件 @
3d730e82
...
...
@@ -2821,7 +2821,7 @@ bool os::commit_memory(char* addr, size_t bytes, size_t alignment_hint,
}
// Uncommit the pages in a specified region.
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
)
{
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
)
{
if
(
madvise
(
addr
,
bytes
,
MADV_FREE
)
<
0
)
{
debug_only
(
warning
(
"MADV_FREE failed."
));
return
;
...
...
src/os/windows/vm/os_windows.cpp
浏览文件 @
3d730e82
...
...
@@ -3130,7 +3130,7 @@ bool os::unguard_memory(char* addr, size_t bytes) {
}
void
os
::
realign_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
)
{
}
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
)
{
}
void
os
::
free_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
)
{
}
void
os
::
numa_make_global
(
char
*
addr
,
size_t
bytes
)
{
}
void
os
::
numa_make_local
(
char
*
addr
,
size_t
bytes
,
int
lgrp_hint
)
{
}
bool
os
::
numa_topology_changed
()
{
return
false
;
}
...
...
src/share/vm/gc_implementation/g1/concurrentMark.cpp
浏览文件 @
3d730e82
...
...
@@ -726,12 +726,8 @@ void ConcurrentMark::set_non_marking_state() {
}
ConcurrentMark
::~
ConcurrentMark
()
{
for
(
int
i
=
0
;
i
<
(
int
)
_max_task_num
;
++
i
)
{
delete
_task_queues
->
queue
(
i
);
delete
_tasks
[
i
];
}
delete
_task_queues
;
FREE_C_HEAP_ARRAY
(
CMTask
*
,
_max_task_num
);
// The ConcurrentMark instance is never freed.
ShouldNotReachHere
();
}
// This closure is used to mark refs into the g1 generation
...
...
src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp
浏览文件 @
3d730e82
...
...
@@ -282,7 +282,7 @@ void MutableNUMASpace::bias_region(MemRegion mr, int lgrp_id) {
// large page can be broken down if we require small pages.
os
::
realign_memory
((
char
*
)
aligned_region
.
start
(),
aligned_region
.
byte_size
(),
page_size
());
// Then we uncommit the pages in the range.
os
::
free_memory
((
char
*
)
aligned_region
.
start
(),
aligned_region
.
byte_size
());
os
::
free_memory
((
char
*
)
aligned_region
.
start
(),
aligned_region
.
byte_size
()
,
page_size
()
);
// And make them local/first-touch biased.
os
::
numa_make_local
((
char
*
)
aligned_region
.
start
(),
aligned_region
.
byte_size
(),
lgrp_id
);
}
...
...
@@ -297,7 +297,7 @@ void MutableNUMASpace::free_region(MemRegion mr) {
assert
((
intptr_t
)
aligned_region
.
start
()
%
page_size
()
==
0
&&
(
intptr_t
)
aligned_region
.
byte_size
()
%
page_size
()
==
0
,
"Bad alignment"
);
assert
(
region
().
contains
(
aligned_region
),
"Sanity"
);
os
::
free_memory
((
char
*
)
aligned_region
.
start
(),
aligned_region
.
byte_size
());
os
::
free_memory
((
char
*
)
aligned_region
.
start
(),
aligned_region
.
byte_size
()
,
page_size
()
);
}
}
...
...
@@ -954,7 +954,7 @@ void MutableNUMASpace::LGRPSpace::scan_pages(size_t page_size, size_t page_count
if
(
e
!=
scan_end
)
{
if
((
page_expected
.
size
!=
page_size
||
page_expected
.
lgrp_id
!=
lgrp_id
())
&&
page_expected
.
size
!=
0
)
{
os
::
free_memory
(
s
,
pointer_delta
(
e
,
s
,
sizeof
(
char
)));
os
::
free_memory
(
s
,
pointer_delta
(
e
,
s
,
sizeof
(
char
))
,
page_size
);
}
page_expected
=
page_found
;
}
...
...
src/share/vm/gc_implementation/shared/mutableSpace.cpp
浏览文件 @
3d730e82
...
...
@@ -51,7 +51,7 @@ void MutableSpace::numa_setup_pages(MemRegion mr, bool clear_space) {
size_t
size
=
pointer_delta
(
end
,
start
,
sizeof
(
char
));
if
(
clear_space
)
{
// Prefer page reallocation to migration.
os
::
free_memory
((
char
*
)
start
,
size
);
os
::
free_memory
((
char
*
)
start
,
size
,
page_size
);
}
os
::
numa_make_global
((
char
*
)
start
,
size
);
}
...
...
src/share/vm/runtime/os.hpp
浏览文件 @
3d730e82
...
...
@@ -256,7 +256,7 @@ class os: AllStatic {
char
*
addr
,
size_t
bytes
,
bool
read_only
,
bool
allow_exec
);
static
bool
unmap_memory
(
char
*
addr
,
size_t
bytes
);
static
void
free_memory
(
char
*
addr
,
size_t
bytes
);
static
void
free_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
);
static
void
realign_memory
(
char
*
addr
,
size_t
bytes
,
size_t
alignment_hint
);
// NUMA-specific interface
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录