src/share/vm/code/codeCache.hpp

changeset 1637
5f24d0319e54
parent 1424
148e5441d916
child 1893
bfe29ec02863
     1.1 --- a/src/share/vm/code/codeCache.hpp	Fri Jan 29 08:33:24 2010 -0800
     1.2 +++ b/src/share/vm/code/codeCache.hpp	Fri Jan 29 09:27:22 2010 -0800
     1.3 @@ -46,6 +46,7 @@
     1.4    static int _number_of_nmethods_with_dependencies;
     1.5    static bool _needs_cache_clean;
     1.6    static nmethod* _scavenge_root_nmethods;  // linked via nm->scavenge_root_link()
     1.7 +  static nmethod* _saved_nmethods;          // linked via nm->saved_nmethod_look()
     1.8  
     1.9    static void verify_if_often() PRODUCT_RETURN;
    1.10  
    1.11 @@ -141,11 +142,16 @@
    1.12    static size_t  capacity()                      { return _heap->capacity(); }
    1.13    static size_t  max_capacity()                  { return _heap->max_capacity(); }
    1.14    static size_t  unallocated_capacity()          { return _heap->unallocated_capacity(); }
    1.15 +  static bool    needs_flushing()                { return unallocated_capacity() < CodeCacheFlushingMinimumFreeSpace; }
    1.16  
    1.17    static bool needs_cache_clean()                { return _needs_cache_clean; }
    1.18    static void set_needs_cache_clean(bool v)      { _needs_cache_clean = v;    }
    1.19    static void clear_inline_caches();             // clear all inline caches
    1.20  
    1.21 +  static nmethod* find_and_remove_saved_code(methodOop m);
    1.22 +  static void remove_saved_code(nmethod* nm);
    1.23 +  static void speculatively_disconnect(nmethod* nm);
    1.24 +
    1.25    // Deoptimization
    1.26    static int  mark_for_deoptimization(DepChange& changes);
    1.27  #ifdef HOTSWAP

mercurial