hotspot/src/share/vm/gc_implementation/shared/mutableSpace.hpp
changeset 22552 a29022212180
parent 22551 9bf46d16dcc6
equal deleted inserted replaced
22551:9bf46d16dcc6 22552:a29022212180
   122 
   122 
   123   // Size computations.  Sizes are in heapwords.
   123   // Size computations.  Sizes are in heapwords.
   124   virtual size_t used_in_words() const                    { return pointer_delta(top(), bottom()); }
   124   virtual size_t used_in_words() const                    { return pointer_delta(top(), bottom()); }
   125   virtual size_t free_in_words() const                    { return pointer_delta(end(),    top()); }
   125   virtual size_t free_in_words() const                    { return pointer_delta(end(),    top()); }
   126   virtual size_t tlab_capacity(Thread* thr) const         { return capacity_in_bytes();            }
   126   virtual size_t tlab_capacity(Thread* thr) const         { return capacity_in_bytes();            }
       
   127   virtual size_t tlab_used(Thread* thr) const             { return used_in_bytes();                }
   127   virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes();                }
   128   virtual size_t unsafe_max_tlab_alloc(Thread* thr) const { return free_in_bytes();                }
   128 
   129 
   129   // Allocation (return NULL if full)
   130   // Allocation (return NULL if full)
   130   virtual HeapWord* allocate(size_t word_size);
   131   virtual HeapWord* allocate(size_t word_size);
   131   virtual HeapWord* cas_allocate(size_t word_size);
   132   virtual HeapWord* cas_allocate(size_t word_size);