There is a side effect like cpu temperature increase
If I put my leg on my desktop tower then I may feel enjoyably warm or if I put some chocolate on my laptop then it may start melting
Also fans will be louder
If I put my leg on my desktop tower then I may feel enjoyably warm or if I put some chocolate on my laptop then it may start melting
Also fans will be louder
Computers arent purely abstract, they exist in real world and are affected by it, so lets do not try to pretend otherwise
This goes not only for Java compiler, but many other languages as well.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=8537
>When optimizing code for "dead store removal" the optimizing compiler may remove code necessary for security.
You can say that about any code at all, so no optimising would ever be possible. The program running faster is a side effect after all.