Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/dtraceJSDT.cpp @ 4927:b8a4e1d372a0
7145589: First JSDT provider creation fails
Summary: 0 is a successful return from an ioctl() call
Reviewed-by: dcubed, phh, dsamersoff
author | kamg |
---|---|
date | Tue, 14 Feb 2012 20:02:19 -0500 |
parents | f95d63e2154a |
children | da91efe96a93 |
comparison
equal
deleted
inserted
replaced
4924:a9ac4910e7f2 | 4927:b8a4e1d372a0 |
---|---|
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 int handle = pd_activate((void*)probes, | 83 int handle = pd_activate((void*)probes, |
84 module_name, providers_count, providers); | 84 module_name, providers_count, providers); |
85 if (handle <= 0) { | 85 if (handle < 0) { |
86 delete probes; | 86 delete probes; |
87 THROW_MSG_0(vmSymbols::java_lang_RuntimeException(), | 87 THROW_MSG_0(vmSymbols::java_lang_RuntimeException(), |
88 "Unable to register DTrace probes (internal error)."); | 88 "Unable to register DTrace probes (internal error)."); |
89 } | 89 } |
90 probes->set_helper_handle(handle); | 90 probes->set_helper_handle(handle); |