hotspot/src/share/vm/c1/c1_Compiler.cpp
changeset 26796 666464578742
parent 25946 1572c9f03fb9
child 31962 d05e0a4d1b43
equal deleted inserted replaced
26706:1e985d72c57f 26796:666464578742
    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