Mercurial > hg > Members > sugi > memoryleak
diff src/example2/MyStack.java @ 1:0a4fdcd1ed46 default tip
minor change
author | e095732 |
---|---|
date | Tue, 29 Jan 2013 15:27:43 +0900 |
parents | 4dbea8e22628 |
children |
line wrap: on
line diff
--- a/src/example2/MyStack.java Mon Jan 28 22:05:30 2013 +0900 +++ b/src/example2/MyStack.java Tue Jan 29 15:27:43 2013 +0900 @@ -1,5 +1,10 @@ package example2; +/** + * 実行させてもMemory Leakはしません + * 参照が残り続けるStackなのでたくさん生成するといつかMemory Leakを起こす + */ + public class MyStack { private Object[] stack; private int size = 0;