comparison src/share/vm/memory/metaspace.hpp @ 13000:209aa13ab8c0

8024927: Nashorn performance regression with CompressedOops Summary: Allocate compressed class space at end of Java heap. For small heap sizes, without CDS, save some space so compressed classes can have the same favorable compression as oops Reviewed-by: stefank, hseigel, goetz
author coleenp
date Fri, 25 Oct 2013 15:19:29 -0400
parents a6177f601c64
children ce86c36b8921 15120a36272d
comparison
equal deleted inserted replaced
12999:634715d59d9e 13000:209aa13ab8c0
113 113
114 // Align up the word size to the allocation word size 114 // Align up the word size to the allocation word size
115 static size_t align_word_size_up(size_t); 115 static size_t align_word_size_up(size_t);
116 116
117 // Aligned size of the metaspace. 117 // Aligned size of the metaspace.
118 static size_t _class_metaspace_size; 118 static size_t _compressed_class_space_size;
119 119
120 static size_t class_metaspace_size() { 120 static size_t compressed_class_space_size() {
121 return _class_metaspace_size; 121 return _compressed_class_space_size;
122 } 122 }
123 static void set_class_metaspace_size(size_t metaspace_size) { 123 static void set_compressed_class_space_size(size_t size) {
124 _class_metaspace_size = metaspace_size; 124 _compressed_class_space_size = size;
125 } 125 }
126 126
127 static size_t _first_chunk_word_size; 127 static size_t _first_chunk_word_size;
128 static size_t _first_class_chunk_word_size; 128 static size_t _first_class_chunk_word_size;
129 129