8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test TestPLABResize 26 * @bug 8141278 8141141 27 * @summary Test for PLAB resizing 28 * @requires vm.gc=="G1" | vm.gc=="null" 29 * @requires vm.opt.FlightRecorder != true 30 * @library /testlibrary /test/lib / 31 * @modules java.base/jdk.internal.misc 32 * @modules java.management 33 * @build ClassFileInstaller 34 * sun.hotspot.WhiteBox 35 * gc.g1.plab.lib.LogParser 36 * gc.g1.plab.lib.MemoryConsumer 37 * gc.g1.plab.lib.PLABUtils 38 * gc.g1.plab.lib.AppPLABResize 39 * @run main ClassFileInstaller sun.hotspot.WhiteBox 40 * sun.hotspot.WhiteBox$WhiteBoxPermission 41 * @run main gc.g1.plab.TestPLABResize 42 */ 43 package gc.g1.plab; 44 45 import java.util.Arrays; 46 import java.util.List; 47 import java.util.stream.Collectors; 48 import java.io.PrintStream; 49 | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test TestPLABResize 26 * @bug 8141278 8141141 27 * @summary Test for PLAB resizing 28 * @requires vm.gc == "G1" | vm.gc == "null" 29 * @requires vm.flightRecorder != true 30 * @library /testlibrary /test/lib / 31 * @modules java.base/jdk.internal.misc 32 * @modules java.management 33 * @build ClassFileInstaller 34 * sun.hotspot.WhiteBox 35 * gc.g1.plab.lib.LogParser 36 * gc.g1.plab.lib.MemoryConsumer 37 * gc.g1.plab.lib.PLABUtils 38 * gc.g1.plab.lib.AppPLABResize 39 * @run main ClassFileInstaller sun.hotspot.WhiteBox 40 * sun.hotspot.WhiteBox$WhiteBoxPermission 41 * @run main gc.g1.plab.TestPLABResize 42 */ 43 package gc.g1.plab; 44 45 import java.util.Arrays; 46 import java.util.List; 47 import java.util.stream.Collectors; 48 import java.io.PrintStream; 49 |