# US 2018/0322049 A1 · Reducing minor garbage collection overhead

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

- Number: US 2018/0322049 A1
- Document ID: US20180322049A1
- Status: Published application
- Kind: A1
- Application number: 16/035,110
- Filed: 2018-07-13
- Published: 2018-11-08
- Earliest claimed: 2016-05-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Tatsuhiro Chiba; Hiroshi Horii; Tamiya Onodera
- Web page: https://patentgrep.com/patent/US20180322049A1

## CPC

- G06F 12/0269: {Incremental or concurrent garbage collection, e.g. in real-time systems (G06F12/0261 takes precedence)}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0652: {Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket}
- G06F 3/0683: {Plurality of storage devices}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 12/0276: {Generational garbage collection}
- G06F 12/0893: Caches characterised by their organisation or structure
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/60: Details of cache memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method and system are provided for reducing garbage collection overhead. The method includes specifying, by a hardware processor from a set of nodes of a Directed Acyclic Graph representing an application program, wherein each of the nodes represents a respective one of a plurality of computation tasks, any of the nodes which store a respective computation result for at least a threshold period of time as cache nodes. The method further includes allocating, by the hardware processor, the respective computation result of each of the cache nodes into a tenure area of a memory.

## Claims

### Claim 1

A computer-implemented method for reducing garbage collection overhead, comprising:
specifying, by a hardware processor from a set of nodes of a Directed Acyclic Graph representing an application program, wherein each of the nodes represents a respective one of a plurality of computation tasks, any of the nodes which store a respective computation result for at least a threshold period of time as cache nodes; and
allocating, by the hardware processor, the respective computation result of each of the cache nodes into a tenure area of a memory.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein said specifying step specifies the cache nodes from the set of nodes based on a structure of the Directed Acyclic Graph.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein said specifying step comprises:
recording identifiers of the nodes; and
marking as the cache nodes, any of the nodes having an identifier recorded at least twice.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein said specifying step comprises marking as the cache nodes, any of the nodes that are annotated by the application program.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein said allocating step comprises, for each of the cache nodes:
specifying a respective one of the plurality of computation tasks to generate the respective computation result;
attaching an annotation to the respective one of the plurality of computation tasks;
specifying a class which primarily generates objects in order to stop promoting unrelated objects into tenure space; and
allocating the respective computation result into the tenure space of the memory while executing a specified annotated task and creating the objects of the specified class.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the plurality of tasks are specified or implicated by the application program.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the Directed Acyclic Graph further has a set of edges, each of the edges representing a constraint on one or more of the plurality of tasks.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the method is performed in a minor garbage collection stage, and wherein a major collection stage is performed when the tenure space of the memory is filled.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein said allocating step comprises moving the respective computation result of each of the cache nodes from a nursery area of the memory to the tenure area of the memory.

### Claim 10

A non-transitory computer readable storage medium comprising a computer readable program for reducing garbage collection overhead, wherein the computer readable program when executed on a computer causes the computer to perform a method, the steps of the method comprising:
specifying, by a hardware processor from a set of nodes of a Directed Acyclic Graph representing an application program, wherein each of the nodes represents a respective one of a plurality of computation tasks, any of the nodes which store a respective computation result for at least a threshold period of time as cache nodes; and
allocating, by the hardware processor, the respective computation result of each of the cache nodes into a tenure area of a memory.

### Claim 11 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein said specifying step specifies the cache nodes from the set of nodes based on a structure of the Directed Acyclic Graph.

### Claim 12 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein said specifying step comprises:
recording identifiers of the nodes; and
marking as the cache nodes, any of the nodes having an identifier recorded at least twice.

### Claim 13 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein said specifying step comprises marking as the cache nodes, any of the nodes that are annotated by the application program.

### Claim 14 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein said allocating step comprises, for each of the cache nodes:
specifying a respective one of the plurality of computation tasks to generate the respective computation result;
attaching an annotation to the respective one of the plurality of computation tasks;
specifying a class which primarily generates objects in order to stop promoting unrelated objects into tenure space; and
allocating the respective computation result into the tenure space of the memory while executing a specified annotated task and creating the objects of the specified class.

### Claim 15 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein the plurality of tasks are specified or implicated by the application program.

### Claim 16 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein the Directed Acyclic Graph further has a set of edges, each of the edges representing a constraint on one or more of the plurality of tasks.

### Claim 17 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein the method is performed in a minor garbage collection stage, and wherein a major collection stage is performed when the tenure space of the memory is filled.

### Claim 18 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein said allocating step comprises moving the respective computation result of each of the cache nodes from a nursery area of the memory to the tenure area of the memory.

### Claim 19

A system, comprising:
a memory partitioned into a nursery area and a tenure area;
a hardware processor configured to:
specify, from a set of nodes of a Directed Acyclic Graph representing an application program, wherein each of the nodes represents a respective one of a plurality of computation tasks, any of the nodes which store a respective computation result for at least a threshold period of time as cache nodes; and
allocate the respective computation result of each of the cache nodes into the tenure area of the memory.

### Claim 20 (depends on 19)

The system of claim 19, wherein the hardware processor specifies the cache nodes from the set of nodes based on a structure of the Directed Acyclic Graph.
