hotspot/src/share/vm/gc/shared/space.hpp
changeset 46619 a3919f5e8d2b
parent 46618 d503911aa948
child 46625 edefffab74e2
equal deleted inserted replaced
46618:d503911aa948 46619:a3919f5e8d2b
   152   // Returns true iff the given block is not allocated.
   152   // Returns true iff the given block is not allocated.
   153   virtual bool is_free_block(const HeapWord* p) const = 0;
   153   virtual bool is_free_block(const HeapWord* p) const = 0;
   154 
   154 
   155   // Test whether p is double-aligned
   155   // Test whether p is double-aligned
   156   static bool is_aligned(void* p) {
   156   static bool is_aligned(void* p) {
   157     return is_ptr_aligned(p, sizeof(double));
   157     return ::is_aligned(p, sizeof(double));
   158   }
   158   }
   159 
   159 
   160   // Size computations.  Sizes are in bytes.
   160   // Size computations.  Sizes are in bytes.
   161   size_t capacity()     const { return byte_size(bottom(), end()); }
   161   size_t capacity()     const { return byte_size(bottom(), end()); }
   162   virtual size_t used() const = 0;
   162   virtual size_t used() const = 0;