hotspot/src/share/vm/c1/c1_Compiler.cpp
changeset 26796 666464578742
parent 25946 1572c9f03fb9
child 31962 d05e0a4d1b43
--- 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).