--- a/test/hotspot/jtreg/gc/g1/TestEagerReclaimHumongousRegions.java Mon Jan 28 15:24:41 2019 +0000
+++ b/test/hotspot/jtreg/gc/g1/TestEagerReclaimHumongousRegions.java Mon Jan 28 15:53:56 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2019, 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
@@ -21,6 +21,8 @@
* questions.
*/
+package gc.g1;
+
/*
* @test TestEagerReclaimHumongousRegions
* @bug 8027959
@@ -31,6 +33,7 @@
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
+ * @run main gc.g1.TestEagerReclaimHumongousRegions
*/
import java.util.regex.Pattern;
@@ -41,7 +44,7 @@
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.Asserts;
-class ReclaimRegionFast {
+class TestEagerReclaimHumongousRegionsReclaimRegionFast {
public static final int M = 1024*1024;
public static LinkedList<Object> garbageList = new LinkedList<Object>();
@@ -84,7 +87,7 @@
"-Xmx128M",
"-Xmn16M",
"-Xlog:gc",
- ReclaimRegionFast.class.getName());
+ TestEagerReclaimHumongousRegionsReclaimRegionFast.class.getName());
Pattern p = Pattern.compile("Full GC");