< prev index next >

src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java

Print this page
rev 13118 : [mq]: backout-stackw

*** 101,110 **** --- 101,120 ---- * the slot is not valid to register. */ void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook); /** + * Returns the number of stack frames represented by the given throwable. + */ + int getStackTraceDepth(Throwable t); + + /** + * Returns the ith StackTraceElement for the given throwable. + */ + StackTraceElement getStackTraceElement(Throwable t, int i); + + /** * Returns a new string backed by the provided character array. The * character array is not copied and must never be modified after the * String is created, in order to fulfill String's contract. * * @param chars the character array to back the string
< prev index next >