Questions about using `assert` in Java
Daohan Qu
quadhier at outlook.com
Mon Jul 17 13:40:53 UTC 2023
Hi John,
> I believe this can be partially alleviated by extracting the asserts to a
> method (partially as the call also increases method size). The optimizer
> seems to be smart enough to not call the method if it does nothing
> (when ea is disabled).
Thanks a lot! Good to know that. I'm not sure about this but I'd like to figure out it.
Regards,
Daohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230717/280d897b/attachment.htm>
More information about the core-libs-dev
mailing list