hotspot/src/share/vm/memory/space.cpp
changeset 29684 a36d90acae41
parent 29681 e96b344b2c42
child 29701 f638fc81a3d0
equal deleted inserted replaced
29683:7675ca064fdc 29684:a36d90acae41
   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();