mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8015774: Add support for multiple code heaps
Support for segmentation of the code cache. Separate code heaps are created and used to store code of different types. Reviewed-by: kvn, iveresov, roland, anoll, egahlin, sla
This commit is contained in:
parent
b2620f89c3
commit
cd01de591a
51 changed files with 1756 additions and 680 deletions
|
@ -24,7 +24,9 @@
|
|||
|
||||
#include "precompiled.hpp"
|
||||
#include "opto/c2compiler.hpp"
|
||||
#include "opto/compile.hpp"
|
||||
#include "opto/optoreg.hpp"
|
||||
#include "opto/output.hpp"
|
||||
#include "opto/runtime.hpp"
|
||||
|
||||
// register information defined by ADLC
|
||||
|
@ -147,3 +149,8 @@ void C2Compiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) {
|
|||
void C2Compiler::print_timers() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue