src/share/vm/ci/ciEnv.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/ci

src/share/vm/ci/ciEnv.cpp

Print this page
rev 6793 : 8054889: Compiler team's implementation task
Summary: Adding three new diagnostic commands for compiler
Reviewed-by:


 908     if (witness != NULL) {
 909       klass_violations++;
 910       if (!counter_changed) {
 911         // Dependence failed but counter didn't change.  Log a message
 912         // describing what failed and allow the assert at the end to
 913         // trigger.
 914         deps.print_dependency(witness);
 915       } else if (xtty == NULL) {
 916         // If we're not logging then a single violation is sufficient,
 917         // otherwise we want to log all the dependences which were
 918         // violated.
 919         break;
 920       }
 921     }
 922   }
 923 
 924   if (klass_violations != 0) {
 925 #ifdef ASSERT
 926     if (!counter_changed && !PrintCompilation) {
 927       // Print out the compile task that failed
 928       _task->print_line();
 929     }
 930 #endif
 931     assert(counter_changed, "failed dependencies, but counter didn't change");
 932     record_failure("concurrent class loading");
 933   }
 934 }
 935 
 936 // ------------------------------------------------------------------
 937 // ciEnv::register_method
 938 void ciEnv::register_method(ciMethod* target,
 939                             int entry_bci,
 940                             CodeOffsets* offsets,
 941                             int orig_pc_offset,
 942                             CodeBuffer* code_buffer,
 943                             int frame_words,
 944                             OopMapSet* oop_map_set,
 945                             ExceptionHandlerTable* handler_table,
 946                             ImplicitExceptionTable* inc_table,
 947                             AbstractCompiler* compiler,
 948                             int comp_level,




 908     if (witness != NULL) {
 909       klass_violations++;
 910       if (!counter_changed) {
 911         // Dependence failed but counter didn't change.  Log a message
 912         // describing what failed and allow the assert at the end to
 913         // trigger.
 914         deps.print_dependency(witness);
 915       } else if (xtty == NULL) {
 916         // If we're not logging then a single violation is sufficient,
 917         // otherwise we want to log all the dependences which were
 918         // violated.
 919         break;
 920       }
 921     }
 922   }
 923 
 924   if (klass_violations != 0) {
 925 #ifdef ASSERT
 926     if (!counter_changed && !PrintCompilation) {
 927       // Print out the compile task that failed
 928       _task->print_tty();
 929     }
 930 #endif
 931     assert(counter_changed, "failed dependencies, but counter didn't change");
 932     record_failure("concurrent class loading");
 933   }
 934 }
 935 
 936 // ------------------------------------------------------------------
 937 // ciEnv::register_method
 938 void ciEnv::register_method(ciMethod* target,
 939                             int entry_bci,
 940                             CodeOffsets* offsets,
 941                             int orig_pc_offset,
 942                             CodeBuffer* code_buffer,
 943                             int frame_words,
 944                             OopMapSet* oop_map_set,
 945                             ExceptionHandlerTable* handler_table,
 946                             ImplicitExceptionTable* inc_table,
 947                             AbstractCompiler* compiler,
 948                             int comp_level,


src/share/vm/ci/ciEnv.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File