RFR: 8302017: Allocate BadPaddingException only if it will be thrown
Ahmed Muhsin
duke at openjdk.org
Thu Feb 23 21:55:06 UTC 2023
On Thu, 23 Feb 2023 18:15:35 GMT, Ahmed Muhsin <duke at openjdk.org> wrote:
> This change will move the instantiation of BadPaddingException into the branch of the if statement where it is thrown. This will decrease the overhead of calling `unpadV15` and `unpadOAEP`. Please see the associated work item for past discussions regarding this change.
>
> The build and tier1 tests pass locally on mac-aarch64.
There is one failure in the pre-submit tests which I believe is unrelated to this change:
`compiler/vectorization/runner/LoopRangeStrideTest.java`
TEST RESULT: Failed. Execution failed: `main' threw exception: compiler.lib.ir_framework.driver.irmatching.IRViolationException: There were one or multiple IR rule failures. Please check stderr for more information.
-------------
PR: https://git.openjdk.org/jdk/pull/12732
More information about the security-dev
mailing list