hotspot/src/share/vm/memory/heap.hpp
changeset 43945 e7f2e49d2274
parent 42664 29142a56c193
child 46647 634dc786bf96
equal deleted inserted replaced
43944:23334f30b9b2 43945:e7f2e49d2274
   151   // Attributes
   151   // Attributes
   152   char* low_boundary() const                     { return _memory.low_boundary (); }
   152   char* low_boundary() const                     { return _memory.low_boundary (); }
   153   char* high() const                             { return _memory.high(); }
   153   char* high() const                             { return _memory.high(); }
   154   char* high_boundary() const                    { return _memory.high_boundary(); }
   154   char* high_boundary() const                    { return _memory.high_boundary(); }
   155 
   155 
   156   virtual bool  contains(const void* p) const    { return low_boundary() <= p && p < high(); }
   156   virtual bool contains(const void* p) const     { return low_boundary() <= p && p < high(); }
       
   157   virtual bool contains_blob(const CodeBlob* blob) const { return low_boundary() <= (char*) blob && (char*) blob < high(); }
       
   158 
   157   virtual void* find_start(void* p)     const;   // returns the block containing p or NULL
   159   virtual void* find_start(void* p)     const;   // returns the block containing p or NULL
   158   virtual CodeBlob* find_blob_unsafe(void* start) const;
   160   virtual CodeBlob* find_blob_unsafe(void* start) const;
   159   size_t alignment_unit()       const;           // alignment of any block
   161   size_t alignment_unit()       const;           // alignment of any block
   160   size_t alignment_offset()     const;           // offset of first byte of any block, within the enclosing alignment unit
   162   size_t alignment_offset()     const;           // offset of first byte of any block, within the enclosing alignment unit
   161   static size_t header_size();                   // returns the header size for each heap block
   163   static size_t header_size();                   // returns the header size for each heap block