(EN) Disclosed is an electronic device comprising: a memory for storing an application; and a processor operatively connected to the memory, wherein the processor is configured to: if memory allocation for virtual memory corresponding to the application fails during the execution of the application, set information indicating the failure of the memory allocation; and, if the set information exists when the application is re-executed, determine the size of a heap area comprised in the virtual memory on the basis of the set information, and allocate the virtual memory comprising the heap area of the determined size. Other various embodiments identified through the present document are possible.
(FR) L'invention concerne un dispositif électronique comprenant : une mémoire pour stocker une application ; et un processeur connecté de manière fonctionnelle à la mémoire, le processeur ayant la configuration suivante : si une attribution de mémoire pour une mémoire virtuelle correspondant à l'application échoue pendant l'exécution de l'application, définir des informations indiquant l'échec de l'attribution de mémoire ; et, si les informations existent existent lorsque l'application est à nouveau exécutée, déterminer la taille d'une zone de tas comprise dans la mémoire virtuelle sur la base des informations définies, et attribuer la mémoire virtuelle comprenant la zone de tas de la taille déterminée. Divers autres modes de réalisation identifiés dans la présente invention sont possibles.
(KO) 전자 장치에 있어서, 어플리케이션을 저장하는 메모리, 및 상기 메모리와 작동적으로 연결된 프로세서를 포함하고, 상기 프로세서는, 상기 어플리케이션의 실행 중 상기 어플리케이션에 대응되는 가상 메모리에 대한 메모리 할당이 실패하면, 상기 메모리 할당의 실패를 나타내는 정보를 설정하고, 상기 어플리케이션의 재실행 시, 상기 설정된 정보가 존재하면, 상기 설정된 정보에 기반하여 상기 가상 메모리에 포함된 힙 영역의 크기를 결정하고, 상기 결정된 크기의 힙 영역을 포함하는 상기 가상 메모리를 할당하도록 설정된 전자 장치가 개시된다. 이 외에도 본 문서를 통해 파악되는 다양한 실시예들이 가능하다.