mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8309196: Remove Thread.countStackFrames
Reviewed-by: rriggs, mchung, dholmes, jpai, iris
This commit is contained in:
parent
bb966827ac
commit
b2a5271e74
2 changed files with 3 additions and 20 deletions
|
@ -2011,22 +2011,6 @@ public class Thread implements Runnable {
|
|||
return currentThread().getThreadGroup().enumerate(tarray);
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws {@code UnsupportedOperationException}.
|
||||
*
|
||||
* @return nothing
|
||||
*
|
||||
* @deprecated This method was originally designed to count the number of
|
||||
* stack frames but the results were never well-defined and it
|
||||
* depended on thread-suspension.
|
||||
* This method is subject to removal in a future version of Java SE.
|
||||
* @see StackWalker
|
||||
*/
|
||||
@Deprecated(since="1.2", forRemoval=true)
|
||||
public int countStackFrames() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits at most {@code millis} milliseconds for this thread to terminate.
|
||||
* A timeout of {@code 0} means to wait forever.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue