RFR: 8285396: Do not fill in the stacktrace of an internal exception [v2]

Pavel Rappo prappo at openjdk.java.net
Thu Apr 21 23:28:16 UTC 2022


> Sometimes an exception is retrofitted into control flow to interrupt it in a way that it wasn't originally designed to be interrupted. Such an exception is an implementation detail. Once the exception is caught internally, it is discarded.
> 
> An exception has a stacktrace. Filling in a stacktrace is not free. Filling in a stacktrace that won't be used seems like a waste.

Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:

  Address feedback

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8347/files
  - new: https://git.openjdk.java.net/jdk/pull/8347/files/1c69f0aa..a42a6626

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8347&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8347&range=00-01

  Stats: 17 lines in 2 files changed: 1 ins; 16 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8347.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8347/head:pull/8347

PR: https://git.openjdk.java.net/jdk/pull/8347


More information about the compiler-dev mailing list