147 |
147 |
148 vsn->retire(cm); |
148 vsn->retire(cm); |
149 } |
149 } |
150 |
150 |
151 VirtualSpaceList::VirtualSpaceList(size_t word_size) : |
151 VirtualSpaceList::VirtualSpaceList(size_t word_size) : |
152 _is_class(false), |
|
153 _virtual_space_list(NULL), |
152 _virtual_space_list(NULL), |
154 _current_virtual_space(NULL), |
153 _current_virtual_space(NULL), |
|
154 _is_class(false), |
155 _reserved_words(0), |
155 _reserved_words(0), |
156 _committed_words(0), |
156 _committed_words(0), |
157 _virtual_space_count(0) { |
157 _virtual_space_count(0) { |
158 MutexLockerEx cl(MetaspaceExpand_lock, |
158 MutexLockerEx cl(MetaspaceExpand_lock, |
159 Mutex::_no_safepoint_check_flag); |
159 Mutex::_no_safepoint_check_flag); |
160 create_new_virtual_space(word_size); |
160 create_new_virtual_space(word_size); |
161 } |
161 } |
162 |
162 |
163 VirtualSpaceList::VirtualSpaceList(ReservedSpace rs) : |
163 VirtualSpaceList::VirtualSpaceList(ReservedSpace rs) : |
164 _is_class(true), |
|
165 _virtual_space_list(NULL), |
164 _virtual_space_list(NULL), |
166 _current_virtual_space(NULL), |
165 _current_virtual_space(NULL), |
|
166 _is_class(true), |
167 _reserved_words(0), |
167 _reserved_words(0), |
168 _committed_words(0), |
168 _committed_words(0), |
169 _virtual_space_count(0) { |
169 _virtual_space_count(0) { |
170 MutexLockerEx cl(MetaspaceExpand_lock, |
170 MutexLockerEx cl(MetaspaceExpand_lock, |
171 Mutex::_no_safepoint_check_flag); |
171 Mutex::_no_safepoint_check_flag); |