Static List<Object > list = new ArrayList(); for (int i = 1; i<100; i++) { Object o = new Object(); list.add(o); o = null; }//o无法释放