hotspot/test/runtime/NMT/ReleaseCommittedMemory.java
changeset 25960 729cd80956ae
parent 25958 8dc85547d6d6
parent 25948 9b33776f4f07
child 26149 dd15a4c3746b
equal deleted inserted replaced
25959:6c11a6272b60 25960:729cd80956ae
    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