--- old/src/share/vm/c1/c1_Compiler.cpp 2014-08-29 15:59:13.128855190 +0200 +++ new/src/share/vm/c1/c1_Compiler.cpp 2014-08-29 15:59:12.708855210 +0200 @@ -76,6 +76,11 @@ } } +int Compiler::code_buffer_size() { + assert(SegmentedCodeCache, "Should be only used with a segmented code cache"); + return Compilation::desired_max_code_buffer_size() + Compilation::desired_max_constant_size(); +} + BufferBlob* Compiler::init_buffer_blob() { // Allocate buffer blob once at startup since allocation for each // compilation seems to be too expensive (at least on Intel win32).