< prev index next >
test/hotspot/jtreg/gc/class_unloading/TestG1ClassUnloadingHWM.java
Print this page
rev 50542 : imported patch 8204084-stefanj-review
rev 50543 : [mq]: 8204084-stefanj-review2
*** 1,7 ****
/*
! * Copyright (c) 2014, 2016, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2014, 2018, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 72,89 ****
public static void testWithoutG1ClassUnloading() throws Exception {
// -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC instead of a concurrent cycle.
OutputAnalyzer out = runWithoutG1ClassUnloading();
out.shouldMatch(".*Pause Full.*");
! out.shouldNotMatch(".*Pause Initial Mark.*");
}
public static void testWithG1ClassUnloading() throws Exception {
// -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle instead of a full GC.
OutputAnalyzer out = runWithG1ClassUnloading();
! out.shouldMatch(".*Pause Initial Mark.*");
out.shouldNotMatch(".*Pause Full.*");
}
public static void main(String args[]) throws Exception {
testWithG1ClassUnloading();
--- 72,89 ----
public static void testWithoutG1ClassUnloading() throws Exception {
// -XX:-ClassUnloadingWithConcurrentMark is used, so we expect a full GC instead of a concurrent cycle.
OutputAnalyzer out = runWithoutG1ClassUnloading();
out.shouldMatch(".*Pause Full.*");
! out.shouldNotMatch(".*Pause Young \\(Concurrent Start\\).*");
}
public static void testWithG1ClassUnloading() throws Exception {
// -XX:+ClassUnloadingWithConcurrentMark is used, so we expect a concurrent cycle instead of a full GC.
OutputAnalyzer out = runWithG1ClassUnloading();
! out.shouldMatch(".*Pause Young \\(Concurrent Start\\).*");
out.shouldNotMatch(".*Pause Full.*");
}
public static void main(String args[]) throws Exception {
testWithG1ClassUnloading();
< prev index next >