8026698: Incorrect error handling in Metaspace::allocate

Reviewed-by: stefank, jwilhelm
This commit is contained in:
Mikael Gerdin 2013-10-18 09:31:59 +02:00
parent 444a15a09f
commit 376094224f

View File

@ -3345,9 +3345,7 @@ MetaWord* Metaspace::allocate(ClassLoaderData* loader_data, size_t word_size,
}
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.