< prev index next >

test/gc/g1/TestG1TraceEagerReclaimHumongousObjects.java

Print this page




  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 TestG1TraceEagerReclaimHumongousObjects
  26  * @bug 8058801 8048179
  27  * @summary Ensure that the output for a G1TraceEagerReclaimHumongousObjects
  28  * includes the expected necessary messages.
  29  * @key gc
  30  * @library /testlibrary


  31  */
  32 
  33 import com.oracle.java.testlibrary.ProcessTools;
  34 import com.oracle.java.testlibrary.OutputAnalyzer;
  35 import java.util.LinkedList;
  36 
  37 public class TestG1TraceEagerReclaimHumongousObjects {
  38   public static void main(String[] args) throws Exception {
  39     testGCLogs();
  40     testHumongousObjectGCLogs();
  41   }
  42 
  43   private static void testGCLogs() throws Exception {
  44 
  45     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
  46                                                "-Xms128M",
  47                                                "-Xmx128M",
  48                                                "-Xmn16M",
  49                                                "-XX:G1HeapRegionSize=1M",
  50                                                "-XX:+PrintGC",




  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 TestG1TraceEagerReclaimHumongousObjects
  26  * @bug 8058801 8048179
  27  * @summary Ensure that the output for a G1TraceEagerReclaimHumongousObjects
  28  * includes the expected necessary messages.
  29  * @key gc
  30  * @library /testlibrary
  31  * @build com.oracle.java.testlibrary.*
  32  * @run main/othervm TestG1TraceEagerReclaimHumongousObjects
  33  */
  34 
  35 import com.oracle.java.testlibrary.ProcessTools;
  36 import com.oracle.java.testlibrary.OutputAnalyzer;
  37 import java.util.LinkedList;
  38 
  39 public class TestG1TraceEagerReclaimHumongousObjects {
  40   public static void main(String[] args) throws Exception {
  41     testGCLogs();
  42     testHumongousObjectGCLogs();
  43   }
  44 
  45   private static void testGCLogs() throws Exception {
  46 
  47     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
  48                                                "-Xms128M",
  49                                                "-Xmx128M",
  50                                                "-Xmn16M",
  51                                                "-XX:G1HeapRegionSize=1M",
  52                                                "-XX:+PrintGC",


< prev index next >