hotspot/src/share/vm/gc_interface/collectedHeap.cpp
changeset 1681 9df064a8f4ca
parent 1668 8ec481b8f514
child 2141 e9a644aaff87
child 2105 347008ce7984
equal deleted inserted replaced
1670:0deb85ea62d5 1681:9df064a8f4ca
   176   const size_t payload_size = words - filler_array_hdr_size();
   176   const size_t payload_size = words - filler_array_hdr_size();
   177   const size_t len = payload_size * HeapWordSize / sizeof(jint);
   177   const size_t len = payload_size * HeapWordSize / sizeof(jint);
   178 
   178 
   179   // Set the length first for concurrent GC.
   179   // Set the length first for concurrent GC.
   180   ((arrayOop)start)->set_length((int)len);
   180   ((arrayOop)start)->set_length((int)len);
   181   post_allocation_setup_common(Universe::fillerArrayKlassObj(), start,
   181   post_allocation_setup_common(Universe::intArrayKlassObj(), start, words);
   182                                words);
       
   183   DEBUG_ONLY(zap_filler_array(start, words);)
   182   DEBUG_ONLY(zap_filler_array(start, words);)
   184 }
   183 }
   185 
   184 
   186 void
   185 void
   187 CollectedHeap::fill_with_object_impl(HeapWord* start, size_t words)
   186 CollectedHeap::fill_with_object_impl(HeapWord* start, size_t words)