1.1 --- a/src/share/vm/memory/allocation.cpp Tue May 20 10:24:30 2014 +0200 1.2 +++ b/src/share/vm/memory/allocation.cpp Wed May 28 06:26:05 2014 -0700 1.3 @@ -561,6 +561,7 @@ 1.4 _chunk = new (alloc_failmode, len) Chunk(len); 1.5 1.6 if (_chunk == NULL) { 1.7 + _chunk = k; // restore the previous value of _chunk 1.8 return NULL; 1.9 } 1.10 if (k) k->set_next(_chunk); // Append new chunk to end of linked list