862 bool JvmtiExport::_should_post_field_modification = false;
863 bool JvmtiExport::_should_post_class_load = false;
864 bool JvmtiExport::_should_post_class_prepare = false;
865 bool JvmtiExport::_should_post_class_unload = false;
866 bool JvmtiExport::_should_post_thread_life = false;
867 bool JvmtiExport::_should_clean_up_heap_objects = false;
868 bool JvmtiExport::_should_post_native_method_bind = false;
869 bool JvmtiExport::_should_post_dynamic_code_generated = false;
870 bool JvmtiExport::_should_post_data_dump = false;
871 bool JvmtiExport::_should_post_compiled_method_load = false;
872 bool JvmtiExport::_should_post_compiled_method_unload = false;
873 bool JvmtiExport::_should_post_monitor_contended_enter = false;
874 bool JvmtiExport::_should_post_monitor_contended_entered = false;
875 bool JvmtiExport::_should_post_monitor_wait = false;
876 bool JvmtiExport::_should_post_monitor_waited = false;
877 bool JvmtiExport::_should_post_garbage_collection_start = false;
878 bool JvmtiExport::_should_post_garbage_collection_finish = false;
879 bool JvmtiExport::_should_post_object_free = false;
880 bool JvmtiExport::_should_post_resource_exhausted = false;
881 bool JvmtiExport::_should_post_vm_object_alloc = false;
882
883 ////////////////////////////////////////////////////////////////////////////////////////////////
884
885
886 //
887 // JVMTI single step management
888 //
889 void JvmtiExport::at_single_stepping_point(JavaThread *thread, methodOop method, address location) {
890 assert(JvmtiExport::should_post_single_step(), "must be single stepping");
891
892 HandleMark hm(thread);
893 methodHandle mh(thread, method);
894
895 // update information about current location and post a step event
896 JvmtiThreadState *state = thread->jvmti_thread_state();
897 if (state == NULL) {
898 return;
899 }
900 EVT_TRIG_TRACE(JVMTI_EVENT_SINGLE_STEP, ("JVMTI [%s] Trg Single Step triggered",
901 JvmtiTrace::safe_get_thread_name(thread)));
|
862 bool JvmtiExport::_should_post_field_modification = false;
863 bool JvmtiExport::_should_post_class_load = false;
864 bool JvmtiExport::_should_post_class_prepare = false;
865 bool JvmtiExport::_should_post_class_unload = false;
866 bool JvmtiExport::_should_post_thread_life = false;
867 bool JvmtiExport::_should_clean_up_heap_objects = false;
868 bool JvmtiExport::_should_post_native_method_bind = false;
869 bool JvmtiExport::_should_post_dynamic_code_generated = false;
870 bool JvmtiExport::_should_post_data_dump = false;
871 bool JvmtiExport::_should_post_compiled_method_load = false;
872 bool JvmtiExport::_should_post_compiled_method_unload = false;
873 bool JvmtiExport::_should_post_monitor_contended_enter = false;
874 bool JvmtiExport::_should_post_monitor_contended_entered = false;
875 bool JvmtiExport::_should_post_monitor_wait = false;
876 bool JvmtiExport::_should_post_monitor_waited = false;
877 bool JvmtiExport::_should_post_garbage_collection_start = false;
878 bool JvmtiExport::_should_post_garbage_collection_finish = false;
879 bool JvmtiExport::_should_post_object_free = false;
880 bool JvmtiExport::_should_post_resource_exhausted = false;
881 bool JvmtiExport::_should_post_vm_object_alloc = false;
882 bool JvmtiExport::_should_post_on_exceptions = false;
883
884 ////////////////////////////////////////////////////////////////////////////////////////////////
885
886
887 //
888 // JVMTI single step management
889 //
890 void JvmtiExport::at_single_stepping_point(JavaThread *thread, methodOop method, address location) {
891 assert(JvmtiExport::should_post_single_step(), "must be single stepping");
892
893 HandleMark hm(thread);
894 methodHandle mh(thread, method);
895
896 // update information about current location and post a step event
897 JvmtiThreadState *state = thread->jvmti_thread_state();
898 if (state == NULL) {
899 return;
900 }
901 EVT_TRIG_TRACE(JVMTI_EVENT_SINGLE_STEP, ("JVMTI [%s] Trg Single Step triggered",
902 JvmtiTrace::safe_get_thread_name(thread)));
|