hotspot/src/share/vm/code/compiledMethod.hpp
changeset 42040 70ec5a09a0d5
parent 38133 78b95467b9f1
child 42650 1f304d0c888b
equal deleted inserted replaced
42039:db627462f2c9 42040:70ec5a09a0d5
   162   PcDescContainer _pc_desc_container;
   162   PcDescContainer _pc_desc_container;
   163   ExceptionCache * volatile _exception_cache;
   163   ExceptionCache * volatile _exception_cache;
   164 
   164 
   165   virtual void flush() = 0;
   165   virtual void flush() = 0;
   166 protected:
   166 protected:
   167   CompiledMethod(Method* method, const char* name, const CodeBlobLayout& layout, int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, bool caller_must_gc_arguments);
   167   CompiledMethod(Method* method, const char* name, CompilerType type, const CodeBlobLayout& layout, int frame_complete_offset, int frame_size, ImmutableOopMapSet* oop_maps, bool caller_must_gc_arguments);
   168   CompiledMethod(Method* method, const char* name, int size, int header_size, CodeBuffer* cb, int frame_complete_offset, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments);
   168   CompiledMethod(Method* method, const char* name, CompilerType type, int size, int header_size, CodeBuffer* cb, int frame_complete_offset, int frame_size, OopMapSet* oop_maps, bool caller_must_gc_arguments);
   169 
   169 
   170 public:
   170 public:
   171   virtual bool is_compiled() const                { return true; }
   171   virtual bool is_compiled() const                { return true; }
   172 
   172 
   173   bool  has_unsafe_access() const                 { return _has_unsafe_access; }
   173   bool  has_unsafe_access() const                 { return _has_unsafe_access; }
   189          zombie       = 3,   // no activations exist, nmethod is ready for purge
   189          zombie       = 3,   // no activations exist, nmethod is ready for purge
   190          unloaded     = 4    // there should be no activations, should not be called,
   190          unloaded     = 4    // there should be no activations, should not be called,
   191                              // will be transformed to zombie immediately
   191                              // will be transformed to zombie immediately
   192   };
   192   };
   193 
   193 
   194   virtual AbstractCompiler* compiler() const = 0;
       
   195   virtual bool  is_in_use() const = 0;
   194   virtual bool  is_in_use() const = 0;
   196   virtual int   comp_level() const = 0;
   195   virtual int   comp_level() const = 0;
   197   virtual int   compile_id() const = 0;
   196   virtual int   compile_id() const = 0;
   198 
       
   199 
   197 
   200   virtual address verified_entry_point() const = 0;
   198   virtual address verified_entry_point() const = 0;
   201   virtual void log_identity(xmlStream* log) const = 0;
   199   virtual void log_identity(xmlStream* log) const = 0;
   202   virtual void log_state_change() const = 0;
   200   virtual void log_state_change() const = 0;
   203   virtual bool make_not_used() = 0;
   201   virtual bool make_not_used() = 0;