Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8143259

Examine performance impact on extra object allocation due to getFileName/getLineNumber

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      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.

        Issue Links

          Activity

          Hide
          bchristi Brent Christian added a comment -
          JDK-8153912 removed Optional from this API, so this issue is now moot. Closing.
          Show
          bchristi Brent Christian added a comment - JDK-8153912 removed Optional from this API, so this issue is now moot. Closing.

            People

            • Assignee:
              bchristi Brent Christian
              Reporter:
              mchung Mandy Chung
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: