An even faster way than StackWalker API for asynchronously processing the stack frames

Follow @ionutbalosin Context StackWalker API has been introduced in JDK 9 as part of JEP 259. It targets a flexible mechanism to traverse and materialize the required stack frames allowing efficient lazy access to additional stack frames when required. Before this API (i.e. until JDK 9), there were a fewContinue reading… An even faster way than StackWalker API for asynchronously processing the stack frames

Getting the stack trace versus throwing an Exception. What is common and what is different

Follow @ionutbalosin Motivation At the first glance these two things (e.g. getting the stack traces and throwing an exception) might seem very unrelated, however, they are quite similar up to a certain extent in the way they behave under the hood. Current article aims to reveal such similarities and differences.Continue reading… Getting the stack trace versus throwing an Exception. What is common and what is different