comparison src/share/vm/runtime/arguments.cpp @ 20596:4356234e712a

8041992: Fix of JDK-8034775 neglects to account for non-JIT VMs Summary: Allow 0 compiler threads if no JIT is used. Reviewed-by: kvn, dholmes Contributed-by: Severin Gehwolf <sgehwolf@redhat.com>
author anoll
date Fri, 02 May 2014 06:24:39 +0200
parents e8225dc7c94b
children 327c00d0f091
comparison
equal deleted inserted replaced
20595:c83362e7de6f 20596:4356234e712a
2461 #ifdef COMPILER1 2461 #ifdef COMPILER1
2462 status &= verify_interval(SafepointPollOffset, 0, os::vm_page_size() - BytesPerWord, "SafepointPollOffset"); 2462 status &= verify_interval(SafepointPollOffset, 0, os::vm_page_size() - BytesPerWord, "SafepointPollOffset");
2463 #endif 2463 #endif
2464 2464
2465 // TieredCompilation needs at least 2 compiler threads. 2465 // TieredCompilation needs at least 2 compiler threads.
2466 const int num_min_compiler_threads = (TieredCompilation && (TieredStopAtLevel >= CompLevel_full_optimization)) ? 2 : 1; 2466 const int num_min_compiler_threads = (TieredCompilation && (TieredStopAtLevel >= CompLevel_full_optimization)) ? 2 : CI_COMPILER_COUNT;
2467 status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount"); 2467 status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount");
2468 2468
2469 return status; 2469 return status;
2470 } 2470 }
2471 2471