Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
b18339e0
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看板
提交
b18339e0
编写于
2月 25, 2011
作者:
T
tonyp
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
53a43ae4
846af577
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
15 deletion
+5
-15
src/share/vm/memory/oopFactory.cpp
src/share/vm/memory/oopFactory.cpp
+3
-12
src/share/vm/memory/oopFactory.hpp
src/share/vm/memory/oopFactory.hpp
+0
-1
src/share/vm/services/management.cpp
src/share/vm/services/management.cpp
+2
-2
未找到文件。
src/share/vm/memory/oopFactory.cpp
浏览文件 @
b18339e0
...
...
@@ -92,21 +92,12 @@ objArrayOop oopFactory::new_objArray(klassOop klass, int length, TRAPS) {
}
}
objArrayOop
oopFactory
::
new_system_objArray
(
int
length
,
bool
in_perm_gen
,
TRAPS
)
{
objArrayOop
oopFactory
::
new_system_objArray
(
int
length
,
TRAPS
)
{
int
size
=
objArrayOopDesc
::
object_size
(
length
);
KlassHandle
klass
(
THREAD
,
Universe
::
systemObjArrayKlassObj
());
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
);
}
objArrayOop
o
=
(
objArrayOop
)
Universe
::
heap
()
->
permanent_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
浏览文件 @
b18339e0
...
...
@@ -102,7 +102,6 @@ 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
浏览文件 @
b18339e0
...
...
@@ -1311,7 +1311,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
,
false
,
CHECK_NULL
);
objArrayOop
array
=
oopFactory
::
new_
objArray
(
SystemDictionary
::
Object_klass
(),
num_locked_monitors
,
CHECK_NULL
);
objArrayHandle
mh
(
THREAD
,
array
);
monitors_array
=
mh
;
...
...
@@ -1353,7 +1353,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
,
false
,
CHECK_NULL
);
objArrayOop
array
=
oopFactory
::
new_
objArray
(
SystemDictionary
::
Object_klass
(),
num_locked_synchronizers
,
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录