Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
4462ca1f
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看板
提交
4462ca1f
编写于
10月 13, 2009
作者:
N
never
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6889302: TraceExceptions output should include detail message
Reviewed-by: twisti, jrose, kvn
上级
3fecd1b0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
6 deletion
+9
-6
src/share/vm/utilities/exceptions.cpp
src/share/vm/utilities/exceptions.cpp
+8
-5
src/share/vm/utilities/exceptions.hpp
src/share/vm/utilities/exceptions.hpp
+1
-1
未找到文件。
src/share/vm/utilities/exceptions.cpp
浏览文件 @
4462ca1f
...
@@ -103,15 +103,18 @@ void Exceptions::_throw_oop(Thread* thread, const char* file, int line, oop exce
...
@@ -103,15 +103,18 @@ void Exceptions::_throw_oop(Thread* thread, const char* file, int line, oop exce
_throw
(
thread
,
file
,
line
,
h_exception
);
_throw
(
thread
,
file
,
line
,
h_exception
);
}
}
void
Exceptions
::
_throw
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
Handle
h_exception
)
{
void
Exceptions
::
_throw
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
Handle
h_exception
,
const
char
*
message
)
{
assert
(
h_exception
()
!=
NULL
,
"exception should not be NULL"
);
assert
(
h_exception
()
!=
NULL
,
"exception should not be NULL"
);
// tracing (do this up front - so it works during boot strapping)
// tracing (do this up front - so it works during boot strapping)
if
(
TraceExceptions
)
{
if
(
TraceExceptions
)
{
ttyLocker
ttyl
;
ttyLocker
ttyl
;
ResourceMark
rm
;
ResourceMark
rm
;
tty
->
print_cr
(
"Exception <%s> ("
INTPTR_FORMAT
" )
\n
thrown [%s, line %d]
\n
for thread "
INTPTR_FORMAT
,
tty
->
print_cr
(
"Exception <%s>%s%s ("
INTPTR_FORMAT
" )
\n
"
h_exception
->
print_value_string
(),
(
address
)
h_exception
(),
file
,
line
,
thread
);
"thrown [%s, line %d]
\n
for thread "
INTPTR_FORMAT
,
h_exception
->
print_value_string
(),
message
?
": "
:
""
,
message
?
message
:
""
,
(
address
)
h_exception
(),
file
,
line
,
thread
);
}
}
// for AbortVMOnException flag
// for AbortVMOnException flag
NOT_PRODUCT
(
Exceptions
::
debug_check_abort
(
h_exception
));
NOT_PRODUCT
(
Exceptions
::
debug_check_abort
(
h_exception
));
...
@@ -135,7 +138,7 @@ void Exceptions::_throw_msg(Thread* thread, const char* file, int line, symbolHa
...
@@ -135,7 +138,7 @@ void Exceptions::_throw_msg(Thread* thread, const char* file, int line, symbolHa
// Create and throw exception
// Create and throw exception
Handle
h_cause
(
thread
,
NULL
);
Handle
h_cause
(
thread
,
NULL
);
Handle
h_exception
=
new_exception
(
thread
,
h_name
,
message
,
h_cause
,
h_loader
,
h_protection_domain
);
Handle
h_exception
=
new_exception
(
thread
,
h_name
,
message
,
h_cause
,
h_loader
,
h_protection_domain
);
_throw
(
thread
,
file
,
line
,
h_exception
);
_throw
(
thread
,
file
,
line
,
h_exception
,
message
);
}
}
// Throw an exception with a message and a cause
// Throw an exception with a message and a cause
...
@@ -144,7 +147,7 @@ void Exceptions::_throw_msg_cause(Thread* thread, const char* file, int line, sy
...
@@ -144,7 +147,7 @@ void Exceptions::_throw_msg_cause(Thread* thread, const char* file, int line, sy
if
(
special_exception
(
thread
,
file
,
line
,
h_name
,
message
))
return
;
if
(
special_exception
(
thread
,
file
,
line
,
h_name
,
message
))
return
;
// Create and throw exception and init cause
// Create and throw exception and init cause
Handle
h_exception
=
new_exception
(
thread
,
h_name
,
message
,
h_cause
,
h_loader
,
h_protection_domain
);
Handle
h_exception
=
new_exception
(
thread
,
h_name
,
message
,
h_cause
,
h_loader
,
h_protection_domain
);
_throw
(
thread
,
file
,
line
,
h_exception
);
_throw
(
thread
,
file
,
line
,
h_exception
,
message
);
}
}
// This version creates handles and calls the other version
// This version creates handles and calls the other version
...
...
src/share/vm/utilities/exceptions.hpp
浏览文件 @
4462ca1f
...
@@ -103,7 +103,7 @@ class Exceptions {
...
@@ -103,7 +103,7 @@ class Exceptions {
}
ExceptionMsgToUtf8Mode
;
}
ExceptionMsgToUtf8Mode
;
// Throw exceptions: w/o message, w/ message & with formatted message.
// Throw exceptions: w/o message, w/ message & with formatted message.
static
void
_throw_oop
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
oop
exception
);
static
void
_throw_oop
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
oop
exception
);
static
void
_throw
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
Handle
exception
);
static
void
_throw
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
Handle
exception
,
const
char
*
msg
=
NULL
);
static
void
_throw_msg
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
static
void
_throw_msg
(
Thread
*
thread
,
const
char
*
file
,
int
line
,
symbolHandle
name
,
const
char
*
message
,
Handle
loader
,
symbolHandle
name
,
const
char
*
message
,
Handle
loader
,
Handle
protection_domain
);
Handle
protection_domain
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录