comparison src/share/vm/ci/ciEnv.cpp @ 1397:b4776199210f

6943485: JVMTI always on capabilities change code generation too much Reviewed-by: twisti, dcubed
author never
date Mon, 26 Apr 2010 23:59:45 -0700
parents 09ac706c2623
children 5571b97fc1ec cd5dbf694d45
comparison
equal deleted inserted replaced
1396:d7f654633cfe 1397:b4776199210f
174 void ciEnv::cache_jvmti_state() { 174 void ciEnv::cache_jvmti_state() {
175 VM_ENTRY_MARK; 175 VM_ENTRY_MARK;
176 // Get Jvmti capabilities under lock to get consistant values. 176 // Get Jvmti capabilities under lock to get consistant values.
177 MutexLocker mu(JvmtiThreadState_lock); 177 MutexLocker mu(JvmtiThreadState_lock);
178 _jvmti_can_hotswap_or_post_breakpoint = JvmtiExport::can_hotswap_or_post_breakpoint(); 178 _jvmti_can_hotswap_or_post_breakpoint = JvmtiExport::can_hotswap_or_post_breakpoint();
179 _jvmti_can_examine_or_deopt_anywhere = JvmtiExport::can_examine_or_deopt_anywhere();
180 _jvmti_can_access_local_variables = JvmtiExport::can_access_local_variables(); 179 _jvmti_can_access_local_variables = JvmtiExport::can_access_local_variables();
181 _jvmti_can_post_on_exceptions = JvmtiExport::can_post_on_exceptions(); 180 _jvmti_can_post_on_exceptions = JvmtiExport::can_post_on_exceptions();
182 } 181 }
183 182
184 // ------------------------------------------------------------------ 183 // ------------------------------------------------------------------
885 884
886 // Change in Jvmti state may invalidate compilation. 885 // Change in Jvmti state may invalidate compilation.
887 if (!failing() && 886 if (!failing() &&
888 ( (!jvmti_can_hotswap_or_post_breakpoint() && 887 ( (!jvmti_can_hotswap_or_post_breakpoint() &&
889 JvmtiExport::can_hotswap_or_post_breakpoint()) || 888 JvmtiExport::can_hotswap_or_post_breakpoint()) ||
890 (!jvmti_can_examine_or_deopt_anywhere() &&
891 JvmtiExport::can_examine_or_deopt_anywhere()) ||
892 (!jvmti_can_access_local_variables() && 889 (!jvmti_can_access_local_variables() &&
893 JvmtiExport::can_access_local_variables()) || 890 JvmtiExport::can_access_local_variables()) ||
894 (!jvmti_can_post_on_exceptions() && 891 (!jvmti_can_post_on_exceptions() &&
895 JvmtiExport::can_post_on_exceptions()) )) { 892 JvmtiExport::can_post_on_exceptions()) )) {
896 record_failure("Jvmti state change invalidated dependencies"); 893 record_failure("Jvmti state change invalidated dependencies");