Wed, 28 May 2014 06:26:05 -0700
8043086: Hotspot is expected to report OOM which is occurred String.intern(), but crashes in JDK8u5
Summary: In case of allocation failure, restore the value of _chunk in Arena
Reviewed-by: dholmes, dcubed
src/share/vm/memory/allocation.cpp | file | annotate | diff | comparison | revisions |
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