comparison src/share/vm/gc_interface/collectedHeap.inline.hpp @ 3892:baf763f388e6

7059037: Use BIS for zeroing on T4 Summary: Use BIS for zeroing new allocated big (2Kb and more) objects and arrays. Reviewed-by: never, twisti, ysr
author kvn
date Fri, 26 Aug 2011 08:52:22 -0700
parents c9ca3f51cf41
children f08d439fab8c
comparison
equal deleted inserted replaced
3891:ac8738449b6f 3892:baf763f388e6
285 debug_only(check_for_valid_allocation_state()); 285 debug_only(check_for_valid_allocation_state());
286 assert(!Universe::heap()->is_gc_active(), "Allocation during gc not allowed"); 286 assert(!Universe::heap()->is_gc_active(), "Allocation during gc not allowed");
287 assert(size >= 0, "int won't convert to size_t"); 287 assert(size >= 0, "int won't convert to size_t");
288 HeapWord* obj = common_permanent_mem_allocate_init(size, CHECK_NULL); 288 HeapWord* obj = common_permanent_mem_allocate_init(size, CHECK_NULL);
289 post_allocation_setup_no_klass_install(klass, obj, size); 289 post_allocation_setup_no_klass_install(klass, obj, size);
290 NOT_PRODUCT(Universe::heap()->check_for_bad_heap_word_value(obj, size)); 290 #ifndef PRODUCT
291 const size_t hs = oopDesc::header_size();
292 Universe::heap()->check_for_bad_heap_word_value(obj+hs, size-hs);
293 #endif
291 return (oop)obj; 294 return (oop)obj;
292 } 295 }
293 296
294 oop CollectedHeap::permanent_array_allocate(KlassHandle klass, 297 oop CollectedHeap::permanent_array_allocate(KlassHandle klass,
295 int size, 298 int size,