ELECTRONIC DEVICE AND OPERATING METHOD THEREOF

    公开(公告)号:US20210303320A1

    公开(公告)日:2021-09-30

    申请号:US17263591

    申请日:2019-04-25

    IPC分类号: G06F9/455

    摘要: Various embodiments of the present invention relate to a method for managing a memory in a Java execution environment, and an electronic device for performing same, and an electronic device may comprise a processor and a memory electrically connected to the processor, wherein: the memory is configured to store multiple Java application programs, and stores instructions that, when executed, cause the processor to execute a virtual machine configured to execute at least one Java application stored in the memory; and when generation of an object is detected during execution of the Java application, the virtual machine executed by the processor generates a reference for the generated object, identifies an application, which has generated the object by a threshold or more, on the basis of the generated reference, and provides information on the identified application to the processor. Other embodiments may also be possible.