equal
deleted
inserted
replaced
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. |
174 |
174 |
175 void PSOldGen::compact() { |
175 void PSOldGen::compact() { |
176 object_mark_sweep()->compact(ZapUnusedHeapArea); |
176 object_mark_sweep()->compact(ZapUnusedHeapArea); |
177 } |
177 } |
178 |
178 |
179 void PSOldGen::move_and_update(ParCompactionManager* cm) { |
|
180 PSParallelCompact::move_and_update(cm, PSParallelCompact::old_space_id); |
|
181 } |
|
182 |
|
183 size_t PSOldGen::contiguous_available() const { |
179 size_t PSOldGen::contiguous_available() const { |
184 return object_space()->free_in_bytes() + virtual_space()->uncommitted_size(); |
180 return object_space()->free_in_bytes() + virtual_space()->uncommitted_size(); |
185 } |
181 } |
186 |
182 |
187 // Allocation. We report all successful allocations to the size policy |
183 // Allocation. We report all successful allocations to the size policy |