hotspot/src/share/vm/code/codeCache.hpp
changeset 16615 45c4ee9a9212
parent 15201 f3d755b11424
child 17016 78b1c3670525
equal deleted inserted replaced
16614:8ad69fc9fb0b 16615:45c4ee9a9212
   154 
   154 
   155   // The full limits of the codeCache
   155   // The full limits of the codeCache
   156   static address  low_bound()                    { return (address) _heap->low_boundary(); }
   156   static address  low_bound()                    { return (address) _heap->low_boundary(); }
   157   static address  high_bound()                   { return (address) _heap->high_boundary(); }
   157   static address  high_bound()                   { return (address) _heap->high_boundary(); }
   158 
   158 
       
   159   static bool has_space(int size) {
       
   160     // Always leave some room in the CodeCache for I2C/C2I adapters
       
   161     return largest_free_block() > (CodeCacheMinimumFreeSpace + size);
       
   162   }
       
   163 
   159   // Profiling
   164   // Profiling
   160   static address first_address();                // first address used for CodeBlobs
   165   static address first_address();                // first address used for CodeBlobs
   161   static address last_address();                 // last  address used for CodeBlobs
   166   static address last_address();                 // last  address used for CodeBlobs
   162   static size_t  capacity()                      { return _heap->capacity(); }
   167   static size_t  capacity()                      { return _heap->capacity(); }
   163   static size_t  max_capacity()                  { return _heap->max_capacity(); }
   168   static size_t  max_capacity()                  { return _heap->max_capacity(); }