Invention Grant
- Patent Title: Memory reclaiming method and apparatus
-
Application No.: US16171304Application Date: 2018-10-25
-
Publication No.: US10901890B2Publication Date: 2021-01-26
- Inventor: Junmin Zhao
- Applicant: HUAWEI TECHNOLOGIES CO., LTD.
- Applicant Address: CN Guangdong
- Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee: HUAWEI TECHNOLOGIES CO., LTD.
- Current Assignee Address: CN Guangdong
- Agency: Fish & Richardson P.C.
- Main IPC: G06F12/02
- IPC: G06F12/02 ; G06F9/50 ; G06F12/08 ; G06F12/122

Abstract:
Example memory reclaiming methods and apparatuses are provided to resolve a problem that application data is lost and a restart speed of an application becomes slower in a manner of reclaiming a memory by killing the application. One example memory reclaiming method includes determining an application program that occupies a to-be-reclaimed memory and selecting at least one virtual address space segment according to a running state of the application program. A virtual address space that is in the selected at least one virtual address space segment and that is occupied by the application program is reclaimed. The application program is not directly killed, but instead, only a memory occupied by application data that can be cleared in the running state is reclaimed according to the running state of the application program. Therefore, less application data is lost.
Public/Granted literature
- US20190065368A1 MEMORY RECLAIMING METHOD AND APPARATUS Public/Granted day:2019-02-28
Information query