< prev index next >
src/hotspot/share/opto/c2compiler.cpp
Print this page
rev 51888 : 8177899: Tests fail due to code cache exhaustion on machines with many cores
Summary: Implemented upper limit on CICompilerCount based on code cache size.
Reviewed-by: kvn, mdoerr
*** 614,622 ****
return false;
}
return true;
}
! int C2Compiler::initial_code_buffer_size() {
! assert(SegmentedCodeCache, "Should be only used with a segmented code cache");
! return Compile::MAX_inst_size + Compile::MAX_locs_size + initial_const_capacity;
}
--- 614,624 ----
return false;
}
return true;
}
! int C2Compiler::initial_code_buffer_size(int const_size) {
! // See Compile::init_scratch_buffer_blob
! int locs_size = sizeof(relocInfo) * Compile::MAX_locs_size;
! int slop = 2 * CodeSection::end_slop(); // space between sections
! return Compile::MAX_inst_size + Compile::MAX_stubs_size + const_size + slop + locs_size;
}
< prev index next >