7145589: First JSDT provider creation fails

0 is a successful return from an ioctl() call

Reviewed-by: dcubed, phh, dsamersoff
This commit is contained in:
Keith McGuigan 2012-02-14 20:02:19 -05:00
parent 8a9ec2c624
commit ccebd55230

View File

@ -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).");