提交 5795920f 编写于 作者: P poonam

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
上级 f34bf427
......@@ -561,6 +561,7 @@ void* Arena::grow(size_t x, AllocFailType alloc_failmode) {
_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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册