Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
6cc1117d
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看板
提交
6cc1117d
编写于
8月 02, 2013
作者:
A
anoll
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8021301: better event messages
Summary: made event messages better readable Reviewed-by: kvn, rbackman
上级
d1c138c6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
5 deletion
+9
-5
src/share/vm/classfile/classLoader.cpp
src/share/vm/classfile/classLoader.cpp
+1
-1
src/share/vm/utilities/exceptions.cpp
src/share/vm/utilities/exceptions.cpp
+8
-4
未找到文件。
src/share/vm/classfile/classLoader.cpp
浏览文件 @
6cc1117d
...
...
@@ -878,7 +878,7 @@ objArrayOop ClassLoader::get_system_packages(TRAPS) {
instanceKlassHandle
ClassLoader
::
load_classfile
(
Symbol
*
h_name
,
TRAPS
)
{
ResourceMark
rm
(
THREAD
);
EventMark
m
(
"loading class
"
INTPTR_FORMAT
,
(
address
)
h_name
);
EventMark
m
(
"loading class
%s"
,
h_name
->
as_C_string
()
);
ThreadProfilerMark
tpm
(
ThreadProfilerMark
::
classLoaderRegion
);
stringStream
st
;
...
...
src/share/vm/utilities/exceptions.cpp
浏览文件 @
6cc1117d
...
...
@@ -125,13 +125,13 @@ void Exceptions::_throw_oop(Thread* thread, const char* file, int line, oop exce
}
void
Exceptions
::
_throw
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
Handle
h_exception
,
const
char
*
message
)
{
ResourceMark
rm
;
assert
(
h_exception
()
!=
NULL
,
"exception should not be NULL"
);
// tracing (do this up front - so it works during boot strapping)
if
(
TraceExceptions
)
{
ttyLocker
ttyl
;
ResourceMark
rm
;
tty
->
print_cr
(
"Exception <%s>%s%s ("
INTPTR_FORMAT
" )
\n
"
tty
->
print_cr
(
"Exception <%s%s%s> ("
INTPTR_FORMAT
")
\n
"
"thrown [%s, line %d]
\n
for thread "
INTPTR_FORMAT
,
h_exception
->
print_value_string
(),
message
?
": "
:
""
,
message
?
message
:
""
,
...
...
@@ -141,7 +141,9 @@ void Exceptions::_throw(Thread* thread, const char* file, int line, Handle h_exc
NOT_PRODUCT
(
Exceptions
::
debug_check_abort
(
h_exception
,
message
));
// Check for special boot-strapping/vm-thread handling
if
(
special_exception
(
thread
,
file
,
line
,
h_exception
))
return
;
if
(
special_exception
(
thread
,
file
,
line
,
h_exception
))
{
return
;
}
assert
(
h_exception
->
is_a
(
SystemDictionary
::
Throwable_klass
()),
"exception is not a subclass of java/lang/Throwable"
);
...
...
@@ -149,7 +151,9 @@ void Exceptions::_throw(Thread* thread, const char* file, int line, Handle h_exc
thread
->
set_pending_exception
(
h_exception
(),
file
,
line
);
// vm log
Events
::
log_exception
(
thread
,
"Threw "
INTPTR_FORMAT
" at %s:%d"
,
(
address
)
h_exception
(),
file
,
line
);
Events
::
log_exception
(
thread
,
"Exception <%s%s%s> ("
INTPTR_FORMAT
") thrown at [%s, line %d]"
,
h_exception
->
print_value_string
(),
message
?
": "
:
""
,
message
?
message
:
""
,
(
address
)
h_exception
(),
file
,
line
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录