equal
deleted
inserted
replaced
26 * @bug 8013120 |
26 * @bug 8013120 |
27 * @summary Release committed memory and make sure NMT handles it correctly |
27 * @summary Release committed memory and make sure NMT handles it correctly |
28 * @key nmt regression |
28 * @key nmt regression |
29 * @library /testlibrary /testlibrary/whitebox |
29 * @library /testlibrary /testlibrary/whitebox |
30 * @build ReleaseCommittedMemory |
30 * @build ReleaseCommittedMemory |
|
31 * @ignore |
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
32 * sun.hotspot.WhiteBox$WhiteBoxPermission |
33 * sun.hotspot.WhiteBox$WhiteBoxPermission |
33 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail ReleaseCommittedMemory |
34 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail ReleaseCommittedMemory |
34 */ |
35 */ |
35 |
36 |
43 long addr; |
44 long addr; |
44 |
45 |
45 addr = wb.NMTReserveMemory(reserveSize); |
46 addr = wb.NMTReserveMemory(reserveSize); |
46 wb.NMTCommitMemory(addr, 128*1024); |
47 wb.NMTCommitMemory(addr, 128*1024); |
47 wb.NMTReleaseMemory(addr, reserveSize); |
48 wb.NMTReleaseMemory(addr, reserveSize); |
48 wb.NMTWaitForDataMerge(); |
|
49 } |
49 } |
50 } |
50 } |
51 |
51 |