After a fair amount of investigation, it looks like JDK-8141239 should wait for a later time. However, the work yielded some footprint and code reduction changes we'd like to put into JDK 9:
* Refactor to streamline StackStreamFactory (no longer have separate classes[] and StackFrame arrays) and StackFrameInfo (use a StackTraceElement for storage, remove redundant methodName/fileName/lineNumber fields);
* Remove flags left in to ease benchmarking (-XX:+MemberNameInStackFrame, stackwalk.newThrowable), plus and related code
* Remove unneeded (for now) StackStreamFactory.StackTrace class and related code
* Refactor to streamline StackStreamFactory (no longer have separate classes[] and StackFrame arrays) and StackFrameInfo (use a StackTraceElement for storage, remove redundant methodName/fileName/lineNumber fields);
* Remove flags left in to ease benchmarking (-XX:+MemberNameInStackFrame, stackwalk.newThrowable), plus and related code
* Remove unneeded (for now) StackStreamFactory.StackTrace class and related code
- relates to
-
JDK-8154104 Add test of StackFrameInfo.toStackTraceElement() in a named module
- Open
-
JDK-8141239 Throwable should use StackWalker API to capture the backtrace
- Open
-
JDK-8043814 JEP 259: Stack-Walking API
- Closed