Enable Epsilon as experimental option epsilon-gc-branch
authorshade
Mon, 23 Apr 2018 12:53:43 +0200
branchepsilon-gc-branch
changeset 56473 63a5ea2cdd0d
parent 56472 02bd022fcea1
child 56489 016b77c3734a
Enable Epsilon as experimental option
src/hotspot/share/gc/shared/gc_globals.hpp
test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java
--- a/src/hotspot/share/gc/shared/gc_globals.hpp	Mon Apr 23 12:32:25 2018 +0200
+++ b/src/hotspot/share/gc/shared/gc_globals.hpp	Mon Apr 23 12:53:43 2018 +0200
@@ -129,7 +129,7 @@
   product(bool, UseParallelOldGC, false,                                    \
           "Use the Parallel Old garbage collector")                         \
                                                                             \
-  develop(bool, UseEpsilonGC, false,                                        \
+  experimental(bool, UseEpsilonGC, false,                                   \
           "Use the Epsilon (no-op) garbage collector")                      \
                                                                             \
   product(uint, ParallelGCThreads, 0,                                       \
--- a/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java	Mon Apr 23 12:32:25 2018 +0200
+++ b/test/hotspot/jtreg/gc/epsilon/TestEpsilonEnabled.java	Mon Apr 23 12:53:43 2018 +0200
@@ -35,8 +35,8 @@
     if (Platform.isDebugBuild() && !isEpsilonEnabled()) {
       throw new IllegalStateException("Debug builds should have Epsilon enabled");
     }
-    if (!Platform.isDebugBuild() && isEpsilonEnabled()) {
-      throw new IllegalStateException("Non-debug builds should have Epsilon disabled");
+    if (!Platform.isDebugBuild() && !isEpsilonEnabled()) {
+      throw new IllegalStateException("Non-debug builds should have Epsilon enabled");
     }
   }
 }