内存的保护方法、装置、计算设备以及存储介质

By modifying the SOM and SOS flags of the cache descriptor to set and cancel store-once mode, the problem of jump cache overflow in the prior art is solved, and simple and efficient memory protection is achieved.

CN115982066BActive Publication Date: 2026-07-17ALIBABA (CHINA) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ALIBABA (CHINA) CO LTD
Filing Date
2022-09-29
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing technologies, protecting the jump buffer from occupying buffer space is complex to implement and makes it difficult to prevent jump buffer overflow, thus affecting the memory protection effect.

Method used

By modifying the descriptor of the target cache to set it to store-once mode and then canceling this mode after instruction execution, the access permissions of the cache are controlled using the descriptor's SOM and SOS flags, thus preventing overflow.

Benefits of technology

A simple memory protection method that does not occupy cache space is implemented, which effectively prevents jump cache overflow and improves cache utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115982066B_ABST
    Figure CN115982066B_ABST
Patent Text Reader

Abstract

本发明提供一种内存的保护方法、装置、计算设备以及存储介质。本发明内存的保护方法中,包括以下步骤:执行一第一序列指令,所述第一序列指令向一目标缓存器存储数据;执行一设置存储一次指令,将所述目标缓存器设置为存储一次模式;执行一第二序列指令,所述第二序列指令从所述目标缓存器中读取所述数据;执行一取消存储一次指令,取消所述目标缓存器的所述存储一次模式。本发明内存的保护方法,实现容易,不占用缓存器空间并能够防止跳转缓存器溢出,有效的对内存中的数据进行保护。
Need to check novelty before this filing date? Find Prior Art