It's a phrase I've been hearing a lot recently as I've been trying to improve performance of my application.
See here and here for examples of what I mean.
Usually the way it's mentioned is something like this: "It's slow because it involves a stack walk
"
What does a stack walk
mean/ what does it mean to walk the stack
?
StackWalker API allows easy filtering and lazy access to execute tasks within any method. It is an efficient API for obtaining stack trace information in Java 9. There are three new important classes in StackWalker API: StackWalker, StackWalker.
A stack walker. The walk method opens a sequential stream of StackFrame s for the current thread and then applies the given function to walk the StackFrame stream.
Java 9 has added StackWalker class to provide a standard API for accessing the current thread stack.
The process of Accessing ,Traversal and Filtering of a stack trace can be referred as stack walking. Or in other words we can say that processing a stack trace in any form can be referred as stack walking.A stack trace also called stack backtrace or stack traceback is a report of the active stack frames at a certain point in time during the execution of a program.
Refer to Wikipedia and OpenJDK Documentaion for further details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With