一次有趣的局部變量GC

前言 最近在看《實戰Java虛擬機》, 發現書上的一個關於局部變量表GC挺有意思,先上代碼。 主角 沒有GC public class Main { public static void reversion(){ { byte[] a = new byte[6*1024*1024]; } System.gc();
相關文章
相關標籤/搜索