# HG changeset patch # User kamg # Date 1329267739 18000 # Node ID 1f4d0b5be982ed2f5480b217f04cdeeec53e1122 # Parent 319ab6f186deaea1c82c6dfd7a806103cc3e4b48 7145589: First JSDT provider creation fails Summary: 0 is a successful return from an ioctl() call Reviewed-by: dcubed, phh, dsamersoff diff -r 319ab6f186de -r 1f4d0b5be982 hotspot/src/share/vm/runtime/dtraceJSDT.cpp --- a/hotspot/src/share/vm/runtime/dtraceJSDT.cpp Tue Feb 14 15:52:17 2012 -0500 +++ b/hotspot/src/share/vm/runtime/dtraceJSDT.cpp Tue Feb 14 20:02:19 2012 -0500 @@ -82,7 +82,7 @@ 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).");