METHOD AND APPARATUS FOR SETTING MEMORY, AND ELECTRONIC DEVICE AND STORAGE MEDIUM
A method and apparatus for setting memory, and an electronic device and a storage medium. The method comprises: obtaining a memory application instruction generated by a process corresponding to a simulator; determining target number of times of mappings for a first virtual memory space according to...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A method and apparatus for setting memory, and an electronic device and a storage medium. The method comprises: obtaining a memory application instruction generated by a process corresponding to a simulator; determining target number of times of mappings for a first virtual memory space according to the memory application instruction; determining remaining number of times of mappings of the first virtual memory space; determining whether the remaining number of times of mappings is zero; if not, mapping the first virtual memory space to a second virtual memory space by using a copy-on-write instruction, updating the remaining number of times of mappings, and returning to the step of determining whether the remaining number of times of mappings is zero; and if yes, stopping mapping the first virtual memory space to the second virtual memory space by using the copy-on-write instruction. |
---|