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

2023-03-15 Thread Aliaksei Dubrouski
On Wed, 15 Mar 2023 18:08:20 GMT, Cesar Soares Lucas wrote: > I may be wrong here but my take on this is that there is nothing at the > language level that prevents the compiler from optimizing the code and moving > the allocation inside the "If". In fact, GRAAL might as well be doing this as

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

2023-03-15 Thread Aliaksei Dubrouski
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 p