3198N/A * Copyright (c) 2002, 2012, 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 // Create and register the PSPromotionManager(s) for the worker threads. 0N/A // The VMThread gets its own PSPromotionManager, which is not available 0N/A // for work stealing. 1585N/A " --------masked------- arrays array",
1585N/A "thr push steal chunked chunks",
1585N/A "--- ---------- ---------- ---------- ----------" 0N/A // We set the old lab's start array. 0N/A // don't let the target stack size to be more than 1/4 of the entries 0N/A // let's choose 1.5x the chunk size 0N/A // We need to get an assert in here to make sure the labs are always flushed. 0N/A // Do not prefill the LAB's, save heap wastage! 0N/A // Drain overflow stack first, so other threads can steal from 0N/A // claimed stack while we work. 0N/A // If either promotion lab fills up, we can flush the 0N/A // lab but not refill it, so check first. 0N/A // Let PSScavenge know if we overflowed 0N/A // this is the final chunk for this array 0N/A // Attempt to CAS in the header. 0N/A // This tests if the header is still the same as when 0N/A // this started. If it is the same (i.e., no forwarding 0N/A // pointer has been installed), then this thread owns 0N/A // We won any races, we "own" this object. 0N/A // Save the mark if needed 0N/A // We lost, someone else "owns" this object 0N/A // No unallocation to worry about. 0N/A "promotion-failure",