hotspot/src/share/vm/memory/genMarkSweep.cpp
changeset 27252 9703e3f1f92a
parent 27249 698a2dc8e83a
child 27904 d606512952cc
--- a/hotspot/src/share/vm/memory/genMarkSweep.cpp	Tue Oct 21 11:57:22 2014 +0200
+++ b/hotspot/src/share/vm/memory/genMarkSweep.cpp	Wed Oct 22 16:40:43 2014 +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->get_gen(gch->_n_gens-1), 0);
+  ScratchBlock* scratch = gch->gather_scratch(gch->_gens[gch->_n_gens-1], 0);
 
   // $$$ To cut a corner, we'll only use the first scratch block, and then
   // revert to malloc.