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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: