33

Java底层:GC相关-zero菌

 5 years ago
source link: https://blog.51cto.com/zero01/2421570
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Java底层知识:GC相关垃圾回收之垃圾标记算法对象被判定为垃圾的标准:该对象没有被其他对象引用判定对象是否为垃圾的算法:引用计数算法,优点:执行效率高,程序执行受影响较小;缺点:无法检测出循环引用的情况,容易导致内存泄露通过判断对象的引用数量来决定对象是否可以被回收每个对象实例都有一个引用计数器,被引用

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK