src/share/vm/runtime/thread.cpp

Print this page
rev 1130 : cleanup the calculation of JavaThread-specific should_post_on_exceptions flag in jvmtiEventController


1139   set_vframe_array_head(NULL);
1140   set_vframe_array_last(NULL);
1141   set_deferred_locals(NULL);
1142   set_deopt_mark(NULL);
1143   clear_must_deopt_id();
1144   set_monitor_chunks(NULL);
1145   set_next(NULL);
1146   set_thread_state(_thread_new);
1147   _terminated = _not_terminated;
1148   _privileged_stack_top = NULL;
1149   _array_for_gc = NULL;
1150   _suspend_equivalent = false;
1151   _in_deopt_handler = 0;
1152   _doing_unsafe_access = false;
1153   _stack_guard_state = stack_guard_unused;
1154   _exception_oop = NULL;
1155   _exception_pc  = 0;
1156   _exception_handler_pc = 0;
1157   _exception_stack_size = 0;
1158   _jvmti_thread_state= NULL;

1159   _jvmti_get_loaded_classes_closure = NULL;
1160   _interp_only_mode    = 0;
1161   _special_runtime_exit_condition = _no_async_condition;
1162   _pending_async_exception = NULL;
1163   _is_compiling = false;
1164   _thread_stat = NULL;
1165   _thread_stat = new ThreadStatistics();
1166   _blocked_on_compilation = false;
1167   _jni_active_critical = 0;
1168   _do_not_unlock_if_synchronized = false;
1169   _cached_monitor_info = NULL;
1170   _parker = Parker::Allocate(this) ;
1171 
1172 #ifndef PRODUCT
1173   _jmp_ring_index = 0;
1174   for (int ji = 0 ; ji < jump_ring_buffer_size ; ji++ ) {
1175     record_jump(NULL, NULL, NULL, 0);
1176   }
1177 #endif /* PRODUCT */
1178 




1139   set_vframe_array_head(NULL);
1140   set_vframe_array_last(NULL);
1141   set_deferred_locals(NULL);
1142   set_deopt_mark(NULL);
1143   clear_must_deopt_id();
1144   set_monitor_chunks(NULL);
1145   set_next(NULL);
1146   set_thread_state(_thread_new);
1147   _terminated = _not_terminated;
1148   _privileged_stack_top = NULL;
1149   _array_for_gc = NULL;
1150   _suspend_equivalent = false;
1151   _in_deopt_handler = 0;
1152   _doing_unsafe_access = false;
1153   _stack_guard_state = stack_guard_unused;
1154   _exception_oop = NULL;
1155   _exception_pc  = 0;
1156   _exception_handler_pc = 0;
1157   _exception_stack_size = 0;
1158   _jvmti_thread_state= NULL;
1159   _should_post_on_exceptions_flag = JNI_FALSE;
1160   _jvmti_get_loaded_classes_closure = NULL;
1161   _interp_only_mode    = 0;
1162   _special_runtime_exit_condition = _no_async_condition;
1163   _pending_async_exception = NULL;
1164   _is_compiling = false;
1165   _thread_stat = NULL;
1166   _thread_stat = new ThreadStatistics();
1167   _blocked_on_compilation = false;
1168   _jni_active_critical = 0;
1169   _do_not_unlock_if_synchronized = false;
1170   _cached_monitor_info = NULL;
1171   _parker = Parker::Allocate(this) ;
1172 
1173 #ifndef PRODUCT
1174   _jmp_ring_index = 0;
1175   for (int ji = 0 ; ji < jump_ring_buffer_size ; ji++ ) {
1176     record_jump(NULL, NULL, NULL, 0);
1177   }
1178 #endif /* PRODUCT */
1179