equal
deleted
inserted
replaced
74 set_state(initialized); |
74 set_state(initialized); |
75 } |
75 } |
76 } |
76 } |
77 } |
77 } |
78 |
78 |
|
79 int Compiler::code_buffer_size() { |
|
80 assert(SegmentedCodeCache, "Should be only used with a segmented code cache"); |
|
81 return Compilation::desired_max_code_buffer_size() + Compilation::desired_max_constant_size(); |
|
82 } |
|
83 |
79 BufferBlob* Compiler::init_buffer_blob() { |
84 BufferBlob* Compiler::init_buffer_blob() { |
80 // Allocate buffer blob once at startup since allocation for each |
85 // Allocate buffer blob once at startup since allocation for each |
81 // compilation seems to be too expensive (at least on Intel win32). |
86 // compilation seems to be too expensive (at least on Intel win32). |
82 assert (CompilerThread::current()->get_buffer_blob() == NULL, "Should initialize only once"); |
87 assert (CompilerThread::current()->get_buffer_blob() == NULL, "Should initialize only once"); |
83 |
88 |