src/share/vm/gc_implementation/g1/heapRegionManager.cpp

changeset 7835
e5406a79ae90
parent 7131
d35872270666
child 7994
04ff2f6cd0eb
child 9327
f96fcd9e1e1b
equal deleted inserted replaced
7834:399885e13e90 7835:e5406a79ae90
1 /* 1 /*
2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
143 hr->initialize(mr); 143 hr->initialize(mr);
144 insert_into_free_list(at(i)); 144 insert_into_free_list(at(i));
145 } 145 }
146 } 146 }
147 147
148 MemoryUsage HeapRegionManager::get_auxiliary_data_memory_usage() const {
149 size_t used_sz =
150 _prev_bitmap_mapper->committed_size() +
151 _next_bitmap_mapper->committed_size() +
152 _bot_mapper->committed_size() +
153 _cardtable_mapper->committed_size() +
154 _card_counts_mapper->committed_size();
155
156 size_t committed_sz =
157 _prev_bitmap_mapper->reserved_size() +
158 _next_bitmap_mapper->reserved_size() +
159 _bot_mapper->reserved_size() +
160 _cardtable_mapper->reserved_size() +
161 _card_counts_mapper->reserved_size();
162
163 return MemoryUsage(0, used_sz, committed_sz, committed_sz);
164 }
165
148 uint HeapRegionManager::expand_by(uint num_regions) { 166 uint HeapRegionManager::expand_by(uint num_regions) {
149 return expand_at(0, num_regions); 167 return expand_at(0, num_regions);
150 } 168 }
151 169
152 uint HeapRegionManager::expand_at(uint start, uint num_regions) { 170 uint HeapRegionManager::expand_at(uint start, uint num_regions) {

mercurial