Method for allocating of virtual memory and electronic device supporting the same
Disclosed is an electronic device, which includes: a memory for storing an application; and a processor operatively connected to the memory, wherein the processor is configured to: set information indicating a failure of the memory allocation, if memory allocation for virtual memory corresponding to...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng ; kor |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Disclosed is an electronic device, which includes: a memory for storing an application; and a processor operatively connected to the memory, wherein the processor is configured to: set information indicating a failure of the memory allocation, if memory allocation for virtual memory corresponding to the application fails during the execution of the application, determine the size of a heap area comprised in the virtual memory on the basis of the set information, if the set information exists when the application is re-executed, and allocate the virtual memory comprising the heap area of the determined size. Other various embodiments identified through the present document are possible. Accordingly, it is possible to maximize efficiency of a storage space of the virtual memory.
전자 장치에 있어서, 어플리케이션을 저장하는 메모리, 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 어플리케이션의 실행 중 상기 어플리케이션에 대응되는 가상 메모리에 대한 메모리 할당이 실패하면, 상기 메모리 할당의 실패를 나타내는 정보를 설정하고, 상기 어플리케이션의 재실행 시, 상기 설정된 정보가 존재하면, 상기 설정된 정보에 기반하여 상기 가상 메모리에 포함된 힙 영역의 크기를 결정하고, 상기 결정된 크기의 힙 영역을 포함하는 상기 가상 메모리를 할당하도록 설정된 전자 장치가 개시된다. 이 외에도 본 문서를 통해 파악되는 다양한 실시예들이 가능하다. |
---|