Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6244003

JVM(server) freezes with -Xcomp -XX:CompileOnly=freeze.loop and -XX:-Inline in 6.0b27

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • b51
    • x86
    • windows_xp

      JVM (server) freezes in the following reproducible process.

      CONFIGURATION :
        JRE : 6.0b27/5.0u2
        OS : WindowsXP(SP1, Japanese)

      REPRUDUCING :
        1) Compile the following test program

      === TEST PROGRAM ===>
      public class freeze extends Thread {

        public static void main(String[] args) throws Exception {
          (new freeze()).start();
          Thread.sleep(1000);
          System.gc();
          System.exit(0);
        }
        public void run() {
          loop();
        }

        void loop() {
          while(true){ empty();}
        }

        void empty() {}

      }

      <=====================

        2) Launch the command
            "java -server -Xcomp -XX:CompileOnly=freeze.loop -XX:-Inline freeze"
           You will see the program never terminate even by CTL-C, CTL-D

      ###@###.### 2005-03-22 01:31:59 GMT

            coleenp Coleen Phillimore
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: