Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/metaspace.cpp @ 12237:335b388c4b28
8024651: Remove the incorrect usage of Metablock::overhead()
Reviewed-by: brutisso, mgerdin, coleenp, jmasa
author | stefank |
---|---|
date | Fri, 13 Sep 2013 22:21:06 +0200 |
parents | c4c768305a8f |
children | 8227700da288 |
comparison
equal
deleted
inserted
replaced
12236:c4c768305a8f | 12237:335b388c4b28 |
---|---|
735 // If only the dictionary is going to be used (i.e., no | 735 // If only the dictionary is going to be used (i.e., no |
736 // indexed free list), then there is a minimum size requirement. | 736 // indexed free list), then there is a minimum size requirement. |
737 // MinChunkSize is a placeholder for the real minimum size JJJ | 737 // MinChunkSize is a placeholder for the real minimum size JJJ |
738 size_t byte_size = word_size * BytesPerWord; | 738 size_t byte_size = word_size * BytesPerWord; |
739 | 739 |
740 size_t byte_size_with_overhead = byte_size + Metablock::overhead(); | 740 size_t raw_bytes_size = MAX2(byte_size, |
741 | |
742 size_t raw_bytes_size = MAX2(byte_size_with_overhead, | |
743 Metablock::min_block_byte_size()); | 741 Metablock::min_block_byte_size()); |
744 raw_bytes_size = ARENA_ALIGN(raw_bytes_size); | 742 raw_bytes_size = ARENA_ALIGN(raw_bytes_size); |
745 size_t raw_word_size = raw_bytes_size / BytesPerWord; | 743 size_t raw_word_size = raw_bytes_size / BytesPerWord; |
746 assert(raw_word_size * BytesPerWord == raw_bytes_size, "Size problem"); | 744 assert(raw_word_size * BytesPerWord == raw_bytes_size, "Size problem"); |
747 | 745 |