Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.cpp Thu Sep 12 10:15:54 2013 +0200 +++ b/src/share/vm/memory/metaspace.cpp Fri Sep 13 22:21:06 2013 +0200 @@ -737,9 +737,7 @@ // MinChunkSize is a placeholder for the real minimum size JJJ size_t byte_size = word_size * BytesPerWord; - size_t byte_size_with_overhead = byte_size + Metablock::overhead(); - - size_t raw_bytes_size = MAX2(byte_size_with_overhead, + size_t raw_bytes_size = MAX2(byte_size, Metablock::min_block_byte_size()); raw_bytes_size = ARENA_ALIGN(raw_bytes_size); size_t raw_word_size = raw_bytes_size / BytesPerWord;