摘要 |
A mobile communication device has an application program which provides it with user interface functionality for communications (e.g. e-mail communications). A garbage collection process for the application program is initiated in response to detecting a predetermined condition, such as a low memory condition or a high object creation count condition, after a continuous time period of no user interface activity at a user interface of the mobile communication device is identified. The garbage collection process involves freeing unreachable objects of the application program to reclaim memory space and consolidating reachable objects of the application program so as to increase available contiguous memory space. If a user interface signal from the user interface is identified during the garbage collection process, the garbage collection process is terminated. On the other hand, an uninterruptible garbage collection process is performed in response to identifying a more severe condition, such as a memory allocation failure. Advantageously, garbage collection processes are performed without substantially interfering with use of the mobile communication device by the end user. |