Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: Synchronize...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 788 of 816
Post > Topic >>

Re: Synchronized implementations

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
 




 3 Posts in Topic:
Synchronized implementations
Joshua Cranmer <Pidgeo  2007-09-13 01:27:03 
Re: Synchronized implementations
Roedy Green <see_websi  2007-09-13 07:16:13 
Re: Synchronized implementations
Barb Knox <see@[EMAIL   2007-09-13 20:33:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:05:06 CDT 2008.