changeset 21113:65e0eb464169

8026698: Incorrect error handling in Metaspace::allocate Reviewed-by: stefank, jwilhelm
author mgerdin
date Fri, 18 Oct 2013 09:31:59 +0200
parents eb9c887bac49
children ba1a3dc8dc16
files hotspot/src/share/vm/memory/metaspace.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/memory/metaspace.cpp	Tue Oct 15 13:56:46 2013 +0200
+++ b/hotspot/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.