< prev index next >

test/hotspot/jtreg/gc/stress/TestReclaimStringsLeaksMemory.java

Print this page
rev 59879 : [mq]: 8249000


  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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 package gc.stress;
  25 
  26 /*
  27  * @test TestReclaimStringsLeaksMemory
  28  * @bug 8180048
  29  * @summary Ensure that during a Full GC interned string memory is reclaimed completely.
  30  * @requires vm.gc=="null" & !vm.graal.enabled & !vm.debug

  31  * @library /test/lib
  32  * @modules java.base/jdk.internal.misc
  33  * @run driver gc.stress.TestReclaimStringsLeaksMemory
  34  * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
  35  * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
  36  * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
  37  */
  38 
  39 import java.util.Arrays;
  40 import java.util.ArrayList;
  41 import java.util.regex.Pattern;
  42 import java.util.regex.Matcher;
  43 
  44 import jdk.test.lib.Asserts;
  45 import jdk.test.lib.process.OutputAnalyzer;
  46 import jdk.test.lib.process.ProcessTools;
  47 
  48 public class TestReclaimStringsLeaksMemory {
  49 
  50     // The amount of memory in kB reserved in the "Symbol" category that indicates a memory leak for




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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 package gc.stress;
  25 
  26 /*
  27  * @test TestReclaimStringsLeaksMemory
  28  * @bug 8180048
  29  * @summary Ensure that during a Full GC interned string memory is reclaimed completely.
  30  * @requires vm.gc == "null"
  31  * @requires !vm.debug
  32  * @library /test/lib
  33  * @modules java.base/jdk.internal.misc
  34  * @run driver gc.stress.TestReclaimStringsLeaksMemory
  35  * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseSerialGC
  36  * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseParallelGC
  37  * @run driver gc.stress.TestReclaimStringsLeaksMemory -XX:+UseG1GC
  38  */
  39 
  40 import java.util.Arrays;
  41 import java.util.ArrayList;
  42 import java.util.regex.Pattern;
  43 import java.util.regex.Matcher;
  44 
  45 import jdk.test.lib.Asserts;
  46 import jdk.test.lib.process.OutputAnalyzer;
  47 import jdk.test.lib.process.ProcessTools;
  48 
  49 public class TestReclaimStringsLeaksMemory {
  50 
  51     // The amount of memory in kB reserved in the "Symbol" category that indicates a memory leak for


< prev index next >