Lines Matching refs:words

388 void CollectedHeap::fill_args_check(HeapWord* start, size_t words)
390 assert(words >= min_fill_size(), "too small to fill");
391 assert(words % MinObjAlignment == 0, "unaligned size");
393 assert(Universe::heap()->is_in_reserved(start + words - 1), "not in heap");
396 void CollectedHeap::zap_filler_array(HeapWord* start, size_t words, bool zap)
400 words - filler_array_hdr_size(), 0XDEAFBABE);
406 CollectedHeap::fill_with_array(HeapWord* start, size_t words, bool zap)
408 assert(words >= filler_array_min_size(), "too small for an array");
409 assert(words <= filler_array_max_size(), "too big for a single object");
411 const size_t payload_size = words - filler_array_hdr_size();
413 assert((int)len >= 0, err_msg("size too large " SIZE_FORMAT " becomes %d", words, (int)len));
418 DEBUG_ONLY(zap_filler_array(start, words, zap);)
422 CollectedHeap::fill_with_object_impl(HeapWord* start, size_t words, bool zap)
424 assert(words <= filler_array_max_size(), "too big for a single object");
426 if (words >= filler_array_min_size()) {
427 fill_with_array(start, words, zap);
428 } else if (words > 0) {
429 assert(words == min_fill_size(), "unaligned size");
434 void CollectedHeap::fill_with_object(HeapWord* start, size_t words, bool zap)
436 DEBUG_ONLY(fill_args_check(start, words);)
438 fill_with_object_impl(start, words, zap);
441 void CollectedHeap::fill_with_objects(HeapWord* start, size_t words, bool zap)
443 DEBUG_ONLY(fill_args_check(start, words);)
452 while (words > max) {
453 const size_t cur = words - max >= min ? max : max - min;
456 words -= cur;
460 fill_with_object_impl(start, words, zap);