comparison src/share/vm/runtime/compilationPolicy.cpp @ 4977:532be189cf09

Reducing diff to hsx24
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 27 Feb 2012 17:06:18 +0100
parents 33df1aeaebbf
children af59b4dfc9e4
comparison
equal deleted inserted replaced
4976:8f01f899bccd 4977:532be189cf09
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 #if defined(COMPILER2) || defined(GRAAL)
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
418 NOT_PRODUCT(trace_osr_completion(m->lookup_osr_nmethod_for(bci, CompLevel_highest_tier, true));) 418 NOT_PRODUCT(trace_osr_completion(m->lookup_osr_nmethod_for(bci, CompLevel_highest_tier, true));)
419 } 419 }
420 } 420 }
421 // StackWalkCompPolicy - walk up stack to find a suitable method to compile 421 // StackWalkCompPolicy - walk up stack to find a suitable method to compile
422 422
423 //#ifdef COMPILER2 423 #if defined(COMPILER2) || defined(GRAAL)
424 const char* StackWalkCompPolicy::_msg = NULL; 424 const char* StackWalkCompPolicy::_msg = NULL;
425 425
426 426
427 // Consider m for compilation 427 // Consider m for compilation
428 void StackWalkCompPolicy::method_invocation_event(methodHandle m, JavaThread* thread) { 428 void StackWalkCompPolicy::method_invocation_event(methodHandle m, JavaThread* thread) {
644 return NULL; 644 return NULL;
645 } 645 }
646 646
647 647
648 648
649 //#endif // COMPILER2 649 #endif // COMPILER2 || GRAAL