StackFrame::getFileName and StackFrame::getLineNumber return Optional that incurs an extra object allocation. File name and line number are available in common cases.
We should measure the footprint and performance difference with the use of Optional and re-examine if StackFrame::getFileName and StackFrame::getLineNumber should return Optional or not.
We should measure the footprint and performance difference with the use of Optional and re-examine if StackFrame::getFileName and StackFrame::getLineNumber should return Optional or not.
- relates to
-
JDK-8153912 Reconsider StackFrame::getFileName and StackFrame::getLineNumber
- Resolved
-
JDK-8043814 JEP 259: Stack-Walking API
- Closed