Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
e501e4b8
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看板
提交
e501e4b8
编写于
11月 28, 2012
作者:
Z
zgu
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
7810646a
287cee22
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
27 addition
and
4 deletion
+27
-4
src/share/vm/gc_implementation/concurrentMarkSweep/vmStructs_cms.hpp
...m/gc_implementation/concurrentMarkSweep/vmStructs_cms.hpp
+1
-2
src/share/vm/prims/jni.cpp
src/share/vm/prims/jni.cpp
+6
-0
src/share/vm/runtime/vmStructs.cpp
src/share/vm/runtime/vmStructs.cpp
+15
-2
src/share/vm/runtime/vmStructs.hpp
src/share/vm/runtime/vmStructs.hpp
+5
-0
未找到文件。
src/share/vm/gc_implementation/concurrentMarkSweep/vmStructs_cms.hpp
浏览文件 @
e501e4b8
...
...
@@ -65,8 +65,7 @@ typedef BinaryTreeDictionary<FreeChunk, AdaptiveFreeList> AFLBinaryTreeDictionar
declare_toplevel_type(AFLBinaryTreeDictionary*) \
declare_toplevel_type(LinearAllocBlock) \
declare_toplevel_type(FreeBlockDictionary<FreeChunk>) \
declare_type(AFLBinaryTreeDictionary, FreeBlockDictionary<FreeChunk>) \
declare_type(AFLBinaryTreeDictionary, FreeBlockDictionary<FreeChunk>) \
declare_type(AFLBinaryTreeDictionary, FreeBlockDictionary<FreeChunk>)
#define VM_INT_CONSTANTS_CMS(declare_constant) \
declare_constant(Generation::ConcurrentMarkSweep) \
...
...
src/share/vm/prims/jni.cpp
浏览文件 @
e501e4b8
...
...
@@ -5044,6 +5044,9 @@ _JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_GetDefaultJavaVMInitArgs(void *args_) {
#include "gc_interface/collectedHeap.hpp"
#include "utilities/quickSort.hpp"
#if INCLUDE_VM_STRUCTS
#include "runtime/vmStructs.hpp"
#endif
#define run_unit_test(unit_test_function_call) \
tty->print_cr("Running test: " #unit_test_function_call); \
...
...
@@ -5056,6 +5059,9 @@ void execute_internal_vm_tests() {
run_unit_test
(
CollectedHeap
::
test_is_in
());
run_unit_test
(
QuickSort
::
test_quick_sort
());
run_unit_test
(
AltHashing
::
test_alt_hash
());
#if INCLUDE_VM_STRUCTS
run_unit_test
(
VMStructs
::
test
());
#endif
tty
->
print_cr
(
"All internal VM tests passed"
);
}
}
...
...
src/share/vm/runtime/vmStructs.cpp
浏览文件 @
e501e4b8
...
...
@@ -2107,7 +2107,6 @@ typedef BinaryTreeDictionary<Metablock, FreeList> MetablockTreeDictionary;
declare_toplevel_type(FreeList<Metablock>*) \
declare_toplevel_type(FreeList<Metablock>) \
declare_toplevel_type(MetablockTreeDictionary*) \
declare_type(MetablockTreeDictionary, FreeBlockDictionary<Metablock>) \
declare_type(MetablockTreeDictionary, FreeBlockDictionary<Metablock>)
...
...
@@ -3215,3 +3214,17 @@ VMStructs::findType(const char* typeName) {
void
vmStructs_init
()
{
debug_only
(
VMStructs
::
init
());
}
#ifndef PRODUCT
void
VMStructs
::
test
()
{
// Check for duplicate entries in type array
for
(
int
i
=
0
;
localHotSpotVMTypes
[
i
].
typeName
!=
NULL
;
i
++
)
{
for
(
int
j
=
i
+
1
;
localHotSpotVMTypes
[
j
].
typeName
!=
NULL
;
j
++
)
{
if
(
strcmp
(
localHotSpotVMTypes
[
i
].
typeName
,
localHotSpotVMTypes
[
j
].
typeName
)
==
0
)
{
tty
->
print_cr
(
"Duplicate entries for '%s'"
,
localHotSpotVMTypes
[
i
].
typeName
);
assert
(
false
,
"Duplicate types in localHotSpotVMTypes array"
);
}
}
}
}
#endif
src/share/vm/runtime/vmStructs.hpp
浏览文件 @
e501e4b8
...
...
@@ -123,6 +123,11 @@ public:
// the data structure (debug build only)
static
void
init
();
#ifndef PRODUCT
// Execute unit tests
static
void
test
();
#endif
private:
// Look up a type in localHotSpotVMTypes using strcmp() (debug build only).
// Returns 1 if found, 0 if not.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录