Mercurial > hg > graal-compiler
comparison src/share/vm/compiler/compileBroker.hpp @ 13074:78da3894b86f
8027593: performance drop with constrained codecache starting with hs25 b111
Summary: Fixed proper sweeping of small code cache sizes
Reviewed-by: kvn, iveresov
author | anoll |
---|---|
date | Tue, 12 Nov 2013 09:32:50 +0100 |
parents | 469216acdb28 |
children | 096c224171c4 7c0122ed05fb |
comparison
equal
deleted
inserted
replaced
13073:1dcea64e9f00 | 13074:78da3894b86f |
---|---|
313 static int _sum_standard_bytes_compiled; | 313 static int _sum_standard_bytes_compiled; |
314 static int _sum_nmethod_size; | 314 static int _sum_nmethod_size; |
315 static int _sum_nmethod_code_size; | 315 static int _sum_nmethod_code_size; |
316 static long _peak_compilation_time; | 316 static long _peak_compilation_time; |
317 | 317 |
318 static volatile jint _print_compilation_warning; | |
319 | |
318 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, AbstractCompiler* comp, TRAPS); | 320 static CompilerThread* make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, AbstractCompiler* comp, TRAPS); |
319 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); | 321 static void init_compiler_threads(int c1_compiler_count, int c2_compiler_count); |
320 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); | 322 static bool compilation_is_complete (methodHandle method, int osr_bci, int comp_level); |
321 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); | 323 static bool compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level); |
322 static uint assign_compile_id (methodHandle method, int osr_bci); | 324 static uint assign_compile_id (methodHandle method, int osr_bci); |
416 | 418 |
417 static bool is_compilation_disabled_forever() { | 419 static bool is_compilation_disabled_forever() { |
418 return _should_compile_new_jobs == shutdown_compilaton; | 420 return _should_compile_new_jobs == shutdown_compilaton; |
419 } | 421 } |
420 static void handle_full_code_cache(); | 422 static void handle_full_code_cache(); |
421 | 423 // Ensures that warning is only printed once. |
424 static bool should_print_compiler_warning() { | |
425 jint old = Atomic::cmpxchg(1, &_print_compilation_warning, 0); | |
426 return old == 0; | |
427 } | |
422 // Return total compilation ticks | 428 // Return total compilation ticks |
423 static jlong total_compilation_ticks() { | 429 static jlong total_compilation_ticks() { |
424 return _perf_total_compilation != NULL ? _perf_total_compilation->get_value() : 0; | 430 return _perf_total_compilation != NULL ? _perf_total_compilation->get_value() : 0; |
425 } | 431 } |
426 | 432 |