Re: RFR: 8302017: Allocate BadPaddingException only if it will be thrown

2023-03-27 Thread Xue-Lei Andrew Fan
On Mon, 27 Mar 2023 08:44:31 GMT, Aleksey Shipilev wrote: > If the exception creation is the problem, maybe we should turn it stackless This is one direction of the update, I think. Alternatively, it may be doable by not using exception in the unpad() implementation any longer. -

Re: RFR: 8302017: Allocate BadPaddingException only if it will be thrown

2023-03-27 Thread Aleksey Shipilev
On Thu, 23 Feb 2023 18:15:35 GMT, Ahmed Muhsin 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