mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-09 12:05:14 +00:00
8173421: Obsolete and expired flags for JDK 10 need to be removed and related tests updated
Reviewed-by: mchung
This commit is contained in:
parent
0d7b68ec23
commit
3c01d5813d
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -62,7 +62,7 @@ public class CheckOrigin {
|
||||
ProcessBuilder pb = ProcessTools.
|
||||
createJavaProcessBuilder(
|
||||
"--add-exports", "jdk.attach/sun.tools.attach=ALL-UNNAMED",
|
||||
"-XX:+UseConcMarkSweepGC", // this will cause UseParNewGC to be FLAG_SET_ERGO
|
||||
"-XX:+UseConcMarkSweepGC", // this will cause MaxNewSize to be FLAG_SET_ERGO
|
||||
"-XX:+UseCodeAging",
|
||||
"-XX:+UseCerealGC", // Should be ignored.
|
||||
"-XX:Flags=" + flagsFile.getAbsolutePath(),
|
||||
@ -109,7 +109,7 @@ public class CheckOrigin {
|
||||
// Set through j.l.m
|
||||
checkOrigin("HeapDumpOnOutOfMemoryError", Origin.MANAGEMENT);
|
||||
// Should be set by the VM, when we set UseConcMarkSweepGC
|
||||
checkOrigin("UseParNewGC", Origin.ERGONOMIC);
|
||||
checkOrigin("MaxNewSize", Origin.ERGONOMIC);
|
||||
// Set using attach
|
||||
checkOrigin("HeapDumpPath", Origin.ATTACH_ON_DEMAND);
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -36,7 +36,6 @@
|
||||
* @run main/timeout=600 LowMemoryTest
|
||||
* @requires vm.gc == "null"
|
||||
* @requires vm.opt.ExplicitGCInvokesConcurrent != "true"
|
||||
* @requires vm.opt.ExplicitGCInvokesConcurrentAndUnloadsClasses != "true"
|
||||
* @requires vm.opt.DisableExplicitGC != "true"
|
||||
*/
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@ -53,12 +53,12 @@ go() {
|
||||
# Run test with each GC configuration
|
||||
#
|
||||
# Notes: To ensure that metaspace fills up we disable class unloading.
|
||||
# Also we set the max metaspace to 8MB - otherwise the test takes too
|
||||
# Also we set the max metaspace to 16MB - otherwise the test takes too
|
||||
# long to run.
|
||||
|
||||
go -noclassgc -XX:MaxMetaspaceSize=16m -XX:+UseSerialGC LowMemoryTest2
|
||||
go -noclassgc -XX:MaxMetaspaceSize=16m -XX:+UseParallelGC LowMemoryTest2
|
||||
go -noclassgc -XX:MaxMetaspaceSize=16m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC LowMemoryTest2
|
||||
go -noclassgc -XX:MaxMetaspaceSize=16m -XX:+UseConcMarkSweepGC LowMemoryTest2
|
||||
|
||||
# Test class metaspace - might hit MaxMetaspaceSize instead if
|
||||
# UseCompressedClassPointers is off or if 32 bit.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -37,7 +37,6 @@
|
||||
* @build jdk.testlibrary.* ResetPeakMemoryUsage MemoryUtil RunUtil
|
||||
* @run main ResetPeakMemoryUsage
|
||||
* @requires vm.opt.ExplicitGCInvokesConcurrent != "true"
|
||||
* @requires vm.opt.ExplicitGCInvokesConcurrentAndUnloadsClasses != "true"
|
||||
* @requires vm.opt.DisableExplicitGC != "true"
|
||||
*/
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user