8026698: Incorrect error handling in Metaspace::allocate
Reviewed-by: stefank, jwilhelm
This commit is contained in:
parent
444a15a09f
commit
376094224f
@ -3345,9 +3345,7 @@ MetaWord* Metaspace::allocate(ClassLoaderData* loader_data, size_t word_size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result == NULL) {
|
if (result == NULL) {
|
||||||
report_metadata_oome(loader_data, word_size, mdtype, THREAD);
|
report_metadata_oome(loader_data, word_size, mdtype, CHECK_NULL);
|
||||||
// Will not reach here.
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Zero initialize.
|
// Zero initialize.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user