# US 12,223,185 B2 · Electronic device and method for managing memory of electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,223,185 B2
- Document ID: US12223185B2
- Status: Granted
- Kind: B2
- Application number: 18/191,423
- Filed: 2023-03-28
- Published: 2023-07-27
- Granted: 2025-02-11
- Earliest claimed: 2021-01-12
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Kwanhee Jeong; Sekyeong Heo; Hyojong Kim; Donggyu Ahn
- Web page: https://patentgrep.com/patent/US12223185B2

## CPC

- G06F 3/0626: {Reducing size or complexity of storage systems}
- G06F 8/4434: {Reducing the memory space required by the program code}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 9/45516: {Runtime code conversion or optimisation}
- G06F 3/0673: {Single storage device}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to an embodiment, an electronic device includes: at least one processor and a memory configured to store instructions that can be executed by the processor, wherein the processor may be configured to: monitor information about the storage space of the memory and usage histories of a plurality of objects executed by the processor, determine a target object, of which the compile scheme is to be changed, among the plurality of objects based on at least one of the information and the usage histories; and increase the free storage space of the memory by changing the compile scheme of the target object.

## Claims

### Claim 1

An electronic device comprising:
at least one processor including processing circuitry; and
a memory configured to store instructions to be executed by the processor,
wherein the processor is configured, when executing the instructions, to:
monitor information about a storage space of the memory and usage histories of a plurality of objects executed by the processor; and
determine a target object of which a compile scheme is to be changed among the plurality of objects based on at least one of the information or the usage histories;
wherein the information comprises a ratio of a free storage space to a total storage space of the memory and a size of the free storage space of the memory;
determine an object having no icon on a display among the plurality of objects to be the target object based on the free storage space of the memory; and
change the compile scheme of the target object to increase a free storage space of the memory.

### Claim 2 (depends on 1)

The electronic device of claim 1, wherein
the usage histories comprise a period during which the plurality of objects are not used.

### Claim 3 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to, based on the free storage space of the memory being less than a first threshold, increase the free storage space by changing compile schemes of objects, wherein the compile schemes are yet to be changed.

### Claim 4 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to:
determine an object not used during a first period among the plurality of objects to be a first target object based on the free storage space of the memory; and
determine an object not used during a second period shorter than the first period to be a second target object.

### Claim 5 (depends on 4)

The electronic device of claim 4, wherein the processor is configured to determine all of the plurality of objects to be the target object based on the free storage space of the memory.

### Claim 6 (depends on 5)

The electronic device of claim 5, wherein the processor is configured to, based on the ratio of the free storage space to the storage space of the memory being less than a second threshold, determine all of the plurality of objects to be the target object.

### Claim 7 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to:
downgrade a compile-filter of the target object; and
increase the free storage space by re-compiling the target object based on the downgraded compile-filter.

### Claim 8 (depends on 1)

The electronic device of claim 1, wherein the processor is configured to:
determine whether the electronic device is in use; and
based on the electronic device not being in use, increase the free storage space by changing a compile scheme of the target object.

### Claim 9 (depends on 1)

The electronic device of claim 1, wherein changing a compile scheme of the target object is configured to be performed in background.

### Claim 10

An electronic device comprising:
at least one processor including processing circuitry; and
a memory configured to store instructions to be executed by the processor,
wherein the processor is configured, when executing the instructions, to:
monitor a storage space of the memory;
based on usage histories of a plurality of objects executed by the processor, generate an object list comprising at least some of the plurality of objects and an object having no icon on a display among the plurality of objects; and
change the compile scheme of at least one object comprised in the object list to increase a free storage space of the memory.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the processor is configured to, based on the free storage space of the memory being less than a first threshold, increase the free storage space by changing compile schemes of objects, wherein the compile schemes are yet to be changed.

### Claim 12 (depends on 10)

The electronic device of claim 10, wherein the processor is configured to:
generate a first object list to include an object not used during a first period among the plurality of objects; and
generate a second object list to include an object not used during a second period shorter than the first period among the plurality of objects.

### Claim 13 (depends on 10)

The electronic device of claim 10, wherein the processor is configured to:
determine an object list of which the compile scheme is to be changed based on a ratio of the free storage space to a total storage space of the memory; and
increase the free storage space by changing a compile scheme of an object included in the determined object list.

### Claim 14

A method for managing a memory of an electronic device comprising:
monitoring information about a storage space of the memory and usage histories of a plurality of objects executed by the electronic device; and
determining a target object of which a compile scheme is to be changed among the plurality of objects based on at least one of the information or the usage histories;
wherein the information comprises a ratio of a free storage space to a total storage space of the memory and a size of the free storage space of the memory;
determining an object having no icon on a display among the plurality of objects to be the target object based on the free storage space of the memory; and
changing the compile scheme of the target object to increasing a free storage space of the memory.
