by Roedy Green <see_website@[EMAIL PROTECTED]
>
Sep 13, 2007 at 07:16 AM
On Thu, 13 Sep 2007 01:27:03 GMT, Joshua Cranmer
<Pidgeot18@[EMAIL PROTECTED]
> wrote, quoted or indirectly quoted someone who
said :
>astore 5
>monitorenter
>[ various instructions ]
>aload 5
>monitorexit
>
>Why does it duplicate the variable when running synchronized blocks?
Byte code has almost no optimisation. Sun does all its optimisations
in HotSpot.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com