Java软引用防止内存泄漏技术的研究  被引量:2

Study on the Technology of Preventing Memory Loss by Soft Reference

在线阅读下载全文

作  者:张昊[1] 潘祖烈[2] 

机构地区:[1]安徽城市管理职业学院安徽,合肥230602 [2]解放军电子工程学院,安徽合肥230037

出  处:《安徽教育学院学报》2006年第6期42-45,共4页Journal of Anhui Institute of Education

摘  要:GC自动地进行内存管理,但长时间对象强引用而忘了释放,可能导致内存泄漏,软引用有较强的引用功能,在程序中申请内存时,GC自动判断是否处于软可及状态的对象。当内存不够时才回收这些由软引用的对象,从而保证了内存不溢出。Though GC can manage internal storage automatically, it can cause internal memory leakage when it is used for long time without being released. GC can judge if the object is in soft and reachable state when applying for internal memory. The soft-using object will be called back until the internal memory is inadequate, which will stop internal memory not leaking out.

关 键 词:软引用 内存管理 对象状态 内存泄漏 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象