1 /* |
1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2011, 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. |
104 // "num_regions_deleted" to the number of regions deleted. |
104 // "num_regions_deleted" to the number of regions deleted. |
105 MemRegion shrink_by(size_t shrink_bytes, size_t& num_regions_deleted); |
105 MemRegion shrink_by(size_t shrink_bytes, size_t& num_regions_deleted); |
106 |
106 |
107 // If "addr" falls within a region in the sequence, return that region, |
107 // If "addr" falls within a region in the sequence, return that region, |
108 // or else NULL. |
108 // or else NULL. |
109 HeapRegion* addr_to_region(const void* addr); |
109 inline HeapRegion* addr_to_region(const void* addr); |
110 |
110 |
111 void print(); |
111 void print(); |
112 |
112 |
113 // Prints out runs of empty regions. |
113 // Prints out runs of empty regions. |
114 void print_empty_runs(); |
114 void print_empty_runs(); |