Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/metaspace.cpp @ 12980: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 | b4aa8fc5d0d5 3aee6bc29547 |
comparison
equal
deleted
inserted
replaced
12979:1d1ea10fe09f | 12980:91a88c8450f4 |
---|---|
3343 loader_data, word_size, mdtype); | 3343 loader_data, word_size, mdtype); |
3344 } | 3344 } |
3345 } | 3345 } |
3346 | 3346 |
3347 if (result == NULL) { | 3347 if (result == NULL) { |
3348 report_metadata_oome(loader_data, word_size, mdtype, THREAD); | 3348 report_metadata_oome(loader_data, word_size, mdtype, CHECK_NULL); |
3349 // Will not reach here. | |
3350 return NULL; | |
3351 } | 3349 } |
3352 | 3350 |
3353 // Zero initialize. | 3351 // Zero initialize. |
3354 Copy::fill_to_aligned_words((HeapWord*)result, word_size, 0); | 3352 Copy::fill_to_aligned_words((HeapWord*)result, word_size, 0); |
3355 | 3353 |