< prev index next >

src/share/vm/gc/shared/space.cpp

Print this page

        

*** 409,434 **** cp->threshold = cp->space->cross_threshold(compact_top - size, compact_top); return compact_top; } - - bool CompactibleSpace::insert_deadspace(size_t& allowed_deadspace_words, - HeapWord* q, size_t deadlength) { - if (allowed_deadspace_words >= deadlength) { - allowed_deadspace_words -= deadlength; - CollectedHeap::fill_with_object(q, deadlength); - oop(q)->set_mark(oop(q)->mark()->set_marked()); - assert((int) deadlength == oop(q)->size(), "bad filler object size"); - // Recall that we required "q == compaction_top". - return true; - } else { - allowed_deadspace_words = 0; - return false; - } - } - void ContiguousSpace::prepare_for_compaction(CompactPoint* cp) { scan_and_forward(this, cp); } void CompactibleSpace::adjust_pointers() { --- 409,418 ----
< prev index next >