hotspot/src/share/vm/memory/allocation.cpp
changeset 24827 82b56982e1af
parent 24457 0e20b36df5c4
child 25351 7c198a690050
--- a/hotspot/src/share/vm/memory/allocation.cpp	Tue May 27 21:58:23 2014 -0700
+++ b/hotspot/src/share/vm/memory/allocation.cpp	Wed May 28 06:26:05 2014 -0700
@@ -563,6 +563,7 @@
   _chunk = new (alloc_failmode, len) Chunk(len);
 
   if (_chunk == NULL) {
+    _chunk = k;                 // restore the previous value of _chunk
     return NULL;
   }
   if (k) k->set_next(_chunk);   // Append new chunk to end of linked list