3 ms·
The compiler will see that your operation does nothing and simply not do it.
by pstrateman 7y ago
The compiler will see that your operation does nothing and simply not do it.
- java-man 7y agoWhat I mean was: do you know this to be the case for JVM 8 later? This is an interesting subject. Was there a study or a paper you can refer me to?
- pstrateman 7y agoJVM 8 isn't an implementation, it's a specification. Assuming you mean oracles implementation, it's likely that it is. https://www.sjoerdlangkemper.nl/2016/05/22/should-passwords-be-cleared-from-memory/ https://www.sjoerdlangkemper.nl/2016/05/22/should-passwords-... http://www.daemonology.net/blog/2014-09-04-how-to-zero-a-buffer.html http://www.daemonology.net/blog/2014-09-04-how-to-zero-a-buf... https://man.openbsd.org/explicit_bzero.3 https://man.openbsd.org/explicit_bzero.3
- java-man 7y agoThank you. I was hoping for a more definitive answer, may be a reference to an explicit test involving memory dump analysis.