/art/test/1922-owned-monitors-info/ |
D | owned_monitors.cc | 84 jvmtiCapabilities caps; in Java_art_Test1922_setupTest() local 85 memset(&caps, 0, sizeof(caps)); in Java_art_Test1922_setupTest() 86 caps.can_get_owned_monitor_info = 1; in Java_art_Test1922_setupTest() 87 caps.can_get_owned_monitor_stack_depth_info = 1; in Java_art_Test1922_setupTest() 88 JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps)); in Java_art_Test1922_setupTest()
|
/art/test/ti-agent/ |
D | frame_pop_helper.cc | 87 jvmtiCapabilities caps; in Java_art_FramePop_enableFramePopEvent() local 88 memset(&caps, 0, sizeof(caps)); in Java_art_FramePop_enableFramePopEvent() 89 caps.can_generate_frame_pop_events = 1; in Java_art_FramePop_enableFramePopEvent() 90 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_FramePop_enableFramePopEvent()
|
D | jvmti_helper.cc | 99 jvmtiCapabilities caps = GetStandardCapabilities(); in SetStandardCapabilities() local 100 CheckJvmtiError(env, env->AddCapabilities(&caps)); in SetStandardCapabilities() 104 jvmtiCapabilities caps; in SetAllCapabilities() local 105 CheckJvmtiError(env, env->GetPotentialCapabilities(&caps)); in SetAllCapabilities() 106 CheckJvmtiError(env, env->AddCapabilities(&caps)); in SetAllCapabilities()
|
D | redefinition_helper.cc | 316 jvmtiCapabilities caps; in Java_art_Redefinition_doCommonClassRetransformation() local 317 jvmtiError caps_err = jvmti_env->GetCapabilities(&caps); in Java_art_Redefinition_doCommonClassRetransformation() 327 if (caps.can_retransform_classes != 1) { in Java_art_Redefinition_doCommonClassRetransformation() 340 if (caps.can_retransform_classes != 1) { in Java_art_Redefinition_doCommonClassRetransformation() 376 jvmtiCapabilities caps = GetStandardCapabilities(); in SetupCommonRedefine() local 377 caps.can_retransform_classes = 0; in SetupCommonRedefine() 378 caps.can_retransform_any_class = 0; in SetupCommonRedefine() 379 jvmti_env->AddCapabilities(&caps); in SetupCommonRedefine() 392 jvmtiCapabilities caps = GetStandardCapabilities(); in SetupCommonTransform() local 393 caps.can_retransform_classes = 0; in SetupCommonTransform() [all …]
|
D | exceptions_helper.cc | 122 jvmtiCapabilities caps; in Java_art_Exceptions_setupExceptionTracing() local 123 memset(&caps, 0, sizeof(caps)); in Java_art_Exceptions_setupExceptionTracing() 124 caps.can_generate_exception_events = 1; in Java_art_Exceptions_setupExceptionTracing() 125 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Exceptions_setupExceptionTracing()
|
D | monitors_helper.cc | 157 jvmtiCapabilities caps; in Java_art_Monitors_setupMonitorEvents() local 158 memset(&caps, 0, sizeof(caps)); in Java_art_Monitors_setupMonitorEvents() 159 caps.can_generate_monitor_events = 1; in Java_art_Monitors_setupMonitorEvents() 160 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps))) { in Java_art_Monitors_setupMonitorEvents()
|
D | locals_helper.cc | 38 jvmtiCapabilities caps; in Java_art_Locals_EnableLocalVariableAccess() local 39 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetCapabilities(&caps))) { in Java_art_Locals_EnableLocalVariableAccess() 42 caps.can_access_local_variables = 1; in Java_art_Locals_EnableLocalVariableAccess() 43 JvmtiErrorToException(env, jvmti_env, jvmti_env->AddCapabilities(&caps)); in Java_art_Locals_EnableLocalVariableAccess()
|
/art/openjdkjvmti/ |
D | events-inl.h | 550 const jvmtiCapabilities& caps, in NeedsEventUpdate() argument 554 return (added && caps.can_access_local_variables == 1) || in NeedsEventUpdate() 555 caps.can_generate_breakpoint_events == 1 || in NeedsEventUpdate() 556 (caps.can_retransform_classes == 1 && in NeedsEventUpdate() 562 const jvmtiCapabilities& caps, in HandleChangedCapabilities() argument 564 if (UNLIKELY(NeedsEventUpdate(env, caps, added))) { in HandleChangedCapabilities() 565 env->event_masks.HandleChangedCapabilities(caps, added); in HandleChangedCapabilities() 566 if (caps.can_retransform_classes == 1) { in HandleChangedCapabilities() 570 if (added && caps.can_access_local_variables == 1) { in HandleChangedCapabilities() 573 if (caps.can_generate_breakpoint_events == 1) { in HandleChangedCapabilities()
|
D | events.cc | 169 void EventMasks::HandleChangedCapabilities(const jvmtiCapabilities& caps, bool caps_added) { in HandleChangedCapabilities() argument 170 if (UNLIKELY(caps.can_retransform_classes == 1)) { in HandleChangedCapabilities() 1054 jvmtiCapabilities caps = env->capabilities; in HasAssociatedCapability() local 1057 return caps.can_generate_breakpoint_events == 1; in HasAssociatedCapability() 1061 return caps.can_generate_compiled_method_load_events == 1; in HasAssociatedCapability() 1065 return caps.can_generate_exception_events == 1; in HasAssociatedCapability() 1068 return caps.can_generate_field_access_events == 1; in HasAssociatedCapability() 1071 return caps.can_generate_field_modification_events == 1; in HasAssociatedCapability() 1074 return caps.can_generate_frame_pop_events == 1; in HasAssociatedCapability() 1078 return caps.can_generate_garbage_collection_events == 1; in HasAssociatedCapability() [all …]
|
D | events.h | 169 void HandleChangedCapabilities(const jvmtiCapabilities& caps, bool caps_added); 228 const jvmtiCapabilities& caps, 279 const jvmtiCapabilities& caps,
|
/art/tools/titrace/ |
D | titrace.cc | 263 jvmtiCapabilities caps = {}; in Agent_OnLoad() local 264 caps.can_generate_single_step_events = 1; in Agent_OnLoad() 265 caps.can_get_bytecodes = 1; in Agent_OnLoad() 267 error = jvmti->AddCapabilities(&caps); in Agent_OnLoad()
|
/art/tools/breakpoint-logger/ |
D | breakpoint_logger.cc | 386 jvmtiCapabilities caps{}; in AgentStart() local 387 caps.can_generate_breakpoint_events = JNI_TRUE; in AgentStart() 388 caps.can_get_line_numbers = JNI_TRUE; in AgentStart() 389 caps.can_get_source_file_name = JNI_TRUE; in AgentStart() 390 caps.can_get_source_debug_extension = JNI_TRUE; in AgentStart() 391 error = jvmti->AddCapabilities(&caps); in AgentStart()
|
/art/test/ti-stress/ |
D | stress.cc | 795 jvmtiCapabilities caps = { in Agent_OnLoad() local 838 jvmti->AddCapabilities(&caps); in Agent_OnLoad()
|