JVM-20130326

来源:互联网 发布:win8守望网络初始化 编辑:程序博客网 时间:2024/05/23 12:05

1.

    public static void main (String args[]) {long startTime = System.currentTimeMillis();        int x = 1;        int y = 1;        int z = 1;        a.cal1(x, y, z);        a.cal2(x, y, z);long endTime = System.currentTimeMillis();        System.err.println("time: "+ (endTime - startTime)+" z = "+z);        try {           Thread.sleep(5000);        } catch (InterruptedException e) {           e.printStackTrace();        }        }



Before a method is compiled, 14 stubs are compiled in X86.


2.