src/hotspot/share/code/nmethod.hpp
changeset 55454 8892555795cd
parent 55293 d19dc5b10fbb
child 55479 80b27dc96ca3
equal deleted inserted replaced
55453:65916ade7fa2 55454:8892555795cd
   390   void unlink_from_method();
   390   void unlink_from_method();
   391 
   391 
   392   // Support for oops in scopes and relocs:
   392   // Support for oops in scopes and relocs:
   393   // Note: index 0 is reserved for null.
   393   // Note: index 0 is reserved for null.
   394   oop   oop_at(int index) const;
   394   oop   oop_at(int index) const;
       
   395   oop   oop_at_phantom(int index) const; // phantom reference
   395   oop*  oop_addr_at(int index) const {  // for GC
   396   oop*  oop_addr_at(int index) const {  // for GC
   396     // relocation indexes are biased by 1 (because 0 is reserved)
   397     // relocation indexes are biased by 1 (because 0 is reserved)
   397     assert(index > 0 && index <= oops_count(), "must be a valid non-zero index");
   398     assert(index > 0 && index <= oops_count(), "must be a valid non-zero index");
   398     assert(!_oops_are_stale, "oops are stale");
   399     assert(!_oops_are_stale, "oops are stale");
   399     return &oops_begin()[index - 1];
   400     return &oops_begin()[index - 1];