Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/advancedThresholdPolicy.cpp @ 6800:9191895df19d
7200001: failed C1 OSR compile doesn't get recompiled with C2
Reviewed-by: kvn
author | twisti |
---|---|
date | Mon, 24 Sep 2012 17:59:24 -0700 |
parents | da91efe96a93 |
children | d8ce2825b193 |
comparison
equal
deleted
inserted
replaced
6799:c92f43386117 | 6800:9191895df19d |
---|---|
28 | 28 |
29 #ifdef TIERED | 29 #ifdef TIERED |
30 // Print an event. | 30 // Print an event. |
31 void AdvancedThresholdPolicy::print_specific(EventType type, methodHandle mh, methodHandle imh, | 31 void AdvancedThresholdPolicy::print_specific(EventType type, methodHandle mh, methodHandle imh, |
32 int bci, CompLevel level) { | 32 int bci, CompLevel level) { |
33 tty->print(" rate: "); | 33 tty->print(" rate="); |
34 if (mh->prev_time() == 0) tty->print("n/a"); | 34 if (mh->prev_time() == 0) tty->print("n/a"); |
35 else tty->print("%f", mh->rate()); | 35 else tty->print("%f", mh->rate()); |
36 | 36 |
37 tty->print(" k: %.2lf,%.2lf", threshold_scale(CompLevel_full_profile, Tier3LoadFeedback), | 37 tty->print(" k=%.2lf,%.2lf", threshold_scale(CompLevel_full_profile, Tier3LoadFeedback), |
38 threshold_scale(CompLevel_full_optimization, Tier4LoadFeedback)); | 38 threshold_scale(CompLevel_full_optimization, Tier4LoadFeedback)); |
39 | 39 |
40 } | 40 } |
41 | 41 |
42 void AdvancedThresholdPolicy::initialize() { | 42 void AdvancedThresholdPolicy::initialize() { |
43 // Turn on ergonomic compiler count selection | 43 // Turn on ergonomic compiler count selection |