METHODS AND APPARATUS FOR CONCURRENTLY EXECUTING A GARBAGE COLLECTION PROCESS DURING EXECUTION OF A PRIMARY APPLICATION PROGRAM

申请公布号:
US2008098054(A1)
申请号:
US20060552052
申请日期:
2006.10.23
申请公布日期:
2008.04.24
申请人:
RESEARCH IN MOTION LIMITED
发明人:
CARMODY MICHAEL JAMES;SCIAN ANTHONY FABIAN;DAHMS JOHN FREDRIC ARTHUR
分类号:
G06F17/30
主分类号:
G06F17/30
摘要:
According to the present disclosure, one or more processors of a computer device (e.g. a mobile communication device) are operative to execute a garbage collection program and an application program concurrently with execution of the garbage collection program. The garbage collection program is operative to identify a root set of referenced objects of an application program, where a reference indicator in a reference indicator array is set as referenced for each one of such referenced objects, and to perform a mark and sweep process based on the root set of referenced objects. The application program has computer instructions which includes a predefined computer instruction (e.g. a GETREF instruction) adapted to retrieve a reference from a target object and to set a reference indicator in the reference indicator array as referenced for the target object when executed. Advantageously, execution of the application program need not be unreasonably suspended during garbage collection processes. In one illustrative example, the application program is adapted to receive and/or provide information via a user interface of the computer device, and the concurrent processing allows for the receiving and/or providing of the information via the user interface without interference (e.g. suspension or delay) during the mark and sweep process.
专利推荐
移动版 | 电脑版 | 返回顶部