Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/advancedThresholdPolicy.cpp @ 17906:7150b16fda52
8029436: CICompilerCount is not updated when the number of compiler threads is adjusted to the number of CPUs
Summary: CICompilerCount is updated in AdvancedThresholdPolicy::initialize, SimpleThresholdPolicy::initialize and NonTieredCompPolicy::initialize. A warning is printed if the usersets both, CICompilerCount and CICompilerCountPerCPU.
Reviewed-by: kvn, twisti
Contributed-by: Tobias Hartmann <tobias.hartmann@oracle.com>
author | anoll |
---|---|
date | Mon, 14 Apr 2014 08:24:28 +0200 |
parents | 91eba9f82325 |
children | 52b4284cb496 7301840ea20e |
comparison
equal
deleted
inserted
replaced
17905:4e03f6196358 | 17906:7150b16fda52 |
---|---|
51 int loglog_cpu = log2_intptr(MAX2(log_cpu, 1)); | 51 int loglog_cpu = log2_intptr(MAX2(log_cpu, 1)); |
52 count = MAX2(log_cpu * loglog_cpu, 1) * 3 / 2; | 52 count = MAX2(log_cpu * loglog_cpu, 1) * 3 / 2; |
53 } | 53 } |
54 | 54 |
55 set_c1_count(MAX2(count / 3, 1)); | 55 set_c1_count(MAX2(count / 3, 1)); |
56 set_c2_count(MAX2(count - count / 3, 1)); | 56 set_c2_count(MAX2(count - c1_count(), 1)); |
57 FLAG_SET_ERGO(intx, CICompilerCount, c1_count() + c2_count()); | |
57 | 58 |
58 // Some inlining tuning | 59 // Some inlining tuning |
59 #ifdef X86 | 60 #ifdef X86 |
60 if (FLAG_IS_DEFAULT(InlineSmallCode)) { | 61 if (FLAG_IS_DEFAULT(InlineSmallCode)) { |
61 FLAG_SET_DEFAULT(InlineSmallCode, 2000); | 62 FLAG_SET_DEFAULT(InlineSmallCode, 2000); |