< prev index next >

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

Print this page
rev 50392 : JEP 331


 166 
 167   // Clears an allocated object.
 168   inline static void init_obj(HeapWord* obj, size_t size);
 169 
 170   // Filler object utilities.
 171   static inline size_t filler_array_hdr_size();
 172   static inline size_t filler_array_min_size();
 173 
 174   DEBUG_ONLY(static void fill_args_check(HeapWord* start, size_t words);)
 175   DEBUG_ONLY(static void zap_filler_array(HeapWord* start, size_t words, bool zap = true);)
 176 
 177   // Fill with a single array; caller must ensure filler_array_min_size() <=
 178   // words <= filler_array_max_size().
 179   static inline void fill_with_array(HeapWord* start, size_t words, bool zap = true);
 180 
 181   // Fill with a single object (either an int array or a java.lang.Object).
 182   static inline void fill_with_object_impl(HeapWord* start, size_t words, bool zap = true);
 183 
 184   virtual void trace_heap(GCWhen::Type when, const GCTracer* tracer);
 185 












 186   // Verification functions
 187   virtual void check_for_bad_heap_word_value(HeapWord* addr, size_t size)
 188     PRODUCT_RETURN;
 189   virtual void check_for_non_bad_heap_word_value(HeapWord* addr, size_t size)
 190     PRODUCT_RETURN;
 191   debug_only(static void check_for_valid_allocation_state();)
 192 
 193  public:
 194   enum Name {
 195     None,
 196     Serial,
 197     Parallel,
 198     CMS,
 199     G1
 200   };
 201 
 202   static inline size_t filler_array_max_size() {
 203     return _filler_array_max_size;
 204   }
 205 




 166 
 167   // Clears an allocated object.
 168   inline static void init_obj(HeapWord* obj, size_t size);
 169 
 170   // Filler object utilities.
 171   static inline size_t filler_array_hdr_size();
 172   static inline size_t filler_array_min_size();
 173 
 174   DEBUG_ONLY(static void fill_args_check(HeapWord* start, size_t words);)
 175   DEBUG_ONLY(static void zap_filler_array(HeapWord* start, size_t words, bool zap = true);)
 176 
 177   // Fill with a single array; caller must ensure filler_array_min_size() <=
 178   // words <= filler_array_max_size().
 179   static inline void fill_with_array(HeapWord* start, size_t words, bool zap = true);
 180 
 181   // Fill with a single object (either an int array or a java.lang.Object).
 182   static inline void fill_with_object_impl(HeapWord* start, size_t words, bool zap = true);
 183 
 184   virtual void trace_heap(GCWhen::Type when, const GCTracer* tracer);
 185 
 186   // Internal allocation methods.
 187   inline static HeapWord* common_allocate_memory(Klass* klass, int size,
 188                                                  void (*post_setup)(Klass*, HeapWord*, int),
 189                                                  int size_for_post, bool init_memory,
 190                                                  TRAPS);
 191 
 192   // Internal allocation method for common obj/class/array allocations.
 193   inline static HeapWord* allocate_memory(Klass* klass, int size,
 194                                           void (*post_setup)(Klass*, HeapWord*, int),
 195                                           int size_for_post, bool init_memory,
 196                                           TRAPS);
 197 
 198   // Verification functions
 199   virtual void check_for_bad_heap_word_value(HeapWord* addr, size_t size)
 200     PRODUCT_RETURN;
 201   virtual void check_for_non_bad_heap_word_value(HeapWord* addr, size_t size)
 202     PRODUCT_RETURN;
 203   debug_only(static void check_for_valid_allocation_state();)
 204 
 205  public:
 206   enum Name {
 207     None,
 208     Serial,
 209     Parallel,
 210     CMS,
 211     G1
 212   };
 213 
 214   static inline size_t filler_array_max_size() {
 215     return _filler_array_max_size;
 216   }
 217 


< prev index next >