Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
eef43e7b
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看板
提交
eef43e7b
编写于
2月 27, 2013
作者:
C
coleenp
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
0c84cdb5
3da41fda
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
31 addition
and
6 deletion
+31
-6
src/cpu/sparc/vm/frame_sparc.cpp
src/cpu/sparc/vm/frame_sparc.cpp
+5
-0
src/cpu/x86/vm/frame_x86.cpp
src/cpu/x86/vm/frame_x86.cpp
+6
-0
src/share/vm/classfile/classLoaderData.hpp
src/share/vm/classfile/classLoaderData.hpp
+1
-0
src/share/vm/classfile/classLoaderData.inline.hpp
src/share/vm/classfile/classLoaderData.inline.hpp
+8
-2
src/share/vm/classfile/dictionary.cpp
src/share/vm/classfile/dictionary.cpp
+1
-0
src/share/vm/classfile/systemDictionary.cpp
src/share/vm/classfile/systemDictionary.cpp
+10
-4
未找到文件。
src/cpu/sparc/vm/frame_sparc.cpp
浏览文件 @
eef43e7b
...
@@ -216,6 +216,11 @@ bool frame::safe_for_sender(JavaThread *thread) {
...
@@ -216,6 +216,11 @@ bool frame::safe_for_sender(JavaThread *thread) {
}
}
}
}
// Could just be some random pointer within the codeBlob
if
(
!
_cb
->
code_contains
(
_pc
))
{
return
false
;
}
// Entry frame checks
// Entry frame checks
if
(
is_entry_frame
())
{
if
(
is_entry_frame
())
{
// an entry frame must have a valid fp.
// an entry frame must have a valid fp.
...
...
src/cpu/x86/vm/frame_x86.cpp
浏览文件 @
eef43e7b
...
@@ -91,6 +91,12 @@ bool frame::safe_for_sender(JavaThread *thread) {
...
@@ -91,6 +91,12 @@ bool frame::safe_for_sender(JavaThread *thread) {
return
false
;
return
false
;
}
}
}
}
// Could just be some random pointer within the codeBlob
if
(
!
_cb
->
code_contains
(
_pc
))
{
return
false
;
}
// Entry frame checks
// Entry frame checks
if
(
is_entry_frame
())
{
if
(
is_entry_frame
())
{
// an entry frame must have a valid fp.
// an entry frame must have a valid fp.
...
...
src/share/vm/classfile/classLoaderData.hpp
浏览文件 @
eef43e7b
...
@@ -234,6 +234,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
...
@@ -234,6 +234,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
void
add_to_deallocate_list
(
Metadata
*
m
);
void
add_to_deallocate_list
(
Metadata
*
m
);
static
ClassLoaderData
*
class_loader_data
(
oop
loader
);
static
ClassLoaderData
*
class_loader_data
(
oop
loader
);
static
ClassLoaderData
*
class_loader_data_or_null
(
oop
loader
);
static
ClassLoaderData
*
anonymous_class_loader_data
(
oop
loader
,
TRAPS
);
static
ClassLoaderData
*
anonymous_class_loader_data
(
oop
loader
,
TRAPS
);
static
void
print_loader
(
ClassLoaderData
*
loader_data
,
outputStream
*
out
);
static
void
print_loader
(
ClassLoaderData
*
loader_data
,
outputStream
*
out
);
...
...
src/share/vm/classfile/classLoaderData.inline.hpp
浏览文件 @
eef43e7b
...
@@ -25,9 +25,15 @@
...
@@ -25,9 +25,15 @@
#include "classfile/classLoaderData.hpp"
#include "classfile/classLoaderData.hpp"
#include "classfile/javaClasses.hpp"
#include "classfile/javaClasses.hpp"
inline
ClassLoaderData
*
ClassLoaderData
::
class_loader_data_or_null
(
oop
loader
)
{
if
(
loader
==
NULL
)
{
return
ClassLoaderData
::
the_null_class_loader_data
();
}
return
java_lang_ClassLoader
::
loader_data
(
loader
);
}
inline
ClassLoaderData
*
ClassLoaderData
::
class_loader_data
(
oop
loader
)
{
inline
ClassLoaderData
*
ClassLoaderData
::
class_loader_data
(
oop
loader
)
{
if
(
loader
==
NULL
)
return
ClassLoaderData
::
the_null_class_loader_data
();
ClassLoaderData
*
loader_data
=
class_loader_data_or_null
(
loader
);
ClassLoaderData
*
loader_data
=
java_lang_ClassLoader
::
loader_data
(
loader
);
assert
(
loader_data
!=
NULL
,
"Must be"
);
assert
(
loader_data
!=
NULL
,
"Must be"
);
return
loader_data
;
return
loader_data
;
}
}
...
...
src/share/vm/classfile/dictionary.cpp
浏览文件 @
eef43e7b
...
@@ -347,6 +347,7 @@ void Dictionary::add_klass(Symbol* class_name, ClassLoaderData* loader_data,
...
@@ -347,6 +347,7 @@ void Dictionary::add_klass(Symbol* class_name, ClassLoaderData* loader_data,
assert_locked_or_safepoint
(
SystemDictionary_lock
);
assert_locked_or_safepoint
(
SystemDictionary_lock
);
assert
(
obj
()
!=
NULL
,
"adding NULL obj"
);
assert
(
obj
()
!=
NULL
,
"adding NULL obj"
);
assert
(
obj
()
->
name
()
==
class_name
,
"sanity check on name"
);
assert
(
obj
()
->
name
()
==
class_name
,
"sanity check on name"
);
assert
(
loader_data
!=
NULL
,
"Must be non-NULL"
);
unsigned
int
hash
=
compute_hash
(
class_name
,
loader_data
);
unsigned
int
hash
=
compute_hash
(
class_name
,
loader_data
);
int
index
=
hash_to_index
(
hash
);
int
index
=
hash_to_index
(
hash
);
...
...
src/share/vm/classfile/systemDictionary.cpp
浏览文件 @
eef43e7b
...
@@ -866,16 +866,22 @@ Klass* SystemDictionary::resolve_instance_class_or_null(Symbol* name, Handle cla
...
@@ -866,16 +866,22 @@ Klass* SystemDictionary::resolve_instance_class_or_null(Symbol* name, Handle cla
// the new entry.
// the new entry.
Klass
*
SystemDictionary
::
find
(
Symbol
*
class_name
,
Klass
*
SystemDictionary
::
find
(
Symbol
*
class_name
,
Handle
class_loader
,
Handle
class_loader
,
Handle
protection_domain
,
Handle
protection_domain
,
TRAPS
)
{
TRAPS
)
{
// UseNewReflection
// UseNewReflection
// The result of this call should be consistent with the result
// The result of this call should be consistent with the result
// of the call to resolve_instance_class_or_null().
// of the call to resolve_instance_class_or_null().
// See evaluation 6790209 and 4474172 for more details.
// See evaluation 6790209 and 4474172 for more details.
class_loader
=
Handle
(
THREAD
,
java_lang_ClassLoader
::
non_reflection_class_loader
(
class_loader
()));
class_loader
=
Handle
(
THREAD
,
java_lang_ClassLoader
::
non_reflection_class_loader
(
class_loader
()));
ClassLoaderData
*
loader_data
=
register_loader
(
class_loader
,
CHECK_NULL
);
ClassLoaderData
*
loader_data
=
ClassLoaderData
::
class_loader_data_or_null
(
class_loader
());
if
(
loader_data
==
NULL
)
{
// If the ClassLoaderData has not been setup,
// then the class loader has no entries in the dictionary.
return
NULL
;
}
unsigned
int
d_hash
=
dictionary
()
->
compute_hash
(
class_name
,
loader_data
);
unsigned
int
d_hash
=
dictionary
()
->
compute_hash
(
class_name
,
loader_data
);
int
d_index
=
dictionary
()
->
hash_to_index
(
d_hash
);
int
d_index
=
dictionary
()
->
hash_to_index
(
d_hash
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录