RFR: 8302017: Allocate BadPaddingException only if it will be thrown
Aliaksei Dubrouski
duke at openjdk.org
Wed Mar 15 19:07:28 UTC 2023
On Wed, 15 Mar 2023 18:08:20 GMT, Cesar Soares Lucas <cslucas at openjdk.org> 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 part of Partial Escape Analysis.
Escape analysis does not work for conditionals. Microsoft JVM team is currently working on this feature, but it is still experimental.
-------------
PR: https://git.openjdk.org/jdk/pull/12732
More information about the security-dev
mailing list