equal
deleted
inserted
replaced
394 #endif // !PRODUCT |
394 #endif // !PRODUCT |
395 |
395 |
396 // SimpleCompPolicy - compile current method |
396 // SimpleCompPolicy - compile current method |
397 |
397 |
398 void SimpleCompPolicy::method_invocation_event( methodHandle m, TRAPS) { |
398 void SimpleCompPolicy::method_invocation_event( methodHandle m, TRAPS) { |
399 assert(UseCompiler || CompileTheWorld, "UseCompiler should be set by now."); |
|
400 |
|
401 int hot_count = m->invocation_count(); |
399 int hot_count = m->invocation_count(); |
402 reset_counter_for_invocation_event(m); |
400 reset_counter_for_invocation_event(m); |
403 const char* comment = "count"; |
401 const char* comment = "count"; |
404 |
402 |
405 if (is_compilation_enabled() && can_be_compiled(m)) { |
403 if (is_compilation_enabled() && can_be_compiled(m)) { |
411 } |
409 } |
412 } |
410 } |
413 } |
411 } |
414 |
412 |
415 void SimpleCompPolicy::method_back_branch_event(methodHandle m, int bci, TRAPS) { |
413 void SimpleCompPolicy::method_back_branch_event(methodHandle m, int bci, TRAPS) { |
416 assert(UseCompiler || CompileTheWorld, "UseCompiler should be set by now."); |
|
417 |
|
418 int hot_count = m->backedge_count(); |
414 int hot_count = m->backedge_count(); |
419 const char* comment = "backedge_count"; |
415 const char* comment = "backedge_count"; |
420 |
416 |
421 if (is_compilation_enabled() && !m->is_not_osr_compilable() && can_be_compiled(m)) { |
417 if (is_compilation_enabled() && !m->is_not_osr_compilable() && can_be_compiled(m)) { |
422 CompileBroker::compile_method(m, bci, CompLevel_highest_tier, |
418 CompileBroker::compile_method(m, bci, CompLevel_highest_tier, |
430 const char* StackWalkCompPolicy::_msg = NULL; |
426 const char* StackWalkCompPolicy::_msg = NULL; |
431 |
427 |
432 |
428 |
433 // Consider m for compilation |
429 // Consider m for compilation |
434 void StackWalkCompPolicy::method_invocation_event(methodHandle m, TRAPS) { |
430 void StackWalkCompPolicy::method_invocation_event(methodHandle m, TRAPS) { |
435 assert(UseCompiler || CompileTheWorld, "UseCompiler should be set by now."); |
|
436 |
|
437 int hot_count = m->invocation_count(); |
431 int hot_count = m->invocation_count(); |
438 reset_counter_for_invocation_event(m); |
432 reset_counter_for_invocation_event(m); |
439 const char* comment = "count"; |
433 const char* comment = "count"; |
440 |
434 |
441 if (is_compilation_enabled() && m->code() == NULL && can_be_compiled(m)) { |
435 if (is_compilation_enabled() && m->code() == NULL && can_be_compiled(m)) { |
471 } |
465 } |
472 } |
466 } |
473 } |
467 } |
474 |
468 |
475 void StackWalkCompPolicy::method_back_branch_event(methodHandle m, int bci, TRAPS) { |
469 void StackWalkCompPolicy::method_back_branch_event(methodHandle m, int bci, TRAPS) { |
476 assert(UseCompiler || CompileTheWorld, "UseCompiler should be set by now."); |
|
477 |
|
478 int hot_count = m->backedge_count(); |
470 int hot_count = m->backedge_count(); |
479 const char* comment = "backedge_count"; |
471 const char* comment = "backedge_count"; |
480 |
472 |
481 if (is_compilation_enabled() && !m->is_not_osr_compilable() && can_be_compiled(m)) { |
473 if (is_compilation_enabled() && !m->is_not_osr_compilable() && can_be_compiled(m)) { |
482 CompileBroker::compile_method(m, bci, CompLevel_highest_tier, m, hot_count, comment, CHECK); |
474 CompileBroker::compile_method(m, bci, CompLevel_highest_tier, m, hot_count, comment, CHECK); |