JDK-8143259 : Examine performance impact on extra object allocation due to getFileName/getLineNumber
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2015-11-18
  • Updated: 2016-05-20
  • Resolved: 2016-05-20
Related Reports
Relates :  
Relates :  
Description
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.
Comments
JDK-8153912 removed Optional from this API, so this issue is now moot. Closing.
20-05-2016