Applied memory management method and device

A technology of memory management and memory, which is applied in the field of communication, can solve problems such as insufficient application memory management, and achieve the effect of high coverage
CN103164290BActive Publication Date: 2017-08-04TENCENT TECH (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECH (SHENZHEN) CO LTD
Publication Date
2017-08-04

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses an application memory management method and device, belonging to the technical field of communication. The method includes: after receiving the application memory request from the application, querying the memory application interface for operating memory paging; according to the size of the memory page provided by the memory application interface for operating memory paging, allocating a memory block for the application; A guard page is added to a start position or an end position of the memory block allocated by the application, and the guard page is used to provide exception detection for the debugger. The present invention directly takes over the memory application interface of memory paging, allocates memory blocks for applications according to the size of memory paging, and adds a protection page to one end of the memory block, which can detect illegal reading and writing of memory, and at the same time, the detection coverage rate is higher high.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the technical field of communication, in particular to an application memory management method and device. Background technique

[0002] The development of native applications on low-end mobile phone platforms (mobile phone Java applications do not belong) generally uses C language or C++ language, and the memory management mechanism provided by the platform is relatively primitive, which requires application developers to have good quality, otherwise it is easy to cause memory loss. Leakage or illegal memory access can slow down the running speed of the application or the system, or even crash the system.

[0003] In order to develop more stable native applications on these platforms, a current method of managing application memory is to take over the MMU (Memory Management Unit, memory management unit) at runtime. The way to take over the MMU at runtime is to build a memory management module by the application itself...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More