< prev index next >

src/hotspot/share/code/nmethod.hpp

Print this page
rev 54621 : imported patch 8221734-v1


 358   // used by jvmti to track if the unload event has been reported
 359   bool  unload_reported()                         { return _unload_reported; }
 360   void  set_unload_reported()                     { _unload_reported = true; }
 361 
 362   int get_state() const {
 363     return _state;
 364   }
 365 
 366   void  make_unloaded();
 367 
 368   bool has_dependencies()                         { return dependencies_size() != 0; }
 369   void flush_dependencies(bool delete_immediately);
 370   bool has_flushed_dependencies()                 { return _has_flushed_dependencies; }
 371   void set_has_flushed_dependencies()             {
 372     assert(!has_flushed_dependencies(), "should only happen once");
 373     _has_flushed_dependencies = 1;
 374   }
 375 
 376   int   comp_level() const                        { return _comp_level; }
 377 
 378   void unlink_from_method(bool acquire_lock);
 379 
 380   // Support for oops in scopes and relocs:
 381   // Note: index 0 is reserved for null.
 382   oop   oop_at(int index) const;
 383   oop*  oop_addr_at(int index) const {  // for GC
 384     // relocation indexes are biased by 1 (because 0 is reserved)
 385     assert(index > 0 && index <= oops_count(), "must be a valid non-zero index");
 386     assert(!_oops_are_stale, "oops are stale");
 387     return &oops_begin()[index - 1];
 388   }
 389 
 390   // Support for meta data in scopes and relocs:
 391   // Note: index 0 is reserved for null.
 392   Metadata*     metadata_at(int index) const      { return index == 0 ? NULL: *metadata_addr_at(index); }
 393   Metadata**  metadata_addr_at(int index) const {  // for GC
 394     // relocation indexes are biased by 1 (because 0 is reserved)
 395     assert(index > 0 && index <= metadata_count(), "must be a valid non-zero index");
 396     return &metadata_begin()[index - 1];
 397   }
 398 




 358   // used by jvmti to track if the unload event has been reported
 359   bool  unload_reported()                         { return _unload_reported; }
 360   void  set_unload_reported()                     { _unload_reported = true; }
 361 
 362   int get_state() const {
 363     return _state;
 364   }
 365 
 366   void  make_unloaded();
 367 
 368   bool has_dependencies()                         { return dependencies_size() != 0; }
 369   void flush_dependencies(bool delete_immediately);
 370   bool has_flushed_dependencies()                 { return _has_flushed_dependencies; }
 371   void set_has_flushed_dependencies()             {
 372     assert(!has_flushed_dependencies(), "should only happen once");
 373     _has_flushed_dependencies = 1;
 374   }
 375 
 376   int   comp_level() const                        { return _comp_level; }
 377 
 378   void unlink_from_method();
 379 
 380   // Support for oops in scopes and relocs:
 381   // Note: index 0 is reserved for null.
 382   oop   oop_at(int index) const;
 383   oop*  oop_addr_at(int index) const {  // for GC
 384     // relocation indexes are biased by 1 (because 0 is reserved)
 385     assert(index > 0 && index <= oops_count(), "must be a valid non-zero index");
 386     assert(!_oops_are_stale, "oops are stale");
 387     return &oops_begin()[index - 1];
 388   }
 389 
 390   // Support for meta data in scopes and relocs:
 391   // Note: index 0 is reserved for null.
 392   Metadata*     metadata_at(int index) const      { return index == 0 ? NULL: *metadata_addr_at(index); }
 393   Metadata**  metadata_addr_at(int index) const {  // for GC
 394     // relocation indexes are biased by 1 (because 0 is reserved)
 395     assert(index > 0 && index <= metadata_count(), "must be a valid non-zero index");
 396     return &metadata_begin()[index - 1];
 397   }
 398 


< prev index next >