hotspot/src/share/vm/code/codeCache.hpp
changeset 26942 fa5ea7ff078d
parent 26919 361b4b4c92c0
child 27410 dd80df7cfa2b
equal deleted inserted replaced
26919:361b4b4c92c0 26942:fa5ea7ff078d
    98   static void initialize_heaps();                             // Initializes the CodeHeaps
    98   static void initialize_heaps();                             // Initializes the CodeHeaps
    99   // Creates a new heap with the given name and size, containing CodeBlobs of the given type
    99   // Creates a new heap with the given name and size, containing CodeBlobs of the given type
   100   static void add_heap(ReservedSpace rs, const char* name, size_t size_initial, int code_blob_type);
   100   static void add_heap(ReservedSpace rs, const char* name, size_t size_initial, int code_blob_type);
   101   static CodeHeap* get_code_heap(CodeBlob* cb);               // Returns the CodeHeap for the given CodeBlob
   101   static CodeHeap* get_code_heap(CodeBlob* cb);               // Returns the CodeHeap for the given CodeBlob
   102   static CodeHeap* get_code_heap(int code_blob_type);         // Returns the CodeHeap for the given CodeBlobType
   102   static CodeHeap* get_code_heap(int code_blob_type);         // Returns the CodeHeap for the given CodeBlobType
   103   static bool heap_available(int code_blob_type);             // Returns true if a CodeHeap for the given CodeBlobType is available
   103   static bool heap_available(int code_blob_type);             // Returns true if an own CodeHeap for the given CodeBlobType is available
   104   static ReservedCodeSpace reserve_heap_memory(size_t size);  // Reserves one continuous chunk of memory for the CodeHeaps
   104   static ReservedCodeSpace reserve_heap_memory(size_t size);  // Reserves one continuous chunk of memory for the CodeHeaps
   105 
   105 
   106   // Iteration
   106   // Iteration
   107   static CodeBlob* first_blob(CodeHeap* heap);                // Returns the first CodeBlob on the given CodeHeap
   107   static CodeBlob* first_blob(CodeHeap* heap);                // Returns the first CodeBlob on the given CodeHeap
   108   static CodeBlob* first_blob(int code_blob_type);            // Returns the first CodeBlob of the given type
   108   static CodeBlob* first_blob(int code_blob_type);            // Returns the first CodeBlob of the given type
   173   // The full limits of the codeCache
   173   // The full limits of the codeCache
   174   static address low_bound()                          { return _low_bound; }
   174   static address low_bound()                          { return _low_bound; }
   175   static address high_bound()                         { return _high_bound; }
   175   static address high_bound()                         { return _high_bound; }
   176 
   176 
   177   // Profiling
   177   // Profiling
   178   static size_t capacity(int code_blob_type)             { return heap_available(code_blob_type) ? get_code_heap(code_blob_type)->capacity() : 0; }
       
   179   static size_t capacity();
   178   static size_t capacity();
   180   static size_t unallocated_capacity(int code_blob_type) { return heap_available(code_blob_type) ? get_code_heap(code_blob_type)->unallocated_capacity() : 0; }
   179   static size_t unallocated_capacity(int code_blob_type);
   181   static size_t unallocated_capacity();
   180   static size_t unallocated_capacity();
   182   static size_t max_capacity(int code_blob_type)         { return heap_available(code_blob_type) ? get_code_heap(code_blob_type)->max_capacity() : 0; }
       
   183   static size_t max_capacity();
   181   static size_t max_capacity();
   184 
   182 
   185   static bool   is_full(int* code_blob_type);
   183   static bool   is_full(int* code_blob_type);
   186   static double reverse_free_ratio(int code_blob_type);
   184   static double reverse_free_ratio(int code_blob_type);
   187 
   185