< prev index next >

src/hotspot/share/compiler/tieredThresholdPolicy.cpp

Print this page
rev 59103 : imported patch hotspot


 280 #endif
 281 
 282   if (c1_only) {
 283     // No C2 compiler thread required
 284     set_c1_count(count);
 285   } else if (c2_only) {
 286     set_c2_count(count);
 287   } else {
 288     set_c1_count(MAX2(count / 3, 1));
 289     set_c2_count(MAX2(count - c1_count(), 1));
 290   }
 291   assert(count == c1_count() + c2_count(), "inconsistent compiler thread count");
 292 
 293   // Some inlining tuning
 294 #ifdef X86
 295   if (FLAG_IS_DEFAULT(InlineSmallCode)) {
 296     FLAG_SET_DEFAULT(InlineSmallCode, 2000);
 297   }
 298 #endif
 299 
 300 #if defined SPARC || defined AARCH64
 301   if (FLAG_IS_DEFAULT(InlineSmallCode)) {
 302     FLAG_SET_DEFAULT(InlineSmallCode, 2500);
 303   }
 304 #endif
 305 
 306   set_increase_threshold_at_ratio();
 307   set_start_time(nanos_to_millis(os::javaTimeNanos()));
 308 }
 309 
 310 
 311 #ifdef ASSERT
 312 bool TieredThresholdPolicy::verify_level(CompLevel level) {
 313   // AOT and interpreter levels are always valid.
 314   if (level == CompLevel_aot || level == CompLevel_none) {
 315     return true;
 316   }
 317   if (CompilationModeFlag::normal()) {
 318     return true;
 319   } else if (CompilationModeFlag::quick_only()) {
 320     return level == CompLevel_simple;




 280 #endif
 281 
 282   if (c1_only) {
 283     // No C2 compiler thread required
 284     set_c1_count(count);
 285   } else if (c2_only) {
 286     set_c2_count(count);
 287   } else {
 288     set_c1_count(MAX2(count / 3, 1));
 289     set_c2_count(MAX2(count - c1_count(), 1));
 290   }
 291   assert(count == c1_count() + c2_count(), "inconsistent compiler thread count");
 292 
 293   // Some inlining tuning
 294 #ifdef X86
 295   if (FLAG_IS_DEFAULT(InlineSmallCode)) {
 296     FLAG_SET_DEFAULT(InlineSmallCode, 2000);
 297   }
 298 #endif
 299 
 300 #if defined AARCH64
 301   if (FLAG_IS_DEFAULT(InlineSmallCode)) {
 302     FLAG_SET_DEFAULT(InlineSmallCode, 2500);
 303   }
 304 #endif
 305 
 306   set_increase_threshold_at_ratio();
 307   set_start_time(nanos_to_millis(os::javaTimeNanos()));
 308 }
 309 
 310 
 311 #ifdef ASSERT
 312 bool TieredThresholdPolicy::verify_level(CompLevel level) {
 313   // AOT and interpreter levels are always valid.
 314   if (level == CompLevel_aot || level == CompLevel_none) {
 315     return true;
 316   }
 317   if (CompilationModeFlag::normal()) {
 318     return true;
 319   } else if (CompilationModeFlag::quick_only()) {
 320     return level == CompLevel_simple;


< prev index next >