src/share/vm/code/codeCache.hpp

Print this page




 133   static void verify_oops();
 134   // If "unloading_occurred" is true, then unloads (i.e., breaks root links
 135   // to) any unmarked codeBlobs in the cache.  Sets "marked_for_unloading"
 136   // to "true" iff some code got unloaded.
 137   static void do_unloading(BoolObjectClosure* is_alive, bool unloading_occurred);
 138   static void oops_do(OopClosure* f) {
 139     CodeBlobToOopClosure oopc(f, /*do_marking=*/ false);
 140     blobs_do(&oopc);
 141   }
 142   static void asserted_non_scavengable_nmethods_do(CodeBlobClosure* f = NULL) PRODUCT_RETURN;
 143   static void scavenge_root_nmethods_do(CodeBlobClosure* f);
 144 
 145   static nmethod* scavenge_root_nmethods()          { return _scavenge_root_nmethods; }
 146   static void set_scavenge_root_nmethods(nmethod* nm) { _scavenge_root_nmethods = nm; }
 147   static void add_scavenge_root_nmethod(nmethod* nm);
 148   static void drop_scavenge_root_nmethod(nmethod* nm);
 149   static void prune_scavenge_root_nmethods();
 150 
 151   // Printing/debugging
 152   static void print();                           // prints summary
 153   static void print_internals();
 154   static void verify();                          // verifies the code cache
 155   static void print_trace(const char* event, CodeBlob* cb, int size = 0) PRODUCT_RETURN;
 156   static void print_summary(outputStream* st, bool detailed = true); // Prints a summary of the code cache usage
 157   static void log_state(outputStream* st);
 158 
 159   // The full limits of the codeCache
 160   static address  low_bound()                    { return (address) _heap->low_boundary(); }
 161   static address  high_bound()                   { return (address) _heap->high_boundary(); }
 162   static address  high()                         { return (address) _heap->high(); }
 163 
 164   // Profiling
 165   static address first_address();                // first address used for CodeBlobs
 166   static address last_address();                 // last  address used for CodeBlobs
 167   static size_t  capacity()                      { return _heap->capacity(); }
 168   static size_t  max_capacity()                  { return _heap->max_capacity(); }
 169   static size_t  unallocated_capacity()          { return _heap->unallocated_capacity(); }
 170   static bool    needs_flushing()                { return unallocated_capacity() < CodeCacheFlushingMinimumFreeSpace; }
 171   static double  reverse_free_ratio();
 172 
 173   static bool needs_cache_clean()                { return _needs_cache_clean; }




 133   static void verify_oops();
 134   // If "unloading_occurred" is true, then unloads (i.e., breaks root links
 135   // to) any unmarked codeBlobs in the cache.  Sets "marked_for_unloading"
 136   // to "true" iff some code got unloaded.
 137   static void do_unloading(BoolObjectClosure* is_alive, bool unloading_occurred);
 138   static void oops_do(OopClosure* f) {
 139     CodeBlobToOopClosure oopc(f, /*do_marking=*/ false);
 140     blobs_do(&oopc);
 141   }
 142   static void asserted_non_scavengable_nmethods_do(CodeBlobClosure* f = NULL) PRODUCT_RETURN;
 143   static void scavenge_root_nmethods_do(CodeBlobClosure* f);
 144 
 145   static nmethod* scavenge_root_nmethods()          { return _scavenge_root_nmethods; }
 146   static void set_scavenge_root_nmethods(nmethod* nm) { _scavenge_root_nmethods = nm; }
 147   static void add_scavenge_root_nmethod(nmethod* nm);
 148   static void drop_scavenge_root_nmethod(nmethod* nm);
 149   static void prune_scavenge_root_nmethods();
 150 
 151   // Printing/debugging
 152   static void print();                           // prints summary
 153   static void print_details();
 154   static void verify();                          // verifies the code cache
 155   static void print_trace(const char* event, CodeBlob* cb, int size = 0) PRODUCT_RETURN;
 156   static void print_summary(outputStream* st, bool detailed = true); // Prints a summary of the code cache usage
 157   static void log_state(outputStream* st);
 158 
 159   // The full limits of the codeCache
 160   static address  low_bound()                    { return (address) _heap->low_boundary(); }
 161   static address  high_bound()                   { return (address) _heap->high_boundary(); }
 162   static address  high()                         { return (address) _heap->high(); }
 163 
 164   // Profiling
 165   static address first_address();                // first address used for CodeBlobs
 166   static address last_address();                 // last  address used for CodeBlobs
 167   static size_t  capacity()                      { return _heap->capacity(); }
 168   static size_t  max_capacity()                  { return _heap->max_capacity(); }
 169   static size_t  unallocated_capacity()          { return _heap->unallocated_capacity(); }
 170   static bool    needs_flushing()                { return unallocated_capacity() < CodeCacheFlushingMinimumFreeSpace; }
 171   static double  reverse_free_ratio();
 172 
 173   static bool needs_cache_clean()                { return _needs_cache_clean; }