RFR: 8355636: Speed up Throwable::printStackTrace by reducing object allocation [v3]
Hannes Greule
hgreule at openjdk.org
Sat Apr 26 07:48:45 UTC 2025
On Sat, 26 Apr 2025 07:28:03 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> The goal of the optimization is also very clear, which is to make the program perform better when a large number of exceptions are thrown when an error occurs. This is a very typical scenario.
But that's not what's happening here. While *throwing* exceptions **can** be performance-sensitive, *printing* exceptions is far less important. I'm not convinced that printing exceptions is a very typical scenario.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24864#issuecomment-2831938869
More information about the core-libs-dev
mailing list