Mercurial > hg > graal-jvmci-8
comparison test/gc/g1/TestShrinkToOneRegion.java @ 22981:f967da7f0c3c
8062537: [TESTBUG] Conflicting GC combinations in hotspot tests
Reviewed-by: tschatzl, jwilhelm
author | jwilhelm |
---|---|
date | Thu, 23 Apr 2015 15:59:48 +0200 |
parents | b0d20fa374b4 |
children |
comparison
equal
deleted
inserted
replaced
22980:974d7f3df726 | 22981:f967da7f0c3c |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
22 */ | 22 */ |
23 | 23 |
24 /* | 24 /* |
25 * @test TestShrinkToOneRegion.java | 25 * @test TestShrinkToOneRegion.java |
26 * @bug 8013872 | 26 * @bug 8013872 |
27 * @requires vm.gc=="G1" | vm.gc=="null" | |
27 * @summary Shrinking the heap down to one region used to hit an assert | 28 * @summary Shrinking the heap down to one region used to hit an assert |
28 * @run main/othervm -XX:+UseG1GC -XX:G1HeapRegionSize=32m -Xmx256m TestShrinkToOneRegion | 29 * @run main/othervm -XX:+UseG1GC -XX:G1HeapRegionSize=32m -Xmx256m TestShrinkToOneRegion |
29 * | 30 * |
30 * Doing a System.gc() without having allocated many objects will shrink the heap. | 31 * Doing a System.gc() without having allocated many objects will shrink the heap. |
31 * With a large region size we will shrink the heap to one region. | 32 * With a large region size we will shrink the heap to one region. |