equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, 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. |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @summary Test reserve/commit/uncommit/release of virtual memory and that we track it correctly |
26 * @summary Test reserve/commit/uncommit/release of virtual memory and that we track it correctly |
27 * @key nmt jcmd |
27 * @key nmt jcmd |
28 * @library /testlibrary /test/lib |
28 * @library /test/lib |
29 * @modules java.base/jdk.internal.misc |
29 * @modules java.base/jdk.internal.misc |
30 * java.management |
30 * java.management |
31 * @build VirtualAllocCommitUncommitRecommit |
31 * @build sun.hotspot.WhiteBox |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
33 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail VirtualAllocCommitUncommitRecommit |
33 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail VirtualAllocCommitUncommitRecommit |
34 * |
34 * |
35 */ |
35 */ |
36 |
36 |
37 import jdk.test.lib.*; |
37 import jdk.test.lib.process.ProcessTools; |
|
38 import jdk.test.lib.process.OutputAnalyzer; |
|
39 import jdk.test.lib.JDKToolFinder; |
38 |
40 |
39 import sun.hotspot.WhiteBox; |
41 import sun.hotspot.WhiteBox; |
40 |
42 |
41 public class VirtualAllocCommitUncommitRecommit { |
43 public class VirtualAllocCommitUncommitRecommit { |
42 |
44 |