comparison src/share/vm/ci/ciEnv.cpp @ 3684:1976ebe361c2

don't observe jvmti and dtrace state changes during code installing
author Lukas Stadler <lukas.stadler@jku.at>
date Fri, 18 Nov 2011 11:55:00 +0100
parents 5e9645341ec3
children 5c8fc9f05960
comparison
equal deleted inserted replaced
3683:345c3bbf9c3c 3684:1976ebe361c2
950 950
951 // Prevent SystemDictionary::add_to_hierarchy from running 951 // Prevent SystemDictionary::add_to_hierarchy from running
952 // and invalidating our dependencies until we install this method. 952 // and invalidating our dependencies until we install this method.
953 MutexLocker ml(Compile_lock); 953 MutexLocker ml(Compile_lock);
954 954
955 // TODO(ls) this doesn't make much sense as long as graal doesn't support jvmti or dtrace...
956 #ifndef GRAAL
955 // Change in Jvmti state may invalidate compilation. 957 // Change in Jvmti state may invalidate compilation.
956 if (!failing() && 958 if (!failing() &&
957 ( (!jvmti_can_hotswap_or_post_breakpoint() && 959 ( (!jvmti_can_hotswap_or_post_breakpoint() &&
958 JvmtiExport::can_hotswap_or_post_breakpoint()) || 960 JvmtiExport::can_hotswap_or_post_breakpoint()) ||
959 (!jvmti_can_access_local_variables() && 961 (!jvmti_can_access_local_variables() &&
968 ( (!dtrace_extended_probes() && ExtendedDTraceProbes) || 970 ( (!dtrace_extended_probes() && ExtendedDTraceProbes) ||
969 (!dtrace_method_probes() && DTraceMethodProbes) || 971 (!dtrace_method_probes() && DTraceMethodProbes) ||
970 (!dtrace_alloc_probes() && DTraceAllocProbes) )) { 972 (!dtrace_alloc_probes() && DTraceAllocProbes) )) {
971 record_failure("DTrace flags change invalidated dependencies"); 973 record_failure("DTrace flags change invalidated dependencies");
972 } 974 }
975 #endif
973 976
974 if (!failing()) { 977 if (!failing()) {
975 if (log() != NULL) { 978 if (log() != NULL) {
976 // Log the dependencies which this compilation declares. 979 // Log the dependencies which this compilation declares.
977 dependencies()->log_all_dependencies(); 980 dependencies()->log_all_dependencies();