提交 4857d5b1 编写于 作者: K kamg

7145589: First JSDT provider creation fails

Summary: 0 is a successful return from an ioctl() call
Reviewed-by: dcubed, phh, dsamersoff
上级 35f940d1
......@@ -82,7 +82,7 @@ jlong DTraceJSDT::activate(
int handle = pd_activate((void*)probes,
module_name, providers_count, providers);
if (handle <= 0) {
if (handle < 0) {
delete probes;
THROW_MSG_0(vmSymbols::java_lang_RuntimeException(),
"Unable to register DTrace probes (internal error).");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册