> I can't help but ask if the following is a legal transformation:
> 
>   thread.yield();
> ==>
>   try {
>       thread.sleep(Long.MAX_VALUE);
>   }
>   catch (InterruptedException ex) {
>       thread.interrupt();
>   }
Given that Java makes no guarantees of forward progress, isn't that a
valid construct for a compiler to insert between any two instructions?
--p
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel
This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:37 EDT