J�rg Schaible wrote:


Sure? I would suppose, that an object is created and directly handed over to the GC. Otherwise the Compiler must have knowledge of the (possibly empty) implementation of any inherited c'tors.


All I am saying is that optimizing compilers look at things like initializing variables that will never be used, and then remove them from use. Very few people have constructors that have side-effects outside of the actual object that they are using. I would call it a bug if they did.

All that aside, it would be a legal optimization for the compiler to make to
strip out the contents of the loop and merely compile an empty loop.  If the
compiler doesn't do it, then the HotSpot VM sure will.

--

"They that give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."
                - Benjamin Franklin


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to