We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5591f8a commit a875733Copy full SHA for a875733
src/hotspot/share/compiler/compilationMemoryStatistic.cpp
@@ -656,7 +656,7 @@ class MemStatStore : public CHeapObj<mtCompiler> {
656
assert_lock_strong(NMTCompilationCostHistory_lock);
657
const unsigned stop_after = max_num_printed == -1 ? UINT_MAX : (unsigned)max_num_printed;
658
result.num = result.num_c1 = result.num_c2 = result.num_filtered_out = 0;
659
- for (int i = 0; _entries[i].e != nullptr && i < max_entries && result.num < stop_after; i++) {
+ for (int i = 0; i < max_entries && _entries[i].e != nullptr && result.num < stop_after; i++) {
660
if (_entries[i].s >= minsize) {
661
f(_entries[i].e);
662
result.num++;
0 commit comments