This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/RFT] Patch (java): Switch to new verifier


On Tue, Mar 08, 2005 at 11:21:58AM +0000, Andrew Haley wrote:
> The problem with volatile is that
> we'll de-optimize things of the form
> 
> for (blah)
>   baz += a.b;
> 
> because we'll fetch a.b from memory every time around the loop.  It
> would be nice automagically to convert this to
> 
> tmp = a.b;
> for (blah)
>   baz += tmp;
> 
> but I'm having a hard time figuring out how to do so.

Me too.  Similarly

  baz += a.b + a.c

only one of which in reality can trap.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]