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

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

    XMLWordPrintable

    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.

        Attachments

          Issue Links

            Activity

              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: