Fri, 18 Oct 2013 09:31:59 +0200
8026698: Incorrect error handling in Metaspace::allocate
Reviewed-by: stefank, jwilhelm
src/share/vm/memory/metaspace.cpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/vm/memory/metaspace.cpp Tue Oct 15 13:56:46 2013 +0200 1.2 +++ b/src/share/vm/memory/metaspace.cpp Fri Oct 18 09:31:59 2013 +0200 1.3 @@ -3345,9 +3345,7 @@ 1.4 } 1.5 1.6 if (result == NULL) { 1.7 - report_metadata_oome(loader_data, word_size, mdtype, THREAD); 1.8 - // Will not reach here. 1.9 - return NULL; 1.10 + report_metadata_oome(loader_data, word_size, mdtype, CHECK_NULL); 1.11 } 1.12 1.13 // Zero initialize.