84 intptr_t cur_top = (intptr_t)s->top(); |
84 intptr_t cur_top = (intptr_t)s->top(); |
85 size_t words_left_to_fill = pointer_delta(s->end(), s->top());; |
85 size_t words_left_to_fill = pointer_delta(s->end(), s->top());; |
86 while (words_left_to_fill > 0) { |
86 while (words_left_to_fill > 0) { |
87 size_t words_to_fill = MIN2(words_left_to_fill, CollectedHeap::filler_array_max_size()); |
87 size_t words_to_fill = MIN2(words_left_to_fill, CollectedHeap::filler_array_max_size()); |
88 assert(words_to_fill >= CollectedHeap::min_fill_size(), |
88 assert(words_to_fill >= CollectedHeap::min_fill_size(), |
89 err_msg("Remaining size ("SIZE_FORMAT ") is too small to fill (based on " SIZE_FORMAT " and " SIZE_FORMAT ")", |
89 err_msg("Remaining size (" SIZE_FORMAT ") is too small to fill (based on " SIZE_FORMAT " and " SIZE_FORMAT ")", |
90 words_to_fill, words_left_to_fill, CollectedHeap::filler_array_max_size())); |
90 words_to_fill, words_left_to_fill, CollectedHeap::filler_array_max_size())); |
91 CollectedHeap::fill_with_object((HeapWord*)cur_top, words_to_fill); |
91 CollectedHeap::fill_with_object((HeapWord*)cur_top, words_to_fill); |
92 if (!os::numa_has_static_binding()) { |
92 if (!os::numa_has_static_binding()) { |
93 size_t touched_words = words_to_fill; |
93 size_t touched_words = words_to_fill; |
94 #ifndef ASSERT |
94 #ifndef ASSERT |