--- old/src/share/vm/c1/c1_Compiler.cpp 2014-09-03 12:15:30.171797422 +0200 +++ new/src/share/vm/c1/c1_Compiler.cpp 2014-09-03 12:15:29.855797413 +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).