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

Provide an optimized way to walk the stack with Class object only

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • None
    • core-libs
    • b15

    Description

      StackWalker::walk creates one StackFrame per frame and the current implementation allocates one StackFrameInfo and one MemberName objects per frame. Some frameworks like logging may only interest in the Class object but not the method name nor the BCI. For example, java.util.logging filters out its implementation classes to find the caller class to log in the LogRecrod. It's something similar to `StackWalker::getCallerClass` but allows a predicate to filter out the element. In this case, only the buffer to hold the classes on the stack is allocated.

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: