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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P3
    • None
    • 9
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: