< prev index next >

src/hotspot/share/gc/shared/collectedHeap.hpp

Print this page




 173   static inline void fill_with_array(HeapWord* start, size_t words, bool zap = true);
 174 
 175   // Fill with a single object (either an int array or a java.lang.Object).
 176   static inline void fill_with_object_impl(HeapWord* start, size_t words, bool zap = true);
 177 
 178   virtual void trace_heap(GCWhen::Type when, const GCTracer* tracer);
 179 
 180   // Verification functions
 181   virtual void check_for_bad_heap_word_value(HeapWord* addr, size_t size)
 182     PRODUCT_RETURN;
 183   virtual void check_for_non_bad_heap_word_value(HeapWord* addr, size_t size)
 184     PRODUCT_RETURN;
 185   debug_only(static void check_for_valid_allocation_state();)
 186 
 187  public:
 188   enum Name {
 189     None,
 190     Serial,
 191     Parallel,
 192     CMS,
 193     G1

 194   };
 195 
 196   static inline size_t filler_array_max_size() {
 197     return _filler_array_max_size;
 198   }
 199 
 200   virtual Name kind() const = 0;
 201 
 202   virtual const char* name() const = 0;
 203 
 204   /**
 205    * Returns JNI error code JNI_ENOMEM if memory could not be allocated,
 206    * and JNI_OK on success.
 207    */
 208   virtual jint initialize() = 0;
 209 
 210   // In many heaps, there will be a need to perform some initialization activities
 211   // after the Universe is fully formed, but before general heap allocation is allowed.
 212   // This is the correct place to place such initialization methods.
 213   virtual void post_initialize();




 173   static inline void fill_with_array(HeapWord* start, size_t words, bool zap = true);
 174 
 175   // Fill with a single object (either an int array or a java.lang.Object).
 176   static inline void fill_with_object_impl(HeapWord* start, size_t words, bool zap = true);
 177 
 178   virtual void trace_heap(GCWhen::Type when, const GCTracer* tracer);
 179 
 180   // Verification functions
 181   virtual void check_for_bad_heap_word_value(HeapWord* addr, size_t size)
 182     PRODUCT_RETURN;
 183   virtual void check_for_non_bad_heap_word_value(HeapWord* addr, size_t size)
 184     PRODUCT_RETURN;
 185   debug_only(static void check_for_valid_allocation_state();)
 186 
 187  public:
 188   enum Name {
 189     None,
 190     Serial,
 191     Parallel,
 192     CMS,
 193     G1,
 194     Epsilon,
 195   };
 196 
 197   static inline size_t filler_array_max_size() {
 198     return _filler_array_max_size;
 199   }
 200 
 201   virtual Name kind() const = 0;
 202 
 203   virtual const char* name() const = 0;
 204 
 205   /**
 206    * Returns JNI error code JNI_ENOMEM if memory could not be allocated,
 207    * and JNI_OK on success.
 208    */
 209   virtual jint initialize() = 0;
 210 
 211   // In many heaps, there will be a need to perform some initialization activities
 212   // after the Universe is fully formed, but before general heap allocation is allowed.
 213   // This is the correct place to place such initialization methods.
 214   virtual void post_initialize();


< prev index next >