发明名称 Predicting out of memory conditions using soft references
摘要 A near out-of-memory condition in a memory space is detected by creating softly reachable objects which are garbage collected when the memory space is becoming full. The softly reachable objects are objects that can be cleared at the discretion of the garbage collector when heap memory is running low. An agent process of an application can create soft reference objects which reference the softly reachable objects, and periodically poll the soft reference objects to determine if the softly reachable objects have been cleared. If they have been cleared, the agent reports to the application so that a graceful shutdown of the application can be initiated. A report can also be sent to a user interface or other output device. Additional information regarding the memory space can be gained by using softly reachable objects of different sizes and/or ages. Further, a wait period for the polling can be set adaptively.
申请公布号 US7761487(B2) 申请公布日期 2010.07.20
申请号 US20060610085 申请日期 2006.12.13
申请人 COMPUTER ASSOCIATES THINK, INC. 发明人 BANSAL JYOTI KUMAR;SEIDMAN DAVID ISAIAH;ADDLEMAN MARK J.
分类号 G06F12/00;G06F17/30 主分类号 G06F12/00
代理机构 代理人
主权项
地址