src/hotspot/share/gc/shared/generation.hpp
changeset 55557 657924d1e2ba
parent 55539 734e58d8477b
child 57777 90ead0febf56
equal deleted inserted replaced
55556:19d0b382f086 55557:657924d1e2ba
   154   // Space inquiries (results in bytes)
   154   // Space inquiries (results in bytes)
   155   size_t initial_size();
   155   size_t initial_size();
   156   virtual size_t capacity() const = 0;  // The maximum number of object bytes the
   156   virtual size_t capacity() const = 0;  // The maximum number of object bytes the
   157                                         // generation can currently hold.
   157                                         // generation can currently hold.
   158   virtual size_t used() const = 0;      // The number of used bytes in the gen.
   158   virtual size_t used() const = 0;      // The number of used bytes in the gen.
   159   virtual size_t used_stable() const;   // The number of used bytes for memory monitoring tools.
       
   160   virtual size_t free() const = 0;      // The number of free bytes in the gen.
   159   virtual size_t free() const = 0;      // The number of free bytes in the gen.
   161 
   160 
   162   // Support for java.lang.Runtime.maxMemory(); see CollectedHeap.
   161   // Support for java.lang.Runtime.maxMemory(); see CollectedHeap.
   163   // Returns the total number of bytes  available in a generation
   162   // Returns the total number of bytes  available in a generation
   164   // for the allocation of objects.
   163   // for the allocation of objects.