/titanic_41/usr/src/lib/libdtrace_jni/common/ |
H A D | dtj_consume.c | 114 JNIEnv *jenv = jc->dtjj_jenv; in dtj_get_dtrace_error() local 118 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_get_dtrace_error() 119 WRAP_EXCEPTION(jenv); in dtj_get_dtrace_error() 123 (*jenv)->MonitorEnter(jenv, g_caller_jc); in dtj_get_dtrace_error() 124 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_get_dtrace_error() 125 WRAP_EXCEPTION(jenv); in dtj_get_dtrace_error() 130 (*jenv)->MonitorExit(jenv, g_caller_jc); in dtj_get_dtrace_error() 131 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_get_dtrace_error() 132 WRAP_EXCEPTION(jenv); in dtj_get_dtrace_error() 200 JNIEnv *jenv; in dtj_drophandler() local [all …]
|
H A D | dtj_attr.c | 105 JNIEnv *jenv = jc->dtjj_jenv; in dtj_new_attribute() local 112 jattr = (*jenv)->NewObject(jenv, g_attr_jc, g_attrinit_jm); in dtj_new_attribute() 113 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_new_attribute() 120 dtj_throw_illegal_argument(jenv, in dtj_new_attribute() 123 (*jenv)->DeleteLocalRef(jenv, jattr); in dtj_new_attribute() 126 jname = (*jenv)->NewStringUTF(jenv, name); in dtj_new_attribute() 127 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_new_attribute() 128 (*jenv)->DeleteLocalRef(jenv, jattr); in dtj_new_attribute() 131 (*jenv)->CallVoidMethod(jenv, jattr, g_attrset_name_jm, jname); in dtj_new_attribute() 132 (*jenv)->DeleteLocalRef(jenv, jname); in dtj_new_attribute() [all …]
|
H A D | dtj_util.c | 159 dtj_load_common(JNIEnv *jenv) in dtj_load_common() argument 257 status = dtj_cache_jni_classes(jenv, table); in dtj_load_common() 297 dtj_java_class_create(JNIEnv *jenv, jclass *jc, char *name, in dtj_java_class_create() argument 309 dtj_throw_out_of_memory(jenv, in dtj_java_class_create() 318 dtj_throw_out_of_memory(jenv, in dtj_java_class_create() 327 dtj_throw_out_of_memory(jenv, in dtj_java_class_create() 334 dtj_java_method_create(JNIEnv *jenv, jmethodID *jm, char *name, char *signature, in dtj_java_method_create() argument 345 dtj_throw_out_of_memory(jenv, in dtj_java_method_create() 352 dtj_java_static_method_create(JNIEnv *jenv, jmethodID *jm, char *name, in dtj_java_static_method_create() argument 355 dtj_java_method_t *m = dtj_java_method_create(jenv, jm, name, signature, in dtj_java_static_method_create() [all …]
|
H A D | dtj_probe.c | 41 JNIEnv *jenv = jc->dtjj_jenv; in dtj_new_probedesc() local 49 jprov = (*jenv)->NewStringUTF(jenv, probedesc->dtpd_provider); in dtj_new_probedesc() 50 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_new_probedesc() 53 jmod = (*jenv)->NewStringUTF(jenv, probedesc->dtpd_mod); in dtj_new_probedesc() 54 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_new_probedesc() 57 jfunc = (*jenv)->NewStringUTF(jenv, probedesc->dtpd_func); in dtj_new_probedesc() 58 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_new_probedesc() 61 jname = (*jenv)->NewStringUTF(jenv, probedesc->dtpd_name); in dtj_new_probedesc() 62 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_new_probedesc() 65 jprobedesc = (*jenv)->NewObject(jenv, g_probedesc_jc, in dtj_new_probedesc() [all …]
|
H A D | dtj_jnitab.c | 223 dtj_table_load(JNIEnv *jenv) in dtj_table_load() argument 489 return (dtj_cache_jni_classes(jenv, table)); in dtj_table_load() 493 dtj_load(JNIEnv *jenv) in dtj_load() argument 495 if (dtj_load_common(jenv) != DTJ_OK) { in dtj_load() 500 return (dtj_table_load(jenv)); in dtj_load() 520 dtj_request_create(JNIEnv *jenv, dtj_request_type_t type, ...) in dtj_request_create() argument 525 dtj_throw_out_of_memory(jenv, in dtj_request_create() 552 dtj_throw_out_of_memory(jenv, in dtj_request_create() 562 dtj_throw_out_of_memory(jenv, in dtj_request_create() 569 dtj_throw_out_of_memory(jenv, in dtj_request_create() [all …]
|
H A D | dtrace_jni.c | 148 dtj_get_handle(JNIEnv *jenv, jobject caller) in dtj_get_handle() argument 153 dtj_throw_illegal_state(jenv, "JNI table not loaded"); in dtj_get_handle() 156 handle = (*jenv)->CallIntMethod(jenv, caller, g_gethandle_jm); in dtj_get_handle() 157 if ((*jenv)->ExceptionCheck(jenv)) { in dtj_get_handle() 161 dtj_throw_illegal_state(jenv, "no consumer handle"); in dtj_get_handle() 174 dtj_get_java_consumer(JNIEnv *jenv, jobject caller, dtj_java_consumer_t *jc) in dtj_get_java_consumer() argument 177 int handle = dtj_get_handle(jenv, caller); in dtj_get_java_consumer() 193 dtj_throw_no_such_element(jenv, "consumer handle %d", handle); in dtj_get_java_consumer() 205 jc->dtjj_jenv = jenv; in dtj_get_java_consumer() 217 dtj_add_consumer(JNIEnv *jenv, dtj_consumer_t *c, int *seq) in dtj_add_consumer() argument [all …]
|
H A D | dtj_util.h | 258 extern void dtj_print_object(JNIEnv *jenv, jobject obj); 263 extern jobject dtj_uint64(JNIEnv *jenv, uint64_t); 269 extern jobject dtj_int128(JNIEnv *jenv, uint64_t, uint64_t); 276 extern jstring dtj_format_string(JNIEnv *jenv, const char *fmt, ...); 283 extern jstring dtj_NewStringNative(JNIEnv *jenv, const char *str); 284 extern char *dtj_GetStringNativeChars(JNIEnv *jenv, jstring jstr); 285 extern void dtj_ReleaseStringNativeChars(JNIEnv *jenv, jstring jstr, 300 extern char **dtj_get_argv(JNIEnv *jenv, jobjectArray args, int *argc); 310 extern char **dtj_make_argv(JNIEnv *jenv, jstring cmd, int *argc);
|
/titanic_41/usr/src/cmd/pools/poold/libjpool/ |
H A D | jpool.c | 76 throw_pe(JNIEnv *jenv) in throw_pe() argument 82 clazz = (*jenv)->FindClass(jenv, in throw_pe() 84 mid = (*jenv)->GetMethodID(jenv, clazz, "<init>", "()V"); in throw_pe() 85 throwObj = (*jenv)->NewObject(jenv, clazz, mid); in throw_pe() 86 (*jenv)->Throw(jenv, throwObj); in throw_pe() 128 copyArray(JNIEnv *jenv, void **nativeArray) in copyArray() argument 139 ALclazz = (*jenv)->FindClass(jenv, in copyArray() 141 ALinit = (*jenv)->GetMethodID(jenv, in copyArray() 143 ALadd = (*jenv)->GetMethodID(jenv, in copyArray() 145 jresult = (*jenv)->NewObject(jenv, ALclazz, ALinit); in copyArray() [all …]
|