comparison src/share/vm/classfile/classLoader.cpp @ 3837:43f9d800f276

7066339: Tiered: policy should make consistent decisions about osr levels Summary: Added feedback disabling flag to common(), fixed handling of TieredStopAtLevel. Reviewed-by: kvn, never
author iveresov
date Wed, 20 Jul 2011 18:04:17 -0700
parents 1d1603768966
children f08d439fab8c
comparison
equal deleted inserted replaced
3808:341a57af9b0a 3837:43f9d800f276
1348 VM_ForceSafepoint op; 1348 VM_ForceSafepoint op;
1349 VMThread::execute(&op); 1349 VMThread::execute(&op);
1350 _codecache_sweep_counter = 0; 1350 _codecache_sweep_counter = 0;
1351 } 1351 }
1352 // Force compilation 1352 // Force compilation
1353 CompileBroker::compile_method(m, InvocationEntryBci, CompLevel_initial_compile, 1353 CompileBroker::compile_method(m, InvocationEntryBci, CompilationPolicy::policy()->initial_compile_level(),
1354 methodHandle(), 0, "CTW", THREAD); 1354 methodHandle(), 0, "CTW", THREAD);
1355 if (HAS_PENDING_EXCEPTION) { 1355 if (HAS_PENDING_EXCEPTION) {
1356 clear_pending_exception_if_not_oom(CHECK); 1356 clear_pending_exception_if_not_oom(CHECK);
1357 tty->print_cr("CompileTheWorld (%d) : Skipping method: %s", _compile_the_world_counter, m->name()->as_C_string()); 1357 tty->print_cr("CompileTheWorld (%d) : Skipping method: %s", _compile_the_world_counter, m->name()->as_C_string());
1358 } 1358 }
1359 if (TieredCompilation) { 1359 if (TieredCompilation && TieredStopAtLevel >= CompLevel_full_optimization) {
1360 // Clobber the first compile and force second tier compilation 1360 // Clobber the first compile and force second tier compilation
1361 nmethod* nm = m->code(); 1361 nmethod* nm = m->code();
1362 if (nm != NULL) { 1362 if (nm != NULL) {
1363 // Throw out the code so that the code cache doesn't fill up 1363 // Throw out the code so that the code cache doesn't fill up
1364 nm->make_not_entrant(); 1364 nm->make_not_entrant();