mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8026698: Incorrect error handling in Metaspace::allocate
Reviewed-by: stefank, jwilhelm
This commit is contained in:
parent
444a15a09f
commit
376094224f
1 changed files with 1 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue