src/share/vm/memory/allocation.cpp

changeset 6695
09619752c16d
parent 6680
78bbf4d43a14
child 6876
710a3c8b516e
child 7074
833b0f92429a
     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

mercurial