4 ms·
Would you elaborate please?
by java-man 7y ago
Would you elaborate please?
- marvin-83 7y agoI believe he is referring to compiler optimisation which removes wasteful or extraneous operations. I don't write in Java though, so can't comment more than that.
- pstrateman 7y agoThe 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.