Lines Matching refs:env

83   static jint WrapAttachCurrentThread(ProxyJavaVM* vm, JNIEnv** env, void* res) {  in WrapAttachCurrentThread()
84 return vm->real_vm->AttachCurrentThread(env, res); in WrapAttachCurrentThread()
89 static jint WrapAttachCurrentThreadAsDaemon(ProxyJavaVM* vm, JNIEnv** env, void* res) { in WrapAttachCurrentThreadAsDaemon()
90 return vm->real_vm->AttachCurrentThreadAsDaemon(env, res); in WrapAttachCurrentThreadAsDaemon()
129 static jvmtiError WrapDisposeEnvironment(jvmtiEnv* env) { in WrapDisposeEnvironment()
131 const_cast<jvmtiInterface_1_*>(env->functions)); in WrapDisposeEnvironment()
132 jvmtiInterface_1_** out_iface = const_cast<jvmtiInterface_1_**>(&env->functions); in WrapDisposeEnvironment()
134 funcs->original_interface->Deallocate(env, reinterpret_cast<unsigned char*>(funcs)); in WrapDisposeEnvironment()
135 jvmtiError res = (*out_iface)->DisposeEnvironment(env); in WrapDisposeEnvironment()
139 static jvmtiError WrapGetSystemProperty(jvmtiEnv* env, const char* prop, char** out) { in WrapGetSystemProperty()
141 const_cast<jvmtiInterface_1_*>(env->functions)); in WrapGetSystemProperty()
146 jvmtiError res = env->Allocate(val.size() + 1, reinterpret_cast<unsigned char**>(out)); in WrapGetSystemProperty()
153 return funcs->original_interface->GetSystemProperty(env, prop, out); in WrapGetSystemProperty()
157 static jvmtiError WrapGetSystemProperties(jvmtiEnv* env, jint* cnt, char*** prop_ptr) { in WrapGetSystemProperties()
159 const_cast<jvmtiInterface_1_*>(env->functions)); in WrapGetSystemProperties()
162 jvmtiError res = funcs->original_interface->GetSystemProperties(env, &init_cnt, &init_prop_ptr); in WrapGetSystemProperties()
172 env->Deallocate(reinterpret_cast<unsigned char*>(init_prop_ptr[i])); in WrapGetSystemProperties()
174 env->Deallocate(reinterpret_cast<unsigned char*>(init_prop_ptr)); in WrapGetSystemProperties()
176 res = env->Allocate(all_props.size() * sizeof(char*), in WrapGetSystemProperties()
184 res = env->Allocate(p.size() + 1, reinterpret_cast<unsigned char**>(&out_prop_ptr[i])); in WrapGetSystemProperties()
195 static jvmtiError WrapSetSystemProperty(jvmtiEnv* env, const char* prop, const char* val) { in WrapSetSystemProperty()
197 const_cast<jvmtiInterface_1_*>(env->functions)); in WrapSetSystemProperty()
198 jvmtiError res = funcs->original_interface->SetSystemProperty(env, prop, val); in WrapSetSystemProperty()