3 ms·
Well there is an JVM optimization (OmitStackTraceInFastThrow, which is on by default) which optimizes "built in" exceptions that are thrown frequently enough to
by needusername 8y ago
Well there is an JVM optimization (OmitStackTraceInFastThrow, which is on by default) which optimizes "built in" exceptions that are thrown frequently enough to be cached and have to stack trace. So somebody at one point thought that was a worthwhile optimization and allocated engineering resources to it.
https://www.oracle.com/technetwork/java/javase/relnotes-139183.html https://www.oracle.com/technetwork/java/javase/relnotes-1391...