--- a/hotspot/src/share/vm/c1/c1_Compiler.cpp Tue Sep 16 14:39:11 2014 +0200
+++ b/hotspot/src/share/vm/c1/c1_Compiler.cpp Wed Sep 17 08:00:07 2014 +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).