changeset 60492:51d5e16a6a74

8241007: Shenandoah: remove ShenandoahCriticalControlThreadPriority support Reviewed-by: adityam, shade Contributed-by: Nikola Grcevski <nikola.grcevski@microsoft.com>
author shade
date Mon, 10 Aug 2020 08:36:56 +0200
parents 9805023507c0
children 1cc99981b797
files src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp test/hotspot/jtreg/gc/shenandoah/options/TestCriticalControlThreadPriority.java
diffstat 3 files changed, 1 insertions(+), 45 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp	Mon Aug 10 08:21:14 2020 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp	Mon Aug 10 08:36:56 2020 +0200
@@ -50,7 +50,7 @@
   _allocs_seen(0) {
 
   reset_gc_id();
-  create_and_start(ShenandoahCriticalControlThreadPriority ? CriticalPriority : NearMaxPriority);
+  create_and_start();
   _periodic_task.enroll();
   _periodic_satb_flush_task.enroll();
   if (ShenandoahPacing) {
--- a/src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp	Mon Aug 10 08:21:14 2020 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp	Mon Aug 10 08:36:56 2020 +0200
@@ -191,9 +191,6 @@
           "adjustment. Lower values make adjustments faster, at the "       \
           "expense of higher perf overhead. Time is in milliseconds.")      \
                                                                             \
-  experimental(bool, ShenandoahCriticalControlThreadPriority, false,        \
-          "Run control thread runs at critical scheduling priority.")       \
-                                                                            \
   diagnostic(bool, ShenandoahVerify, false,                                 \
           "Enable internal verification. This would catch many GC bugs, "   \
           "but it would also stall the collector during the verification, " \
--- a/test/hotspot/jtreg/gc/shenandoah/options/TestCriticalControlThreadPriority.java	Mon Aug 10 08:21:14 2020 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2019, Red Hat, Inc. 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
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- *
- */
-
-/*
- * @test TestCriticalControlThreadPriority
- * @summary Check that ShenandoahCriticalControlThreadPriority works
- * @bug 8217343
- * @requires vm.gc.Shenandoah
- *
- * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:-ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority
- * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+ShenandoahCriticalControlThreadPriority -Xmx1g TestCriticalControlThreadPriority
- */
-
-public class TestCriticalControlThreadPriority {
-
-    public static void main(String[] args) throws Exception {
-        // checking the initialization before entering main()
-    }
-
-}