< prev index next >

src/hotspot/share/compiler/compileBroker.hpp

Print this page
rev 50234 : Print the code cache full count for all code heaps and
add additional counters for compiler stopped and compiler started.

*** 217,226 **** --- 217,228 ---- static int _total_bailout_count; static int _total_invalidated_count; static int _total_native_compile_count; static int _total_osr_compile_count; static int _total_standard_compile_count; + static int _total_compiler_stopped_count; + static int _total_compiler_restarted_count; static int _sum_osr_bytes_compiled; static int _sum_standard_bytes_compiled; static int _sum_nmethod_size; static int _sum_nmethod_code_size; static long _peak_compilation_time;
*** 336,346 **** static jint get_compilation_activity_mode() { return _should_compile_new_jobs; } static bool should_compile_new_jobs() { return UseCompiler && (_should_compile_new_jobs == run_compilation); } static bool set_should_compile_new_jobs(jint new_state) { // Return success if the current caller set it jint old = Atomic::cmpxchg(new_state, &_should_compile_new_jobs, 1-new_state); ! return (old == (1-new_state)); } static void disable_compilation_forever() { UseCompiler = false; AlwaysCompileLoopMethods = false; --- 338,356 ---- static jint get_compilation_activity_mode() { return _should_compile_new_jobs; } static bool should_compile_new_jobs() { return UseCompiler && (_should_compile_new_jobs == run_compilation); } static bool set_should_compile_new_jobs(jint new_state) { // Return success if the current caller set it jint old = Atomic::cmpxchg(new_state, &_should_compile_new_jobs, 1-new_state); ! bool success = (old == (1-new_state)); ! if (success) { ! if (new_state == run_compilation) { ! _total_compiler_restarted_count += 1; ! } else { ! _total_compiler_stopped_count += 1; ! } ! } ! return success; } static void disable_compilation_forever() { UseCompiler = false; AlwaysCompileLoopMethods = false;
*** 397,406 **** --- 407,418 ---- static int get_total_bailout_count() { return _total_bailout_count; } static int get_total_invalidated_count() { return _total_invalidated_count; } static int get_total_native_compile_count() { return _total_native_compile_count; } static int get_total_osr_compile_count() { return _total_osr_compile_count; } static int get_total_standard_compile_count() { return _total_standard_compile_count; } + static int get_total_compiler_stopped_count() { return _total_compiler_stopped_count; } + static int get_total_compiler_restarted_count() { return _total_compiler_restarted_count; } static int get_sum_osr_bytes_compiled() { return _sum_osr_bytes_compiled; } static int get_sum_standard_bytes_compiled() { return _sum_standard_bytes_compiled; } static int get_sum_nmethod_size() { return _sum_nmethod_size;} static int get_sum_nmethod_code_size() { return _sum_nmethod_code_size; } static long get_peak_compilation_time() { return _peak_compilation_time; }
< prev index next >