src/share/vm/memory/generation.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/memory/generation.cpp	Fri Oct 17 15:27:19 2014
--- new/src/share/vm/memory/generation.cpp	Fri Oct 17 15:27:19 2014

*** 159,171 **** --- 159,170 ---- return (DefNewGeneration*) this; } Generation* Generation::next_gen() const { GenCollectedHeap* gch = GenCollectedHeap::heap(); ! int next = level() + 1; if (next < gch->_n_gens) { return gch->get_gen(next); ! if (level() == 0) { + return gch->old_gen(); } else { return NULL; } }

src/share/vm/memory/generation.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File