1879N/A * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A// If boundary moving is being used, create the young gen and old 0N/A// gen with ASPSYoungGen and ASPSOldGen, respectively. Revert to 0N/A// the old behavior otherwise (with PSYoungGen and PSOldGen). 0N/A // Create the generations differently based on the option to 0N/A // move the boundary. 0N/A // Initialize the adjoining virtual spaces. Then pass the 0N/A // a virtual to each generation for initialization of the 0N/A // Does the actual creation of the virtual spaces 0N/A // Place the young gen at the high end. Passes in the virtual space. 0N/A // Place the old gen at the low end. Passes in the virtual space. 0N/A "Consistency check");
0N/A "Consistency check");
0N/A "Consistency check");
0N/A "Consistency check");
0N/A // Layout the reserved space for the generations. 0N/A // Create the generations. Virtual spaces are not passed in. 0N/A // The virtual spaces are created by the initialization of the gens. 0N/A "Consistency check");
0N/A// Make checks on the current sizes of the generations and 0N/A// the contraints on the sizes of the generations. Push 0N/A// up the boundary within the contraints. A partial 0N/A // These sizes limit the amount the boundaries can move. Effectively, 0N/A // the generation says how much it is willing to yield to the other 0N/A // Move the boundary between the generations up (smaller young gen). 0N/A // The total reserved for the generations should match the sum 0N/A // of the two even if the boundary is moving. 0N/A "Space is missing");
0N/A// See comments on request_old_gen_expansion() 0N/A // If eden is not empty, the boundary can be moved but no advantage 0N/A // can be made of the move since eden cannot be moved. 0N/A // Move the boundary between the generations down (smaller old gen). 0N/A // The total reserved for the generations should match the sum 0N/A // of the two even if the boundary is moving. 0N/A "Space is missing");
0N/A// Additional space is needed in the old generation. Try to move the boundary 0N/A// up to meet the need. Moves boundary up only 0N/A // Expand only if the entire generation is already committed. 0N/A// See comment on adjust_boundary_for_old_gen_needss(). 0N/A// Adjust boundary down only. 0N/A // Expand only if the entire generation is already committed.