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