equal
deleted
inserted
replaced
377 while (size > compaction_max_size) { |
377 while (size > compaction_max_size) { |
378 // switch to next compaction space |
378 // switch to next compaction space |
379 cp->space->set_compaction_top(compact_top); |
379 cp->space->set_compaction_top(compact_top); |
380 cp->space = cp->space->next_compaction_space(); |
380 cp->space = cp->space->next_compaction_space(); |
381 if (cp->space == NULL) { |
381 if (cp->space == NULL) { |
382 cp->gen = GenCollectedHeap::heap()->prev_gen(cp->gen); |
382 cp->gen = GenCollectedHeap::heap()->young_gen(); |
383 assert(cp->gen != NULL, "compaction must succeed"); |
383 assert(cp->gen != NULL, "compaction must succeed"); |
384 cp->space = cp->gen->first_compaction_space(); |
384 cp->space = cp->gen->first_compaction_space(); |
385 assert(cp->space != NULL, "generation must have a first compaction space"); |
385 assert(cp->space != NULL, "generation must have a first compaction space"); |
386 } |
386 } |
387 compact_top = cp->space->bottom(); |
387 compact_top = cp->space->bottom(); |