test/hotspot/jtreg/runtime/jni/terminatedThread/TestTerminatedThread.java
changeset 50957 3f51ddbe4843
parent 50956 429b0997c16d
child 52103 4acfd9b6c2f9
equal deleted inserted replaced
50956:429b0997c16d 50957:3f51ddbe4843
    22  */
    22  */
    23 import java.lang.management.*;
    23 import java.lang.management.*;
    24 
    24 
    25 /*
    25 /*
    26  * @test
    26  * @test
    27  * @bug     8205878
    27  * @bug     8205878 8206954
    28  * @requires os.family != "windows" & os.family != "solaris"
    28  * @requires os.family != "windows" & os.family != "solaris"
    29  * @summary Basic test of Thread and ThreadMXBean queries on a natively
    29  * @summary Basic test of Thread and ThreadMXBean queries on a natively
    30  *          attached thread that has failed to detach before terminating.
    30  *          attached thread that has failed to detach before terminating.
    31  * @comment The native code only supports POSIX so no windows testing; also
    31  * @comment The native code only supports POSIX so no windows testing; also
    32  *          we have to skip solaris as a terminating thread that fails to
    32  *          we have to skip solaris as a terminating thread that fails to
    33  *          detach will hit an infinite loop due to TLS destructor issues - see
    33  *          detach will hit an infinite loop due to TLS destructor issues - see
    34  *          comments in JDK-8156708
    34  *          comments in JDK-8156708
    35  * @run main/native TestTerminatedThread
    35  * @run main/othervm/native TestTerminatedThread
    36  */
    36  */
    37 
    37 
    38 public class TestTerminatedThread {
    38 public class TestTerminatedThread {
    39 
    39 
    40     static native Thread createTerminatedThread();
    40     static native Thread createTerminatedThread();