JVM-20130326

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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章