Memory management method and system
A technology of memory management and memory, which is applied in the Internet field, can solve problems such as insufficient memory, and achieve the effect of alleviating the problem of insufficient memory and reducing the frequency of insufficient memory errors
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] According to an embodiment of the present invention, an embodiment of a memory management method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although The logical sequence is shown in the flowchart, but in some cases, the steps shown or described may be performed in a different order than here.
[0068] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a computer terminal as an example, figure 2 It is a block diagram of the hardware structure of the computer terminal according to the memory management method of the embodiment of the present invention. Such as figure 2 As shown, the computer terminal 100 may include one or more (only one is shown in the figure) processor 102 (the processor 102 may in...
Embodiment 2
[0098] Such as Figure 5 As shown, the present invention provides another memory management method, including:
[0099] Step S501: Apply to the operating system for a memory of a specified size as reserved memory.
[0100] Step S502: Set a target coverage function.
[0101] Step S503: Intercept each memory allocator's request for memory from the operating system through the target coverage function, and send the intercepted request to the operating system.
[0102] Step S504: Monitor the response result of the operating system to the request through the target coverage function.
[0103] Step S505: Determine whether the memory application to the operating system is successful according to the response result. If the application for memory to the operating system fails, step S506 is executed, and if successful, step S508 is executed.
[0104] Step S506: Return the reserved memory to the operating system.
[0105] Step S507: Re-send a request for memory application to the operating system....
Embodiment 3
[0153] Such as Image 6 As shown, the present invention also provides a memory management system, including:
[0154] The reserved memory application module 601 is used to apply to the operating system for a specified size of memory as reserved memory;
[0155] The target coverage function setting module 602 is used to set the target coverage function;
[0156] The request interception module 603 is used to intercept requests for memory from each memory allocator to the operating system through the target coverage function, and send the intercepted requests to the operating system; the response monitoring module is used to monitor the operating system’s response to the operating system through the target coverage function The response result of the request;
[0157] The judging module 604 is used to judge whether the request for memory from the operating system is successful according to the response result;
[0158] The reserved memory returning module 605 is used to return the reserv...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com