Lines Matching refs:env

100   static jvmtiError getEnvironmentError(jvmtiEnv* env) {  in getEnvironmentError()  argument
101 if (env == nullptr) { in getEnvironmentError()
110 #define ENSURE_VALID_ENV(env) \ argument
112 jvmtiError ensure_valid_env_ ## __LINE__ = getEnvironmentError(env); \
118 #define ENSURE_HAS_CAP(env, cap) \ argument
120 if (ArtJvmTiEnv::AsArtJvmTiEnv(env)->capabilities.cap != 1) { \
126 static jvmtiError Allocate(jvmtiEnv* env, jlong size, unsigned char** mem_ptr) { in Allocate() argument
127 jvmtiError err = getEnvironmentError(env); in Allocate()
133 return AllocUtil::Allocate(env, size, mem_ptr); in Allocate()
136 static jvmtiError Deallocate(jvmtiEnv* env, unsigned char* mem) { in Deallocate() argument
137 jvmtiError err = getEnvironmentError(env); in Deallocate()
142 return AllocUtil::Deallocate(env, mem); in Deallocate()
145 static jvmtiError GetThreadState(jvmtiEnv* env, jthread thread, jint* thread_state_ptr) { in GetThreadState() argument
146 ENSURE_VALID_ENV(env); in GetThreadState()
147 return ThreadUtil::GetThreadState(env, thread, thread_state_ptr); in GetThreadState()
150 static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr) { in GetCurrentThread() argument
151 ENSURE_VALID_ENV(env); in GetCurrentThread()
152 return ThreadUtil::GetCurrentThread(env, thread_ptr); in GetCurrentThread()
155 static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr) { in GetAllThreads() argument
156 ENSURE_VALID_ENV(env); in GetAllThreads()
157 return ThreadUtil::GetAllThreads(env, threads_count_ptr, threads_ptr); in GetAllThreads()
160 static jvmtiError SuspendThread(jvmtiEnv* env, jthread thread) { in SuspendThread() argument
161 ENSURE_VALID_ENV(env); in SuspendThread()
162 ENSURE_HAS_CAP(env, can_suspend); in SuspendThread()
163 return ThreadUtil::SuspendThread(env, thread); in SuspendThread()
166 static jvmtiError SuspendThreadList(jvmtiEnv* env, in SuspendThreadList() argument
170 ENSURE_VALID_ENV(env); in SuspendThreadList()
171 ENSURE_HAS_CAP(env, can_suspend); in SuspendThreadList()
172 return ThreadUtil::SuspendThreadList(env, request_count, request_list, results); in SuspendThreadList()
175 static jvmtiError ResumeThread(jvmtiEnv* env, jthread thread) { in ResumeThread() argument
176 ENSURE_VALID_ENV(env); in ResumeThread()
177 ENSURE_HAS_CAP(env, can_suspend); in ResumeThread()
178 return ThreadUtil::ResumeThread(env, thread); in ResumeThread()
181 static jvmtiError ResumeThreadList(jvmtiEnv* env, in ResumeThreadList() argument
185 ENSURE_VALID_ENV(env); in ResumeThreadList()
186 ENSURE_HAS_CAP(env, can_suspend); in ResumeThreadList()
187 return ThreadUtil::ResumeThreadList(env, request_count, request_list, results); in ResumeThreadList()
190 static jvmtiError StopThread(jvmtiEnv* env, jthread thread, jobject exception) { in StopThread() argument
191 ENSURE_VALID_ENV(env); in StopThread()
192 ENSURE_HAS_CAP(env, can_signal_thread); in StopThread()
193 return ThreadUtil::StopThread(env, thread, exception); in StopThread()
196 static jvmtiError InterruptThread(jvmtiEnv* env, jthread thread) { in InterruptThread() argument
197 ENSURE_VALID_ENV(env); in InterruptThread()
198 ENSURE_HAS_CAP(env, can_signal_thread); in InterruptThread()
199 return ThreadUtil::InterruptThread(env, thread); in InterruptThread()
202 static jvmtiError GetThreadInfo(jvmtiEnv* env, jthread thread, jvmtiThreadInfo* info_ptr) { in GetThreadInfo() argument
203 ENSURE_VALID_ENV(env); in GetThreadInfo()
204 return ThreadUtil::GetThreadInfo(env, thread, info_ptr); in GetThreadInfo()
207 static jvmtiError GetOwnedMonitorInfo(jvmtiEnv* env, in GetOwnedMonitorInfo() argument
211 ENSURE_VALID_ENV(env); in GetOwnedMonitorInfo()
212 ENSURE_HAS_CAP(env, can_get_owned_monitor_info); in GetOwnedMonitorInfo()
213 return StackUtil::GetOwnedMonitorInfo(env, in GetOwnedMonitorInfo()
219 static jvmtiError GetOwnedMonitorStackDepthInfo(jvmtiEnv* env, in GetOwnedMonitorStackDepthInfo() argument
223 ENSURE_VALID_ENV(env); in GetOwnedMonitorStackDepthInfo()
224 ENSURE_HAS_CAP(env, can_get_owned_monitor_stack_depth_info); in GetOwnedMonitorStackDepthInfo()
225 return StackUtil::GetOwnedMonitorStackDepthInfo(env, in GetOwnedMonitorStackDepthInfo()
231 static jvmtiError GetCurrentContendedMonitor(jvmtiEnv* env, in GetCurrentContendedMonitor() argument
234 ENSURE_VALID_ENV(env); in GetCurrentContendedMonitor()
235 ENSURE_HAS_CAP(env, can_get_current_contended_monitor); in GetCurrentContendedMonitor()
236 return MonitorUtil::GetCurrentContendedMonitor(env, thread, monitor_ptr); in GetCurrentContendedMonitor()
239 static jvmtiError RunAgentThread(jvmtiEnv* env, in RunAgentThread() argument
244 ENSURE_VALID_ENV(env); in RunAgentThread()
245 return ThreadUtil::RunAgentThread(env, thread, proc, arg, priority); in RunAgentThread()
248 static jvmtiError SetThreadLocalStorage(jvmtiEnv* env, jthread thread, const void* data) { in SetThreadLocalStorage() argument
249 ENSURE_VALID_ENV(env); in SetThreadLocalStorage()
250 return ThreadUtil::SetThreadLocalStorage(env, thread, data); in SetThreadLocalStorage()
253 static jvmtiError GetThreadLocalStorage(jvmtiEnv* env, jthread thread, void** data_ptr) { in GetThreadLocalStorage() argument
254 ENSURE_VALID_ENV(env); in GetThreadLocalStorage()
255 return ThreadUtil::GetThreadLocalStorage(env, thread, data_ptr); in GetThreadLocalStorage()
258 static jvmtiError GetTopThreadGroups(jvmtiEnv* env, in GetTopThreadGroups() argument
261 ENSURE_VALID_ENV(env); in GetTopThreadGroups()
262 return ThreadGroupUtil::GetTopThreadGroups(env, group_count_ptr, groups_ptr); in GetTopThreadGroups()
265 static jvmtiError GetThreadGroupInfo(jvmtiEnv* env, in GetThreadGroupInfo() argument
268 ENSURE_VALID_ENV(env); in GetThreadGroupInfo()
269 return ThreadGroupUtil::GetThreadGroupInfo(env, group, info_ptr); in GetThreadGroupInfo()
272 static jvmtiError GetThreadGroupChildren(jvmtiEnv* env, in GetThreadGroupChildren() argument
278 ENSURE_VALID_ENV(env); in GetThreadGroupChildren()
279 return ThreadGroupUtil::GetThreadGroupChildren(env, in GetThreadGroupChildren()
287 static jvmtiError GetStackTrace(jvmtiEnv* env, in GetStackTrace() argument
293 ENSURE_VALID_ENV(env); in GetStackTrace()
294 return StackUtil::GetStackTrace(env, in GetStackTrace()
302 static jvmtiError GetAllStackTraces(jvmtiEnv* env, in GetAllStackTraces() argument
306 ENSURE_VALID_ENV(env); in GetAllStackTraces()
307 return StackUtil::GetAllStackTraces(env, max_frame_count, stack_info_ptr, thread_count_ptr); in GetAllStackTraces()
310 static jvmtiError GetThreadListStackTraces(jvmtiEnv* env, in GetThreadListStackTraces() argument
315 ENSURE_VALID_ENV(env); in GetThreadListStackTraces()
316 return StackUtil::GetThreadListStackTraces(env, in GetThreadListStackTraces()
323 static jvmtiError GetFrameCount(jvmtiEnv* env, jthread thread, jint* count_ptr) { in GetFrameCount() argument
324 ENSURE_VALID_ENV(env); in GetFrameCount()
325 return StackUtil::GetFrameCount(env, thread, count_ptr); in GetFrameCount()
328 static jvmtiError PopFrame(jvmtiEnv* env, jthread thread) { in PopFrame() argument
329 ENSURE_VALID_ENV(env); in PopFrame()
330 ENSURE_HAS_CAP(env, can_pop_frame); in PopFrame()
331 return StackUtil::PopFrame(env, thread); in PopFrame()
334 static jvmtiError GetFrameLocation(jvmtiEnv* env, in GetFrameLocation() argument
339 ENSURE_VALID_ENV(env); in GetFrameLocation()
340 return StackUtil::GetFrameLocation(env, thread, depth, method_ptr, location_ptr); in GetFrameLocation()
343 static jvmtiError NotifyFramePop(jvmtiEnv* env, jthread thread, jint depth) { in NotifyFramePop() argument
344 ENSURE_VALID_ENV(env); in NotifyFramePop()
345 ENSURE_HAS_CAP(env, can_generate_frame_pop_events); in NotifyFramePop()
346 return StackUtil::NotifyFramePop(env, thread, depth); in NotifyFramePop()
349 static jvmtiError ForceEarlyReturnObject(jvmtiEnv* env, jthread thread, jobject value) { in ForceEarlyReturnObject() argument
350 ENSURE_VALID_ENV(env); in ForceEarlyReturnObject()
351 ENSURE_HAS_CAP(env, can_force_early_return); in ForceEarlyReturnObject()
352 return StackUtil::ForceEarlyReturn(env, gEventHandler, thread, value); in ForceEarlyReturnObject()
355 static jvmtiError ForceEarlyReturnInt(jvmtiEnv* env, jthread thread, jint value) { in ForceEarlyReturnInt() argument
356 ENSURE_VALID_ENV(env); in ForceEarlyReturnInt()
357 ENSURE_HAS_CAP(env, can_force_early_return); in ForceEarlyReturnInt()
358 return StackUtil::ForceEarlyReturn(env, gEventHandler, thread, value); in ForceEarlyReturnInt()
361 static jvmtiError ForceEarlyReturnLong(jvmtiEnv* env, jthread thread, jlong value) { in ForceEarlyReturnLong() argument
362 ENSURE_VALID_ENV(env); in ForceEarlyReturnLong()
363 ENSURE_HAS_CAP(env, can_force_early_return); in ForceEarlyReturnLong()
364 return StackUtil::ForceEarlyReturn(env, gEventHandler, thread, value); in ForceEarlyReturnLong()
367 static jvmtiError ForceEarlyReturnFloat(jvmtiEnv* env, jthread thread, jfloat value) { in ForceEarlyReturnFloat() argument
368 ENSURE_VALID_ENV(env); in ForceEarlyReturnFloat()
369 ENSURE_HAS_CAP(env, can_force_early_return); in ForceEarlyReturnFloat()
370 return StackUtil::ForceEarlyReturn(env, gEventHandler, thread, value); in ForceEarlyReturnFloat()
373 static jvmtiError ForceEarlyReturnDouble(jvmtiEnv* env, jthread thread, jdouble value) { in ForceEarlyReturnDouble() argument
374 ENSURE_VALID_ENV(env); in ForceEarlyReturnDouble()
375 ENSURE_HAS_CAP(env, can_force_early_return); in ForceEarlyReturnDouble()
376 return StackUtil::ForceEarlyReturn(env, gEventHandler, thread, value); in ForceEarlyReturnDouble()
379 static jvmtiError ForceEarlyReturnVoid(jvmtiEnv* env, jthread thread) { in ForceEarlyReturnVoid() argument
380 ENSURE_VALID_ENV(env); in ForceEarlyReturnVoid()
381 ENSURE_HAS_CAP(env, can_force_early_return); in ForceEarlyReturnVoid()
382 return StackUtil::ForceEarlyReturn<nullptr_t>(env, gEventHandler, thread, nullptr); in ForceEarlyReturnVoid()
385 static jvmtiError FollowReferences(jvmtiEnv* env, in FollowReferences() argument
391 ENSURE_VALID_ENV(env); in FollowReferences()
392 ENSURE_HAS_CAP(env, can_tag_objects); in FollowReferences()
393 HeapUtil heap_util(ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table.get()); in FollowReferences()
394 return heap_util.FollowReferences(env, in FollowReferences()
402 static jvmtiError IterateThroughHeap(jvmtiEnv* env, in IterateThroughHeap() argument
407 ENSURE_VALID_ENV(env); in IterateThroughHeap()
408 ENSURE_HAS_CAP(env, can_tag_objects); in IterateThroughHeap()
409 HeapUtil heap_util(ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table.get()); in IterateThroughHeap()
410 return heap_util.IterateThroughHeap(env, heap_filter, klass, callbacks, user_data); in IterateThroughHeap()
413 static jvmtiError GetTag(jvmtiEnv* env, jobject object, jlong* tag_ptr) { in GetTag() argument
414 ENSURE_VALID_ENV(env); in GetTag()
415 ENSURE_HAS_CAP(env, can_tag_objects); in GetTag()
417 JNIEnv* jni_env = GetJniEnv(env); in GetTag()
424 if (!ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table->GetTag(obj.Ptr(), tag_ptr)) { in GetTag()
431 static jvmtiError SetTag(jvmtiEnv* env, jobject object, jlong tag) { in SetTag() argument
432 ENSURE_VALID_ENV(env); in SetTag()
433 ENSURE_HAS_CAP(env, can_tag_objects); in SetTag()
439 JNIEnv* jni_env = GetJniEnv(env); in SetTag()
446 ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table->Set(obj.Ptr(), tag); in SetTag()
451 static jvmtiError GetObjectsWithTags(jvmtiEnv* env, in GetObjectsWithTags() argument
457 ENSURE_VALID_ENV(env); in GetObjectsWithTags()
458 ENSURE_HAS_CAP(env, can_tag_objects); in GetObjectsWithTags()
460 JNIEnv* jni_env = GetJniEnv(env); in GetObjectsWithTags()
466 return ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table->GetTaggedObjects(env, in GetObjectsWithTags()
474 static jvmtiError ForceGarbageCollection(jvmtiEnv* env) { in ForceGarbageCollection() argument
475 ENSURE_VALID_ENV(env); in ForceGarbageCollection()
476 return HeapUtil::ForceGarbageCollection(env); in ForceGarbageCollection()
480 jvmtiEnv* env, in IterateOverObjectsReachableFromObject() argument
484 ENSURE_VALID_ENV(env); in IterateOverObjectsReachableFromObject()
485 ENSURE_HAS_CAP(env, can_tag_objects); in IterateOverObjectsReachableFromObject()
490 jvmtiEnv* env, in IterateOverReachableObjects() argument
495 ENSURE_VALID_ENV(env); in IterateOverReachableObjects()
496 ENSURE_HAS_CAP(env, can_tag_objects); in IterateOverReachableObjects()
500 static jvmtiError IterateOverHeap(jvmtiEnv* env, in IterateOverHeap() argument
504 ENSURE_VALID_ENV(env); in IterateOverHeap()
505 ENSURE_HAS_CAP(env, can_tag_objects); in IterateOverHeap()
510 jvmtiEnv* env, in IterateOverInstancesOfClass() argument
515 ENSURE_VALID_ENV(env); in IterateOverInstancesOfClass()
516 ENSURE_HAS_CAP(env, can_tag_objects); in IterateOverInstancesOfClass()
517 HeapUtil heap_util(ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table.get()); in IterateOverInstancesOfClass()
519 env, klass, object_filter, heap_object_callback, user_data); in IterateOverInstancesOfClass()
522 static jvmtiError GetLocalObject(jvmtiEnv* env, in GetLocalObject() argument
527 ENSURE_VALID_ENV(env); in GetLocalObject()
528 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalObject()
529 return MethodUtil::GetLocalVariable(env, thread, depth, slot, value_ptr); in GetLocalObject()
532 static jvmtiError GetLocalInstance(jvmtiEnv* env, in GetLocalInstance() argument
536 ENSURE_VALID_ENV(env); in GetLocalInstance()
537 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalInstance()
538 return MethodUtil::GetLocalInstance(env, thread, depth, value_ptr); in GetLocalInstance()
541 static jvmtiError GetLocalInt(jvmtiEnv* env, in GetLocalInt() argument
546 ENSURE_VALID_ENV(env); in GetLocalInt()
547 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalInt()
548 return MethodUtil::GetLocalVariable(env, thread, depth, slot, value_ptr); in GetLocalInt()
551 static jvmtiError GetLocalLong(jvmtiEnv* env, in GetLocalLong() argument
556 ENSURE_VALID_ENV(env); in GetLocalLong()
557 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalLong()
558 return MethodUtil::GetLocalVariable(env, thread, depth, slot, value_ptr); in GetLocalLong()
561 static jvmtiError GetLocalFloat(jvmtiEnv* env, in GetLocalFloat() argument
566 ENSURE_VALID_ENV(env); in GetLocalFloat()
567 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalFloat()
568 return MethodUtil::GetLocalVariable(env, thread, depth, slot, value_ptr); in GetLocalFloat()
571 static jvmtiError GetLocalDouble(jvmtiEnv* env, in GetLocalDouble() argument
576 ENSURE_VALID_ENV(env); in GetLocalDouble()
577 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalDouble()
578 return MethodUtil::GetLocalVariable(env, thread, depth, slot, value_ptr); in GetLocalDouble()
581 static jvmtiError SetLocalObject(jvmtiEnv* env, in SetLocalObject() argument
586 ENSURE_VALID_ENV(env); in SetLocalObject()
587 ENSURE_HAS_CAP(env, can_access_local_variables); in SetLocalObject()
588 return MethodUtil::SetLocalVariable(env, thread, depth, slot, value); in SetLocalObject()
591 static jvmtiError SetLocalInt(jvmtiEnv* env, in SetLocalInt() argument
596 ENSURE_VALID_ENV(env); in SetLocalInt()
597 ENSURE_HAS_CAP(env, can_access_local_variables); in SetLocalInt()
598 return MethodUtil::SetLocalVariable(env, thread, depth, slot, value); in SetLocalInt()
601 static jvmtiError SetLocalLong(jvmtiEnv* env, in SetLocalLong() argument
606 ENSURE_VALID_ENV(env); in SetLocalLong()
607 ENSURE_HAS_CAP(env, can_access_local_variables); in SetLocalLong()
608 return MethodUtil::SetLocalVariable(env, thread, depth, slot, value); in SetLocalLong()
611 static jvmtiError SetLocalFloat(jvmtiEnv* env, in SetLocalFloat() argument
616 ENSURE_VALID_ENV(env); in SetLocalFloat()
617 ENSURE_HAS_CAP(env, can_access_local_variables); in SetLocalFloat()
618 return MethodUtil::SetLocalVariable(env, thread, depth, slot, value); in SetLocalFloat()
621 static jvmtiError SetLocalDouble(jvmtiEnv* env, in SetLocalDouble() argument
626 ENSURE_VALID_ENV(env); in SetLocalDouble()
627 ENSURE_HAS_CAP(env, can_access_local_variables); in SetLocalDouble()
628 return MethodUtil::SetLocalVariable(env, thread, depth, slot, value); in SetLocalDouble()
632 static jvmtiError SetBreakpoint(jvmtiEnv* env, jmethodID method, jlocation location) { in SetBreakpoint() argument
633 ENSURE_VALID_ENV(env); in SetBreakpoint()
634 ENSURE_HAS_CAP(env, can_generate_breakpoint_events); in SetBreakpoint()
635 return BreakpointUtil::SetBreakpoint(env, method, location); in SetBreakpoint()
638 static jvmtiError ClearBreakpoint(jvmtiEnv* env, jmethodID method, jlocation location) { in ClearBreakpoint() argument
639 ENSURE_VALID_ENV(env); in ClearBreakpoint()
640 ENSURE_HAS_CAP(env, can_generate_breakpoint_events); in ClearBreakpoint()
641 return BreakpointUtil::ClearBreakpoint(env, method, location); in ClearBreakpoint()
644 static jvmtiError SetFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field) { in SetFieldAccessWatch() argument
645 ENSURE_VALID_ENV(env); in SetFieldAccessWatch()
646 ENSURE_HAS_CAP(env, can_generate_field_access_events); in SetFieldAccessWatch()
647 return FieldUtil::SetFieldAccessWatch(env, klass, field); in SetFieldAccessWatch()
650 static jvmtiError ClearFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field) { in ClearFieldAccessWatch() argument
651 ENSURE_VALID_ENV(env); in ClearFieldAccessWatch()
652 ENSURE_HAS_CAP(env, can_generate_field_access_events); in ClearFieldAccessWatch()
653 return FieldUtil::ClearFieldAccessWatch(env, klass, field); in ClearFieldAccessWatch()
656 static jvmtiError SetFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field) { in SetFieldModificationWatch() argument
657 ENSURE_VALID_ENV(env); in SetFieldModificationWatch()
658 ENSURE_HAS_CAP(env, can_generate_field_modification_events); in SetFieldModificationWatch()
659 return FieldUtil::SetFieldModificationWatch(env, klass, field); in SetFieldModificationWatch()
662 static jvmtiError ClearFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field) { in ClearFieldModificationWatch() argument
663 ENSURE_VALID_ENV(env); in ClearFieldModificationWatch()
664 ENSURE_HAS_CAP(env, can_generate_field_modification_events); in ClearFieldModificationWatch()
665 return FieldUtil::ClearFieldModificationWatch(env, klass, field); in ClearFieldModificationWatch()
668 static jvmtiError GetLoadedClasses(jvmtiEnv* env, jint* class_count_ptr, jclass** classes_ptr) { in GetLoadedClasses() argument
669 ENSURE_VALID_ENV(env); in GetLoadedClasses()
670 HeapUtil heap_util(ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table.get()); in GetLoadedClasses()
671 return heap_util.GetLoadedClasses(env, class_count_ptr, classes_ptr); in GetLoadedClasses()
674 static jvmtiError GetClassLoaderClasses(jvmtiEnv* env, in GetClassLoaderClasses() argument
678 ENSURE_VALID_ENV(env); in GetClassLoaderClasses()
679 return ClassUtil::GetClassLoaderClasses(env, initiating_loader, class_count_ptr, classes_ptr); in GetClassLoaderClasses()
682 static jvmtiError GetClassSignature(jvmtiEnv* env, in GetClassSignature() argument
686 ENSURE_VALID_ENV(env); in GetClassSignature()
687 return ClassUtil::GetClassSignature(env, klass, signature_ptr, generic_ptr); in GetClassSignature()
690 static jvmtiError GetClassStatus(jvmtiEnv* env, jclass klass, jint* status_ptr) { in GetClassStatus() argument
691 ENSURE_VALID_ENV(env); in GetClassStatus()
692 return ClassUtil::GetClassStatus(env, klass, status_ptr); in GetClassStatus()
695 static jvmtiError GetSourceFileName(jvmtiEnv* env, jclass klass, char** source_name_ptr) { in GetSourceFileName() argument
696 ENSURE_VALID_ENV(env); in GetSourceFileName()
697 ENSURE_HAS_CAP(env, can_get_source_file_name); in GetSourceFileName()
698 return ClassUtil::GetSourceFileName(env, klass, source_name_ptr); in GetSourceFileName()
701 static jvmtiError GetClassModifiers(jvmtiEnv* env, jclass klass, jint* modifiers_ptr) { in GetClassModifiers() argument
702 ENSURE_VALID_ENV(env); in GetClassModifiers()
703 return ClassUtil::GetClassModifiers(env, klass, modifiers_ptr); in GetClassModifiers()
706 static jvmtiError GetClassMethods(jvmtiEnv* env, in GetClassMethods() argument
710 ENSURE_VALID_ENV(env); in GetClassMethods()
711 return ClassUtil::GetClassMethods(env, klass, method_count_ptr, methods_ptr); in GetClassMethods()
714 static jvmtiError GetClassFields(jvmtiEnv* env, in GetClassFields() argument
718 ENSURE_VALID_ENV(env); in GetClassFields()
719 return ClassUtil::GetClassFields(env, klass, field_count_ptr, fields_ptr); in GetClassFields()
722 static jvmtiError GetImplementedInterfaces(jvmtiEnv* env, in GetImplementedInterfaces() argument
726 ENSURE_VALID_ENV(env); in GetImplementedInterfaces()
727 return ClassUtil::GetImplementedInterfaces(env, klass, interface_count_ptr, interfaces_ptr); in GetImplementedInterfaces()
730 static jvmtiError GetClassVersionNumbers(jvmtiEnv* env, in GetClassVersionNumbers() argument
734 ENSURE_VALID_ENV(env); in GetClassVersionNumbers()
735 return ClassUtil::GetClassVersionNumbers(env, klass, minor_version_ptr, major_version_ptr); in GetClassVersionNumbers()
738 static jvmtiError GetConstantPool(jvmtiEnv* env, in GetConstantPool() argument
743 ENSURE_VALID_ENV(env); in GetConstantPool()
744 ENSURE_HAS_CAP(env, can_get_constant_pool); in GetConstantPool()
748 static jvmtiError IsInterface(jvmtiEnv* env, jclass klass, jboolean* is_interface_ptr) { in IsInterface() argument
749 ENSURE_VALID_ENV(env); in IsInterface()
750 return ClassUtil::IsInterface(env, klass, is_interface_ptr); in IsInterface()
753 static jvmtiError IsArrayClass(jvmtiEnv* env, in IsArrayClass() argument
756 ENSURE_VALID_ENV(env); in IsArrayClass()
757 return ClassUtil::IsArrayClass(env, klass, is_array_class_ptr); in IsArrayClass()
760 static jvmtiError IsModifiableClass(jvmtiEnv* env, in IsModifiableClass() argument
763 ENSURE_VALID_ENV(env); in IsModifiableClass()
764 return Redefiner::IsModifiableClass(env, klass, is_modifiable_class_ptr); in IsModifiableClass()
767 static jvmtiError GetClassLoader(jvmtiEnv* env, jclass klass, jobject* classloader_ptr) { in GetClassLoader() argument
768 ENSURE_VALID_ENV(env); in GetClassLoader()
769 return ClassUtil::GetClassLoader(env, klass, classloader_ptr); in GetClassLoader()
772 static jvmtiError GetSourceDebugExtension(jvmtiEnv* env, in GetSourceDebugExtension() argument
775 ENSURE_VALID_ENV(env); in GetSourceDebugExtension()
776 ENSURE_HAS_CAP(env, can_get_source_debug_extension); in GetSourceDebugExtension()
777 return ClassUtil::GetSourceDebugExtension(env, klass, source_debug_extension_ptr); in GetSourceDebugExtension()
780 static jvmtiError RetransformClasses(jvmtiEnv* env, jint class_count, const jclass* classes) { in RetransformClasses() argument
781 ENSURE_VALID_ENV(env); in RetransformClasses()
782 ENSURE_HAS_CAP(env, can_retransform_classes); in RetransformClasses()
783 return Transformer::RetransformClasses(env, class_count, classes); in RetransformClasses()
786 static jvmtiError RedefineClasses(jvmtiEnv* env, in RedefineClasses() argument
789 ENSURE_VALID_ENV(env); in RedefineClasses()
790 ENSURE_HAS_CAP(env, can_redefine_classes); in RedefineClasses()
791 return Redefiner::RedefineClasses(env, class_count, class_definitions); in RedefineClasses()
794 static jvmtiError GetObjectSize(jvmtiEnv* env, jobject object, jlong* size_ptr) { in GetObjectSize() argument
795 ENSURE_VALID_ENV(env); in GetObjectSize()
796 return ObjectUtil::GetObjectSize(env, object, size_ptr); in GetObjectSize()
799 static jvmtiError GetObjectHashCode(jvmtiEnv* env, jobject object, jint* hash_code_ptr) { in GetObjectHashCode() argument
800 ENSURE_VALID_ENV(env); in GetObjectHashCode()
801 return ObjectUtil::GetObjectHashCode(env, object, hash_code_ptr); in GetObjectHashCode()
804 static jvmtiError GetObjectMonitorUsage(jvmtiEnv* env, in GetObjectMonitorUsage() argument
807 ENSURE_VALID_ENV(env); in GetObjectMonitorUsage()
808 ENSURE_HAS_CAP(env, can_get_monitor_info); in GetObjectMonitorUsage()
809 return ObjectUtil::GetObjectMonitorUsage(env, object, info_ptr); in GetObjectMonitorUsage()
812 static jvmtiError GetFieldName(jvmtiEnv* env, in GetFieldName() argument
818 ENSURE_VALID_ENV(env); in GetFieldName()
819 return FieldUtil::GetFieldName(env, klass, field, name_ptr, signature_ptr, generic_ptr); in GetFieldName()
822 static jvmtiError GetFieldDeclaringClass(jvmtiEnv* env, in GetFieldDeclaringClass() argument
826 ENSURE_VALID_ENV(env); in GetFieldDeclaringClass()
827 return FieldUtil::GetFieldDeclaringClass(env, klass, field, declaring_class_ptr); in GetFieldDeclaringClass()
830 static jvmtiError GetFieldModifiers(jvmtiEnv* env, in GetFieldModifiers() argument
834 ENSURE_VALID_ENV(env); in GetFieldModifiers()
835 return FieldUtil::GetFieldModifiers(env, klass, field, modifiers_ptr); in GetFieldModifiers()
838 static jvmtiError IsFieldSynthetic(jvmtiEnv* env, in IsFieldSynthetic() argument
842 ENSURE_VALID_ENV(env); in IsFieldSynthetic()
843 ENSURE_HAS_CAP(env, can_get_synthetic_attribute); in IsFieldSynthetic()
844 return FieldUtil::IsFieldSynthetic(env, klass, field, is_synthetic_ptr); in IsFieldSynthetic()
847 static jvmtiError GetMethodName(jvmtiEnv* env, in GetMethodName() argument
852 ENSURE_VALID_ENV(env); in GetMethodName()
853 return MethodUtil::GetMethodName(env, method, name_ptr, signature_ptr, generic_ptr); in GetMethodName()
856 static jvmtiError GetMethodDeclaringClass(jvmtiEnv* env, in GetMethodDeclaringClass() argument
859 ENSURE_VALID_ENV(env); in GetMethodDeclaringClass()
860 return MethodUtil::GetMethodDeclaringClass(env, method, declaring_class_ptr); in GetMethodDeclaringClass()
863 static jvmtiError GetMethodModifiers(jvmtiEnv* env, in GetMethodModifiers() argument
866 ENSURE_VALID_ENV(env); in GetMethodModifiers()
867 return MethodUtil::GetMethodModifiers(env, method, modifiers_ptr); in GetMethodModifiers()
870 static jvmtiError GetMaxLocals(jvmtiEnv* env, in GetMaxLocals() argument
873 ENSURE_VALID_ENV(env); in GetMaxLocals()
874 return MethodUtil::GetMaxLocals(env, method, max_ptr); in GetMaxLocals()
877 static jvmtiError GetArgumentsSize(jvmtiEnv* env, in GetArgumentsSize() argument
880 ENSURE_VALID_ENV(env); in GetArgumentsSize()
881 return MethodUtil::GetArgumentsSize(env, method, size_ptr); in GetArgumentsSize()
884 static jvmtiError GetLineNumberTable(jvmtiEnv* env, in GetLineNumberTable() argument
888 ENSURE_VALID_ENV(env); in GetLineNumberTable()
889 ENSURE_HAS_CAP(env, can_get_line_numbers); in GetLineNumberTable()
890 return MethodUtil::GetLineNumberTable(env, method, entry_count_ptr, table_ptr); in GetLineNumberTable()
893 static jvmtiError GetMethodLocation(jvmtiEnv* env, in GetMethodLocation() argument
897 ENSURE_VALID_ENV(env); in GetMethodLocation()
898 return MethodUtil::GetMethodLocation(env, method, start_location_ptr, end_location_ptr); in GetMethodLocation()
901 static jvmtiError GetLocalVariableTable(jvmtiEnv* env, in GetLocalVariableTable() argument
905 ENSURE_VALID_ENV(env); in GetLocalVariableTable()
906 ENSURE_HAS_CAP(env, can_access_local_variables); in GetLocalVariableTable()
907 return MethodUtil::GetLocalVariableTable(env, method, entry_count_ptr, table_ptr); in GetLocalVariableTable()
910 static jvmtiError GetBytecodes(jvmtiEnv* env, in GetBytecodes() argument
914 ENSURE_VALID_ENV(env); in GetBytecodes()
915 ENSURE_HAS_CAP(env, can_get_bytecodes); in GetBytecodes()
916 return MethodUtil::GetBytecodes(env, method, bytecode_count_ptr, bytecodes_ptr); in GetBytecodes()
919 static jvmtiError IsMethodNative(jvmtiEnv* env, jmethodID method, jboolean* is_native_ptr) { in IsMethodNative() argument
920 ENSURE_VALID_ENV(env); in IsMethodNative()
921 return MethodUtil::IsMethodNative(env, method, is_native_ptr); in IsMethodNative()
924 static jvmtiError IsMethodSynthetic(jvmtiEnv* env, jmethodID method, jboolean* is_synthetic_ptr) { in IsMethodSynthetic() argument
925 ENSURE_VALID_ENV(env); in IsMethodSynthetic()
926 ENSURE_HAS_CAP(env, can_get_synthetic_attribute); in IsMethodSynthetic()
927 return MethodUtil::IsMethodSynthetic(env, method, is_synthetic_ptr); in IsMethodSynthetic()
930 static jvmtiError IsMethodObsolete(jvmtiEnv* env, jmethodID method, jboolean* is_obsolete_ptr) { in IsMethodObsolete() argument
931 ENSURE_VALID_ENV(env); in IsMethodObsolete()
932 return MethodUtil::IsMethodObsolete(env, method, is_obsolete_ptr); in IsMethodObsolete()
935 static jvmtiError SetNativeMethodPrefix(jvmtiEnv* env, const char* prefix ATTRIBUTE_UNUSED) { in SetNativeMethodPrefix() argument
936 ENSURE_VALID_ENV(env); in SetNativeMethodPrefix()
937 ENSURE_HAS_CAP(env, can_set_native_method_prefix); in SetNativeMethodPrefix()
941 static jvmtiError SetNativeMethodPrefixes(jvmtiEnv* env, in SetNativeMethodPrefixes() argument
944 ENSURE_VALID_ENV(env); in SetNativeMethodPrefixes()
945 ENSURE_HAS_CAP(env, can_set_native_method_prefix); in SetNativeMethodPrefixes()
949 static jvmtiError CreateRawMonitor(jvmtiEnv* env, const char* name, jrawMonitorID* monitor_ptr) { in CreateRawMonitor() argument
950 ENSURE_VALID_ENV(env); in CreateRawMonitor()
951 return MonitorUtil::CreateRawMonitor(env, name, monitor_ptr); in CreateRawMonitor()
954 static jvmtiError DestroyRawMonitor(jvmtiEnv* env, jrawMonitorID monitor) { in DestroyRawMonitor() argument
955 ENSURE_VALID_ENV(env); in DestroyRawMonitor()
956 return MonitorUtil::DestroyRawMonitor(env, monitor); in DestroyRawMonitor()
959 static jvmtiError RawMonitorEnter(jvmtiEnv* env, jrawMonitorID monitor) { in RawMonitorEnter() argument
960 ENSURE_VALID_ENV(env); in RawMonitorEnter()
961 return MonitorUtil::RawMonitorEnter(env, monitor); in RawMonitorEnter()
964 static jvmtiError RawMonitorExit(jvmtiEnv* env, jrawMonitorID monitor) { in RawMonitorExit() argument
965 ENSURE_VALID_ENV(env); in RawMonitorExit()
966 return MonitorUtil::RawMonitorExit(env, monitor); in RawMonitorExit()
969 static jvmtiError RawMonitorWait(jvmtiEnv* env, jrawMonitorID monitor, jlong millis) { in RawMonitorWait() argument
970 ENSURE_VALID_ENV(env); in RawMonitorWait()
971 return MonitorUtil::RawMonitorWait(env, monitor, millis); in RawMonitorWait()
974 static jvmtiError RawMonitorNotify(jvmtiEnv* env, jrawMonitorID monitor) { in RawMonitorNotify() argument
975 ENSURE_VALID_ENV(env); in RawMonitorNotify()
976 return MonitorUtil::RawMonitorNotify(env, monitor); in RawMonitorNotify()
979 static jvmtiError RawMonitorNotifyAll(jvmtiEnv* env, jrawMonitorID monitor) { in RawMonitorNotifyAll() argument
980 ENSURE_VALID_ENV(env); in RawMonitorNotifyAll()
981 return MonitorUtil::RawMonitorNotifyAll(env, monitor); in RawMonitorNotifyAll()
984 static jvmtiError SetJNIFunctionTable(jvmtiEnv* env, const jniNativeInterface* function_table) { in SetJNIFunctionTable() argument
985 ENSURE_VALID_ENV(env); in SetJNIFunctionTable()
986 return JNIUtil::SetJNIFunctionTable(env, function_table); in SetJNIFunctionTable()
989 static jvmtiError GetJNIFunctionTable(jvmtiEnv* env, jniNativeInterface** function_table) { in GetJNIFunctionTable() argument
990 ENSURE_VALID_ENV(env); in GetJNIFunctionTable()
991 return JNIUtil::GetJNIFunctionTable(env, function_table); in GetJNIFunctionTable()
996 static jvmtiError SetEventCallbacks(jvmtiEnv* env, in SetEventCallbacks() argument
999 ENSURE_VALID_ENV(env); in SetEventCallbacks()
1005 ArtJvmTiEnv::AsArtJvmTiEnv(env)->event_callbacks.reset(); in SetEventCallbacks()
1010 ArtJvmTiEnv* art_env = ArtJvmTiEnv::AsArtJvmTiEnv(env); in SetEventCallbacks()
1028 static jvmtiError SetEventNotificationMode(jvmtiEnv* env, in SetEventNotificationMode() argument
1033 ENSURE_VALID_ENV(env); in SetEventNotificationMode()
1034 ArtJvmTiEnv* art_env = ArtJvmTiEnv::AsArtJvmTiEnv(env); in SetEventNotificationMode()
1041 static jvmtiError GenerateEvents(jvmtiEnv* env, in GenerateEvents() argument
1043 ENSURE_VALID_ENV(env); in GenerateEvents()
1047 static jvmtiError GetExtensionFunctions(jvmtiEnv* env, in GetExtensionFunctions() argument
1050 ENSURE_VALID_ENV(env); in GetExtensionFunctions()
1053 return ExtensionUtil::GetExtensionFunctions(env, extension_count_ptr, extensions); in GetExtensionFunctions()
1056 static jvmtiError GetExtensionEvents(jvmtiEnv* env, in GetExtensionEvents() argument
1059 ENSURE_VALID_ENV(env); in GetExtensionEvents()
1062 return ExtensionUtil::GetExtensionEvents(env, extension_count_ptr, extensions); in GetExtensionEvents()
1065 static jvmtiError SetExtensionEventCallback(jvmtiEnv* env, in SetExtensionEventCallback() argument
1068 ENSURE_VALID_ENV(env); in SetExtensionEventCallback()
1069 return ExtensionUtil::SetExtensionEventCallback(env, in SetExtensionEventCallback()
1118 static jvmtiError GetPotentialCapabilities(jvmtiEnv* env, jvmtiCapabilities* capabilities_ptr) { in GetPotentialCapabilities() argument
1119 ENSURE_VALID_ENV(env); in GetPotentialCapabilities()
1136 static jvmtiError AddCapabilities(jvmtiEnv* env, const jvmtiCapabilities* capabilities_ptr) { in AddCapabilities() argument
1137 ENSURE_VALID_ENV(env); in AddCapabilities()
1139 ArtJvmTiEnv* art_env = static_cast<ArtJvmTiEnv*>(env); in AddCapabilities()
1143 ret = env->GetPotentialCapabilities(&potential_capabilities); in AddCapabilities()
1163 gEventHandler->HandleChangedCapabilities(ArtJvmTiEnv::AsArtJvmTiEnv(env), in AddCapabilities()
1169 static jvmtiError RelinquishCapabilities(jvmtiEnv* env, in RelinquishCapabilities() argument
1171 ENSURE_VALID_ENV(env); in RelinquishCapabilities()
1173 ArtJvmTiEnv* art_env = reinterpret_cast<ArtJvmTiEnv*>(env); in RelinquishCapabilities()
1187 gEventHandler->HandleChangedCapabilities(ArtJvmTiEnv::AsArtJvmTiEnv(env), in RelinquishCapabilities()
1195 static jvmtiError GetCapabilities(jvmtiEnv* env, jvmtiCapabilities* capabilities_ptr) { in GetCapabilities() argument
1196 ENSURE_VALID_ENV(env); in GetCapabilities()
1198 ArtJvmTiEnv* artenv = reinterpret_cast<ArtJvmTiEnv*>(env); in GetCapabilities()
1203 static jvmtiError GetCurrentThreadCpuTimerInfo(jvmtiEnv* env, in GetCurrentThreadCpuTimerInfo() argument
1205 ENSURE_VALID_ENV(env); in GetCurrentThreadCpuTimerInfo()
1206 ENSURE_HAS_CAP(env, can_get_current_thread_cpu_time); in GetCurrentThreadCpuTimerInfo()
1210 static jvmtiError GetCurrentThreadCpuTime(jvmtiEnv* env, jlong* nanos_ptr ATTRIBUTE_UNUSED) { in GetCurrentThreadCpuTime() argument
1211 ENSURE_VALID_ENV(env); in GetCurrentThreadCpuTime()
1212 ENSURE_HAS_CAP(env, can_get_current_thread_cpu_time); in GetCurrentThreadCpuTime()
1216 static jvmtiError GetThreadCpuTimerInfo(jvmtiEnv* env, in GetThreadCpuTimerInfo() argument
1218 ENSURE_VALID_ENV(env); in GetThreadCpuTimerInfo()
1219 ENSURE_HAS_CAP(env, can_get_thread_cpu_time); in GetThreadCpuTimerInfo()
1223 static jvmtiError GetThreadCpuTime(jvmtiEnv* env, in GetThreadCpuTime() argument
1226 ENSURE_VALID_ENV(env); in GetThreadCpuTime()
1227 ENSURE_HAS_CAP(env, can_get_thread_cpu_time); in GetThreadCpuTime()
1231 static jvmtiError GetTimerInfo(jvmtiEnv* env, jvmtiTimerInfo* info_ptr) { in GetTimerInfo() argument
1232 ENSURE_VALID_ENV(env); in GetTimerInfo()
1233 return TimerUtil::GetTimerInfo(env, info_ptr); in GetTimerInfo()
1236 static jvmtiError GetTime(jvmtiEnv* env, jlong* nanos_ptr) { in GetTime() argument
1237 ENSURE_VALID_ENV(env); in GetTime()
1238 return TimerUtil::GetTime(env, nanos_ptr); in GetTime()
1241 static jvmtiError GetAvailableProcessors(jvmtiEnv* env, jint* processor_count_ptr) { in GetAvailableProcessors() argument
1242 ENSURE_VALID_ENV(env); in GetAvailableProcessors()
1243 return TimerUtil::GetAvailableProcessors(env, processor_count_ptr); in GetAvailableProcessors()
1246 static jvmtiError AddToBootstrapClassLoaderSearch(jvmtiEnv* env, const char* segment) { in AddToBootstrapClassLoaderSearch() argument
1247 ENSURE_VALID_ENV(env); in AddToBootstrapClassLoaderSearch()
1248 return SearchUtil::AddToBootstrapClassLoaderSearch(env, segment); in AddToBootstrapClassLoaderSearch()
1251 static jvmtiError AddToSystemClassLoaderSearch(jvmtiEnv* env, const char* segment) { in AddToSystemClassLoaderSearch() argument
1252 ENSURE_VALID_ENV(env); in AddToSystemClassLoaderSearch()
1253 return SearchUtil::AddToSystemClassLoaderSearch(env, segment); in AddToSystemClassLoaderSearch()
1256 static jvmtiError GetSystemProperties(jvmtiEnv* env, jint* count_ptr, char*** property_ptr) { in GetSystemProperties() argument
1257 ENSURE_VALID_ENV(env); in GetSystemProperties()
1258 return PropertiesUtil::GetSystemProperties(env, count_ptr, property_ptr); in GetSystemProperties()
1261 static jvmtiError GetSystemProperty(jvmtiEnv* env, const char* property, char** value_ptr) { in GetSystemProperty() argument
1262 ENSURE_VALID_ENV(env); in GetSystemProperty()
1263 return PropertiesUtil::GetSystemProperty(env, property, value_ptr); in GetSystemProperty()
1266 static jvmtiError SetSystemProperty(jvmtiEnv* env, const char* property, const char* value) { in SetSystemProperty() argument
1267 ENSURE_VALID_ENV(env); in SetSystemProperty()
1268 return PropertiesUtil::SetSystemProperty(env, property, value); in SetSystemProperty()
1271 static jvmtiError GetPhase(jvmtiEnv* env, jvmtiPhase* phase_ptr) { in GetPhase() argument
1272 ENSURE_VALID_ENV(env); in GetPhase()
1273 return PhaseUtil::GetPhase(env, phase_ptr); in GetPhase()
1276 static jvmtiError DisposeEnvironment(jvmtiEnv* env) { in DisposeEnvironment() argument
1277 ENSURE_VALID_ENV(env); in DisposeEnvironment()
1278 ArtJvmTiEnv* tienv = ArtJvmTiEnv::AsArtJvmTiEnv(env); in DisposeEnvironment()
1286 static jvmtiError SetEnvironmentLocalStorage(jvmtiEnv* env, const void* data) { in SetEnvironmentLocalStorage() argument
1287 ENSURE_VALID_ENV(env); in SetEnvironmentLocalStorage()
1288 reinterpret_cast<ArtJvmTiEnv*>(env)->local_data = const_cast<void*>(data); in SetEnvironmentLocalStorage()
1292 static jvmtiError GetEnvironmentLocalStorage(jvmtiEnv* env, void** data_ptr) { in GetEnvironmentLocalStorage() argument
1293 ENSURE_VALID_ENV(env); in GetEnvironmentLocalStorage()
1294 *data_ptr = reinterpret_cast<ArtJvmTiEnv*>(env)->local_data; in GetEnvironmentLocalStorage()
1298 static jvmtiError GetVersionNumber(jvmtiEnv* env, jint* version_ptr) { in GetVersionNumber() argument
1299 ENSURE_VALID_ENV(env); in GetVersionNumber()
1300 *version_ptr = ArtJvmTiEnv::AsArtJvmTiEnv(env)->ti_version; in GetVersionNumber()
1304 static jvmtiError GetErrorName(jvmtiEnv* env, jvmtiError error, char** name_ptr) { in GetErrorName() argument
1308 JvmtiUniquePtr<char[]> copy = CopyString(env, name_cstr, &res); in GetErrorName()
1375 static jvmtiError SetVerboseFlag(jvmtiEnv* env, in SetVerboseFlag() argument
1378 ENSURE_VALID_ENV(env); in SetVerboseFlag()
1379 return LogUtil::SetVerboseFlag(env, flag, value); in SetVerboseFlag()
1382 static jvmtiError GetJLocationFormat(jvmtiEnv* env, jvmtiJlocationFormat* format_ptr) { in GetJLocationFormat() argument
1383 ENSURE_VALID_ENV(env); in GetJLocationFormat()
1417 struct ArtJvmTiEnv* env = new ArtJvmTiEnv(vm, gEventHandler, version); in CreateArtJvmTiEnv() local
1418 *new_jvmtiEnv = env; in CreateArtJvmTiEnv()
1420 gEventHandler->RegisterArtJvmTiEnv(env); in CreateArtJvmTiEnv()
1423 ArtJvmTiEnv::AsArtJvmTiEnv(env)->object_tag_table.get()); in CreateArtJvmTiEnv()
1429 static jint GetEnvHandler(art::JavaVMExt* vm, /*out*/void** env, jint version) { in GetEnvHandler() argument
1434 CreateArtJvmTiEnv(vm, JVMTI_VERSION, env); in GetEnvHandler()
1437 CreateArtJvmTiEnv(vm, kArtTiVersion, env); in GetEnvHandler()