hotspot/test/compiler/rtm/locking/TestRTMSpinLoopCount.java
changeset 29678 dd2f3932c21e
parent 28190 5a6b07edeb21
child 30604 b8d532cb6420
equal deleted inserted replaced
29586:889895365eb9 29678:dd2f3932c21e
     1 /*
     1 /*
     2  * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2015, 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.
    26  * @test
    26  * @test
    27  * @bug 8031320
    27  * @bug 8031320
    28  * @summary Verify that RTMSpinLoopCount affects time spent
    28  * @summary Verify that RTMSpinLoopCount affects time spent
    29  *          between locking attempts.
    29  *          between locking attempts.
    30  * @library /testlibrary /../../test/lib /compiler/testlibrary
    30  * @library /testlibrary /../../test/lib /compiler/testlibrary
       
    31  * @modules java.base/sun.misc
       
    32  *          java.management
    31  * @build TestRTMSpinLoopCount
    33  * @build TestRTMSpinLoopCount
    32  * @run main ClassFileInstaller sun.hotspot.WhiteBox
    34  * @run main ClassFileInstaller sun.hotspot.WhiteBox
    33  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    35  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    34  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    36  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
    35  *                   -XX:+WhiteBoxAPI TestRTMSpinLoopCount
    37  *                   -XX:+WhiteBoxAPI TestRTMSpinLoopCount