Memory protection method
A memory and memory space technology, applied in the field of memory management, can solve problems such as imperfect memory protection mechanisms, and achieve the effect of improving system stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Embodiment one, see figure 1 As shown, the memory protection method of this embodiment includes the following steps:
[0031] S1. Every time memory is allocated, another space with identification information is created and allocated to users together;
[0032] S2. When the user releases the memory, it is judged whether the identification information contains the information of releasing the memory space, and if so, then end;
[0033] S3. If the identification information does not contain the information about releasing the memory space, it is judged whether the information in the identification information is consistent with the identification information stored when the memory is allocated, and if they are consistent, then end; otherwise, record an error message.
[0034] As a specific example, in this example, see figure 2 As shown, the space opened up in step S1 to store the identification information is:
[0035] Add header and tail identification information at...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 