Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
e488fffa
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e488fffa
编写于
2月 11, 2011
作者:
S
stefank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7018257: jmm_DumpThreads allocates into permgen
Summary: Don't allocate in permgen Reviewed-by: ysr, sla
上级
1340e14e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
15 addition
and
5 deletion
+15
-5
src/share/vm/memory/oopFactory.cpp
src/share/vm/memory/oopFactory.cpp
+12
-3
src/share/vm/memory/oopFactory.hpp
src/share/vm/memory/oopFactory.hpp
+1
-0
src/share/vm/services/management.cpp
src/share/vm/services/management.cpp
+2
-2
未找到文件。
src/share/vm/memory/oopFactory.cpp
浏览文件 @
e488fffa
...
...
@@ -92,12 +92,21 @@ objArrayOop oopFactory::new_objArray(klassOop klass, int length, TRAPS) {
}
}
objArrayOop
oopFactory
::
new_system_objArray
(
int
length
,
TRAPS
)
{
objArrayOop
oopFactory
::
new_system_objArray
(
int
length
,
bool
in_perm_gen
,
TRAPS
)
{
int
size
=
objArrayOopDesc
::
object_size
(
length
);
KlassHandle
klass
(
THREAD
,
Universe
::
systemObjArrayKlassObj
());
objArrayOop
o
=
(
objArrayOop
)
Universe
::
heap
()
->
permanent_array_allocate
(
klass
,
size
,
length
,
CHECK_NULL
);
oop
o
;
if
(
in_perm_gen
)
{
o
=
Universe
::
heap
()
->
permanent_array_allocate
(
klass
,
size
,
length
,
CHECK_NULL
);
}
else
{
o
=
Universe
::
heap
()
->
array_allocate
(
klass
,
size
,
length
,
CHECK_NULL
);
}
// initialization not needed, allocated cleared
return
(
objArrayOop
)
o
;
}
objArrayOop
oopFactory
::
new_system_objArray
(
int
length
,
TRAPS
)
{
objArrayOop
o
=
oopFactory
::
new_system_objArray
(
length
,
true
,
CHECK_NULL
);
return
o
;
}
...
...
src/share/vm/memory/oopFactory.hpp
浏览文件 @
e488fffa
...
...
@@ -102,6 +102,7 @@ public:
// System object arrays
static
objArrayOop
new_system_objArray
(
int
length
,
TRAPS
);
static
objArrayOop
new_system_objArray
(
int
length
,
bool
in_perm_gen
,
TRAPS
);
// Regular object arrays
static
objArrayOop
new_objArray
(
klassOop
klass
,
int
length
,
TRAPS
);
...
...
src/share/vm/services/management.cpp
浏览文件 @
e488fffa
...
...
@@ -1310,7 +1310,7 @@ JVM_ENTRY(jobjectArray, jmm_DumpThreads(JNIEnv *env, jlongArray thread_ids, jboo
if
(
locked_monitors
)
{
// Constructs Object[] and int[] to contain the object monitor and the stack depth
// where the thread locked it
objArrayOop
array
=
oopFactory
::
new_system_objArray
(
num_locked_monitors
,
CHECK_NULL
);
objArrayOop
array
=
oopFactory
::
new_system_objArray
(
num_locked_monitors
,
false
,
CHECK_NULL
);
objArrayHandle
mh
(
THREAD
,
array
);
monitors_array
=
mh
;
...
...
@@ -1352,7 +1352,7 @@ JVM_ENTRY(jobjectArray, jmm_DumpThreads(JNIEnv *env, jlongArray thread_ids, jboo
GrowableArray
<
instanceOop
>*
locks
=
(
tcl
!=
NULL
?
tcl
->
owned_locks
()
:
NULL
);
int
num_locked_synchronizers
=
(
locks
!=
NULL
?
locks
->
length
()
:
0
);
objArrayOop
array
=
oopFactory
::
new_system_objArray
(
num_locked_synchronizers
,
CHECK_NULL
);
objArrayOop
array
=
oopFactory
::
new_system_objArray
(
num_locked_synchronizers
,
false
,
CHECK_NULL
);
objArrayHandle
sh
(
THREAD
,
array
);
synchronizers_array
=
sh
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录