@@ -1831,44 +1831,6 @@ boolean alive() {
1831
1831
return eetop != NO_REF ;
1832
1832
}
1833
1833
1834
- /**
1835
- * Throws {@code UnsupportedOperationException}.
1836
- *
1837
- * @throws UnsupportedOperationException always
1838
- *
1839
- * @deprecated This method was originally specified to suspend a thread.
1840
- * It was inherently deadlock-prone. If the target thread held a lock on
1841
- * a monitor protecting a critical system resource when it was suspended,
1842
- * no thread could access the resource until the target thread was resumed.
1843
- * If the thread intending to resume the target thread attempted to lock
1844
- * the monitor prior to calling {@code resume}, deadlock would result.
1845
- * Such deadlocks typically manifested themselves as "frozen" processes.
1846
- * For more information, see
1847
- * <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
1848
- * are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
1849
- */
1850
- @ Deprecated (since ="1.2" , forRemoval =true )
1851
- public final void suspend () {
1852
- throw new UnsupportedOperationException ();
1853
- }
1854
-
1855
- /**
1856
- * Throws {@code UnsupportedOperationException}.
1857
- *
1858
- * @throws UnsupportedOperationException always
1859
- *
1860
- * @deprecated This method was originally specified to resume a thread
1861
- * suspended with {@link #suspend()}. Suspending a thread was
1862
- * inherently deadlock-prone.
1863
- * For more information, see
1864
- * <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
1865
- * are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
1866
- */
1867
- @ Deprecated (since ="1.2" , forRemoval =true )
1868
- public final void resume () {
1869
- throw new UnsupportedOperationException ();
1870
- }
1871
-
1872
1834
/**
1873
1835
* Changes the priority of this thread.
1874
1836
*
0 commit comments