comparison src/share/vm/runtime/compilationPolicy.cpp @ 3568:409ef3a68dc8

re-lock objects whose lock was removed by escape analysis, enable stack walking compilation policy (-XX:CompilationPolicyChoice=1)
author Lukas Stadler <lukas.stadler@jku.at>
date Thu, 01 Sep 2011 15:28:24 +0200
parents e2eb7f986c64
children 04b9a2566eec
comparison
equal deleted inserted replaced
3567:dbf8d6a4201f 3568:409ef3a68dc8
58 case 0: 58 case 0:
59 CompilationPolicy::set_policy(new SimpleCompPolicy()); 59 CompilationPolicy::set_policy(new SimpleCompPolicy());
60 break; 60 break;
61 61
62 case 1: 62 case 1:
63 #ifdef COMPILER2 63 //#ifdef COMPILER2
64 CompilationPolicy::set_policy(new StackWalkCompPolicy()); 64 CompilationPolicy::set_policy(new StackWalkCompPolicy());
65 #else 65 //#else
66 Unimplemented(); 66 // Unimplemented();
67 #endif 67 //#endif
68 break; 68 break;
69 case 2: 69 case 2:
70 #ifdef TIERED 70 #ifdef TIERED
71 CompilationPolicy::set_policy(new SimpleThresholdPolicy()); 71 CompilationPolicy::set_policy(new SimpleThresholdPolicy());
72 #else 72 #else
420 NOT_PRODUCT(trace_osr_completion(m->lookup_osr_nmethod_for(bci, CompLevel_highest_tier, true));) 420 NOT_PRODUCT(trace_osr_completion(m->lookup_osr_nmethod_for(bci, CompLevel_highest_tier, true));)
421 } 421 }
422 } 422 }
423 // StackWalkCompPolicy - walk up stack to find a suitable method to compile 423 // StackWalkCompPolicy - walk up stack to find a suitable method to compile
424 424
425 #ifdef COMPILER2 425 //#ifdef COMPILER2
426 const char* StackWalkCompPolicy::_msg = NULL; 426 const char* StackWalkCompPolicy::_msg = NULL;
427 427
428 428
429 // Consider m for compilation 429 // Consider m for compilation
430 void StackWalkCompPolicy::method_invocation_event(methodHandle m, TRAPS) { 430 void StackWalkCompPolicy::method_invocation_event(methodHandle m, TRAPS) {
647 return NULL; 647 return NULL;
648 } 648 }
649 649
650 650
651 651
652 #endif // COMPILER2 652 //#endif // COMPILER2