From 4857d5b1b7b0e08c17edab2e64960ccefb1372da Mon Sep 17 00:00:00 2001 From: kamg Date: Tue, 14 Feb 2012 20:02:19 -0500 Subject: [PATCH] 7145589: First JSDT provider creation fails Summary: 0 is a successful return from an ioctl() call Reviewed-by: dcubed, phh, dsamersoff --- src/share/vm/runtime/dtraceJSDT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/vm/runtime/dtraceJSDT.cpp b/src/share/vm/runtime/dtraceJSDT.cpp index 23bfeb659..67b18ea27 100644 --- a/src/share/vm/runtime/dtraceJSDT.cpp +++ b/src/share/vm/runtime/dtraceJSDT.cpp @@ -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)."); -- GitLab