--- old/src/share/vm/memory/genMarkSweep.cpp 2014-08-20 20:17:05.000000000 +0200 +++ new/src/share/vm/memory/genMarkSweep.cpp 2014-08-20 20:17:05.000000000 +0200 @@ -160,7 +160,7 @@ GenCollectedHeap* gch = GenCollectedHeap::heap(); // Scratch request on behalf of oldest generation; will do no // allocation. - ScratchBlock* scratch = gch->gather_scratch(gch->_gens[gch->_n_gens-1], 0); + ScratchBlock* scratch = gch->gather_scratch(gch->get_gen(gch->_n_gens-1), 0); // $$$ To cut a corner, we'll only use the first scratch block, and then // revert to malloc.