changeset 5570:91a88c8450f4

8026698: Incorrect error handling in Metaspace::allocate Reviewed-by: stefank, jwilhelm
author mgerdin
date Fri, 18 Oct 2013 09:31:59 +0200
parents 1d1ea10fe09f
children 3dd24766da44
files src/share/vm/memory/metaspace.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.cpp	Tue Oct 15 13:56:46 2013 +0200
+++ b/src/share/vm/memory/metaspace.cpp	Fri Oct 18 09:31:59 2013 +0200
@@ -3345,9 +3345,7 @@
   }
 
   if (result == NULL) {
-    report_metadata_oome(loader_data, word_size, mdtype, THREAD);
-    // Will not reach here.
-    return NULL;
+    report_metadata_oome(loader_data, word_size, mdtype, CHECK_NULL);
   }
 
   // Zero initialize.