This is the mail archive of the java@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]

Optimization and synchronization


Hello,

a short question: do you want this PR under category java or optimization? 
Or doesn't that matter?

class Test1 {
  Object barrier;
  Object table;
  void test() {
        Object tab = table;
        if (tab == null) {
            synchronized(barrier) {
                tab = table;
            }
        }
  }  
}

> gcj -O -c Test1.java 
Test1.java: In class `Test1':
Test1.java: In method `Test1.test()':
Test1.java:11: Wrong amount of branch edges after unconditional jump 1
Test1.java:11: verify_flow_info failed


--===-... And it is said ...-=+=-----... Superstition bears adversity ...---===
Dipl.-Phys. Roland Hautz      |Tel.:+49=8631-163136      R.Hautz@inn-salzach.de
                              |PGP public key 1024D/F5F6E1B2; key fingerprint :
Software Engineer             |5FB26673  5DE47D25  226D0ABA  E4528AB5  F5F6E1B2


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