< prev index next >

src/hotspot/share/gc/epsilon/epsilonHeap.hpp

Print this page

 65 
 66   virtual SoftRefPolicy* soft_ref_policy() {
 67     return &_soft_ref_policy;
 68   }
 69 
 70   virtual jint initialize();
 71   virtual void post_initialize();
 72   virtual void initialize_serviceability();
 73 
 74   virtual GrowableArray<GCMemoryManager*> memory_managers();
 75   virtual GrowableArray<MemoryPool*> memory_pools();
 76 
 77   virtual size_t max_capacity() const { return _virtual_space.reserved_size();  }
 78   virtual size_t capacity()     const { return _virtual_space.committed_size(); }
 79   virtual size_t used()         const { return _space->used(); }
 80 
 81   virtual bool is_in(const void* p) const {
 82     return _space->is_in(p);
 83   }
 84 


 85   virtual bool is_maximal_no_gc() const {
 86     // No GC is going to happen. Return "we are at max", when we are about to fail.
 87     return used() == capacity();
 88   }
 89 
 90   // Allocation
 91   HeapWord* allocate_work(size_t size, bool verbose = true);
 92   virtual HeapWord* mem_allocate(size_t size, bool* gc_overhead_limit_was_exceeded);
 93   virtual HeapWord* allocate_new_tlab(size_t min_size,
 94                                       size_t requested_size,
 95                                       size_t* actual_size);
 96 
 97   // TLAB allocation
 98   virtual size_t tlab_capacity(Thread* thr)         const { return capacity();     }
 99   virtual size_t tlab_used(Thread* thr)             const { return used();         }
100   virtual size_t max_tlab_size()                    const { return _max_tlab_size; }
101   virtual size_t unsafe_max_tlab_alloc(Thread* thr) const;
102 
103   virtual void collect(GCCause::Cause cause);
104   virtual void do_full_collection(bool clear_all_soft_refs);

 65 
 66   virtual SoftRefPolicy* soft_ref_policy() {
 67     return &_soft_ref_policy;
 68   }
 69 
 70   virtual jint initialize();
 71   virtual void post_initialize();
 72   virtual void initialize_serviceability();
 73 
 74   virtual GrowableArray<GCMemoryManager*> memory_managers();
 75   virtual GrowableArray<MemoryPool*> memory_pools();
 76 
 77   virtual size_t max_capacity() const { return _virtual_space.reserved_size();  }
 78   virtual size_t capacity()     const { return _virtual_space.committed_size(); }
 79   virtual size_t used()         const { return _space->used(); }
 80 
 81   virtual bool is_in(const void* p) const {
 82     return _space->is_in(p);
 83   }
 84 
 85   virtual bool requires_barriers(oop obj) const { return false; }
 86 
 87   virtual bool is_maximal_no_gc() const {
 88     // No GC is going to happen. Return "we are at max", when we are about to fail.
 89     return used() == capacity();
 90   }
 91 
 92   // Allocation
 93   HeapWord* allocate_work(size_t size, bool verbose = true);
 94   virtual HeapWord* mem_allocate(size_t size, bool* gc_overhead_limit_was_exceeded);
 95   virtual HeapWord* allocate_new_tlab(size_t min_size,
 96                                       size_t requested_size,
 97                                       size_t* actual_size);
 98 
 99   // TLAB allocation
100   virtual size_t tlab_capacity(Thread* thr)         const { return capacity();     }
101   virtual size_t tlab_used(Thread* thr)             const { return used();         }
102   virtual size_t max_tlab_size()                    const { return _max_tlab_size; }
103   virtual size_t unsafe_max_tlab_alloc(Thread* thr) const;
104 
105   virtual void collect(GCCause::Cause cause);
106   virtual void do_full_collection(bool clear_all_soft_refs);
< prev index next >