1.1 --- a/src/share/vm/gc_implementation/g1/heapRegionManager.cpp Fri May 01 17:38:12 2015 -0400 1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegionManager.cpp Tue May 19 15:49:27 2015 +0200 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -145,6 +145,24 @@ 1.11 } 1.12 } 1.13 1.14 +MemoryUsage HeapRegionManager::get_auxiliary_data_memory_usage() const { 1.15 + size_t used_sz = 1.16 + _prev_bitmap_mapper->committed_size() + 1.17 + _next_bitmap_mapper->committed_size() + 1.18 + _bot_mapper->committed_size() + 1.19 + _cardtable_mapper->committed_size() + 1.20 + _card_counts_mapper->committed_size(); 1.21 + 1.22 + size_t committed_sz = 1.23 + _prev_bitmap_mapper->reserved_size() + 1.24 + _next_bitmap_mapper->reserved_size() + 1.25 + _bot_mapper->reserved_size() + 1.26 + _cardtable_mapper->reserved_size() + 1.27 + _card_counts_mapper->reserved_size(); 1.28 + 1.29 + return MemoryUsage(0, used_sz, committed_sz, committed_sz); 1.30 +} 1.31 + 1.32 uint HeapRegionManager::expand_by(uint num_regions) { 1.33 return expand_at(0, num_regions); 1.34 }