src/hotspot/share/code/compiledMethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File open Sdiff src/hotspot/share/code

src/hotspot/share/code/compiledMethod.cpp

Print this page




  47 void CompiledMethod::init_defaults() {
  48   _has_unsafe_access          = 0;
  49   _has_method_handle_invokes  = 0;
  50   _lazy_critical_native       = 0;
  51   _has_wide_vectors           = 0;
  52   _unloading_clock            = 0;
  53 }
  54 
  55 bool CompiledMethod::is_method_handle_return(address return_pc) {
  56   if (!has_method_handle_invokes())  return false;
  57   PcDesc* pd = pc_desc_at(return_pc);
  58   if (pd == NULL)
  59     return false;
  60   return pd->is_method_handle_invoke();
  61 }
  62 
  63 // Returns a string version of the method state.
  64 const char* CompiledMethod::state() const {
  65   int state = get_state();
  66   switch (state) {


  67   case in_use:
  68     return "in use";
  69   case not_used:
  70     return "not_used";
  71   case not_entrant:
  72     return "not_entrant";
  73   case zombie:
  74     return "zombie";
  75   case unloaded:
  76     return "unloaded";
  77   default:
  78     fatal("unexpected method state: %d", state);
  79     return NULL;
  80   }
  81 }
  82 
  83 //-----------------------------------------------------------------------------
  84 
  85 void CompiledMethod::add_exception_cache_entry(ExceptionCache* new_entry) {
  86   assert(ExceptionCache_lock->owned_by_self(),"Must hold the ExceptionCache_lock");




  47 void CompiledMethod::init_defaults() {
  48   _has_unsafe_access          = 0;
  49   _has_method_handle_invokes  = 0;
  50   _lazy_critical_native       = 0;
  51   _has_wide_vectors           = 0;
  52   _unloading_clock            = 0;
  53 }
  54 
  55 bool CompiledMethod::is_method_handle_return(address return_pc) {
  56   if (!has_method_handle_invokes())  return false;
  57   PcDesc* pd = pc_desc_at(return_pc);
  58   if (pd == NULL)
  59     return false;
  60   return pd->is_method_handle_invoke();
  61 }
  62 
  63 // Returns a string version of the method state.
  64 const char* CompiledMethod::state() const {
  65   int state = get_state();
  66   switch (state) {
  67   case not_installed:
  68     return "not installed";
  69   case in_use:
  70     return "in use";
  71   case not_used:
  72     return "not_used";
  73   case not_entrant:
  74     return "not_entrant";
  75   case zombie:
  76     return "zombie";
  77   case unloaded:
  78     return "unloaded";
  79   default:
  80     fatal("unexpected method state: %d", state);
  81     return NULL;
  82   }
  83 }
  84 
  85 //-----------------------------------------------------------------------------
  86 
  87 void CompiledMethod::add_exception_cache_entry(ExceptionCache* new_entry) {
  88   assert(ExceptionCache_lock->owned_by_self(),"Must hold the ExceptionCache_lock");


src/hotspot/share/code/compiledMethod.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File