# US 2026/0259826 A1 · Garbage Collection Using Detail Card Tables

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

- Number: US 2026/0259826 A1
- Document ID: US20260259826A1
- Status: Published application
- Kind: A1
- Application number: 19/069,079
- Filed: 2025-03-03
- Published: 2026-09-03
- Earliest claimed: 2025-03-03
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Thomas Schatzl; Albert Mingkun Yang
- Web page: https://patentgrep.com/patent/US20260259826A1

## CPC

- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 12/0276: {Generational garbage collection}
- G06F 12/0261: {using reference counting}
- G06F 12/0269: {Incremental or concurrent garbage collection, e.g. in real-time systems (G06F12/0261 takes precedence)}
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 2212/1016: Performance improvement
- G06F 2212/1024: Latency reduction
- G06F 2212/1044: Space efficiency improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for garbage collection using detail cards are disclosed. A card in a card table and a detail card in a detail card table are associated with a heap segment. Bits in the detail card are associated, respectively, with heap subsegments of the heap segment. A garbage collector marks a first bit in the detail card as dirty. During a sweep cycle, the garbage collector determines that the card is clean, the first bit is dirty, and a second bit in the detail card is clean. During the sweep cycle, based on the card being clean, the first bit being dirty, and the second bit being clean, the garbage collector (a) scans a heap subsegment associated with the first bit for intergenerational references and (b) refrains from scanning a heap subsegment associated with the second bit for intergenerational references.

## Claims

### Claim 1

A method comprising:
marking, by a garbage collector executing in a runtime environment, a first bit in a first plurality of bits of a first detail card as dirty;
wherein a first card in a plurality of cards of a card table is associated with a first heap segment in a plurality of heap segments;
wherein the first plurality of bits of the first detail card are associated, respectively, with a first plurality of heap subsegments of the first heap segment; and
wherein the first bit is associated with a first heap subsegment in the first plurality of heap subsegments;
determining, by the garbage collector during a sweep cycle, that (a) the first card is clean, (b) the first bit is dirty, and (c) a second bit in the first plurality of bits, associated with a second heap subsegment in the first plurality of heap subsegments, is clean; and
based on the first card being clean, the first bit being dirty, and the second bit being clean:
scanning, by the garbage collector during the sweep cycle, the first heap subsegment for intergenerational references; and
refraining from scanning, by the garbage collector during the sweep cycle, the second heap subsegment for intergenerational references;
wherein the method is performed by at least one device including a hardware processor.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining, by the garbage collector, that a second card in the plurality of cards is dirty;
wherein the second card is associated with a second heap segment of the plurality of heap segments;
wherein a second plurality of bits of a second detail card in the plurality of detail cards are associated, respectively, with a second plurality of heap subsegments of the second heap segment;
based on determining that the second card is dirty: scanning, by the garbage collector, the second heap segment for intergenerational references regardless of values of the second plurality of bits.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining, by the garbage collector, that
(a) a second card in the plurality of cards, associated with a second heap segment in the plurality of heap segments, is clean, and
(b) a second plurality of bits of a second detail card in the plurality of detail cards, associated with the second heap segment, are clean; and
based on determining that the second card is clean and the second plurality of bits are clean: refraining from scanning, by the garbage collector, the second heap segment for intergenerational references.

### Claim 4 (depends on 1)

The method of claim 1, wherein marking the first bit as dirty is performed by a concurrent refinement thread of the garbage collector that executes concurrently with a mutator thread.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining, by the concurrent refinement thread before the sweep cycle, that the first card is dirty;
responsive to determining that the first card is dirty:
marking, by the concurrent refinement thread, the first card as clean; and
scanning, by the concurrent refinement thread, the first heap segment for intergenerational references;
wherein marking the first bit as dirty is performed responsive to the scanning operation determining that the first heap subsegment comprises an intergenerational reference.

### Claim 6 (depends on 1)

The method of claim 1, wherein a first memory size of the first detail card is equal to a second memory size of the first card.

### Claim 7 (depends on 1)

The method of claim 1, the operations further comprising:
generating, by the garbage collector, a merged table comprising a plurality of merged values based on respective values of the first plurality of cards and associated detail cards in the first plurality of detail cards;
wherein determining that (a) the first card is clean, (b) the first bit is dirty, and (c) the second bit is clean is based at least in part on a first merged value, in the plurality of merged values, associated with the first heap segment.

### Claim 8

One or more non-transitory computer-readable media storing instructions that, when executed by one or more hardware processors, cause performance of operations comprising:
marking, by a garbage collector executing in a runtime environment, a first bit in a first plurality of bits of a first detail card as dirty;
wherein a first card in a plurality of cards of a card table is associated with a first heap segment in a plurality of heap segments;
wherein the first plurality of bits of the first detail card are associated, respectively, with a first plurality of heap subsegments of the first heap segment; and
wherein the first bit is associated with a first heap subsegment in the first plurality of heap subsegments;
determining, by the garbage collector during a sweep cycle, that (a) the first card is clean, (b) the first bit is dirty, and (c) a second bit in the first plurality of bits, associated with a second heap subsegment in the first plurality of heap subsegments, is clean; and
based on the first card being clean, the first bit being dirty, and the second bit being clean:
scanning, by the garbage collector during the sweep cycle, the first heap subsegment for intergenerational references; and
refraining from scanning, by the garbage collector during the sweep cycle, the second heap subsegment for intergenerational references.

### Claim 9 (depends on 8)

The one or more media of claim 8, the operations further comprising:
determining, by the garbage collector, that a second card in the plurality of cards is dirty;
wherein the second card is associated with a second heap segment of the plurality of heap segments;
wherein a second plurality of bits of a second detail card in the plurality of detail cards are associated, respectively, with a second plurality of heap subsegments of the second heap segment;
based on determining that the second card is dirty: scanning, by the garbage collector, the second heap segment for intergenerational references regardless of values of the second plurality of bits.

### Claim 10 (depends on 8)

The one or more media of claim 8, the operations further comprising:
determining, by the garbage collector, that
(a) a second card in the plurality of cards, associated with a second heap segment in the plurality of heap segments, is clean, and
(b) a second plurality of bits of a second detail card in the plurality of detail cards, associated with the second heap segment, are clean; and
based on determining that the second card is clean and the second plurality of bits are clean: refraining from scanning, by the garbage collector, the second heap segment for intergenerational references.

### Claim 11 (depends on 8)

The one or more media of claim 8, wherein marking the first bit as dirty is performed by a concurrent refinement thread of the garbage collector that executes concurrently with a mutator thread.

### Claim 12 (depends on 11)

The one or more media of claim 11, the operations further comprising:
determining, by the concurrent refinement thread before the sweep cycle, that the first card is dirty;
responsive to determining that the first card is dirty:
marking, by the concurrent refinement thread, the first card as clean; and
scanning, by the concurrent refinement thread, the first heap segment for intergenerational references;
wherein marking the first bit as dirty is performed responsive to the scanning operation determining that the first heap subsegment comprises an intergenerational reference.

### Claim 13 (depends on 8)

The one or more media of claim 8, wherein a first memory size of the first detail card is equal to a second memory size of the first card.

### Claim 14 (depends on 8)

The one or more media of claim 8, the operations further comprising:
generating, by the garbage collector, a merged table comprising a plurality of merged values based on respective values of the first plurality of cards and associated detail cards in the first plurality of detail cards;
wherein determining that (a) the first card is clean, (b) the first bit is dirty, and (c) the second bit is clean is based at least in part on a first merged value, in the plurality of merged values, associated with the first heap segment.

### Claim 15

A system comprising:
at least one device including a hardware processor;
the system being configured to perform operations comprising:
marking, by a garbage collector executing in a runtime environment, a first bit in a first plurality of bits of a first detail card as dirty;
wherein a first card in a plurality of cards of a card table is associated with a first heap segment in a plurality of heap segments;
wherein the first plurality of bits of the first detail card are associated, respectively, with a first plurality of heap subsegments of the first heap segment; and
wherein the first bit is associated with a first heap subsegment in the first plurality of heap subsegments;
determining, by the garbage collector during a sweep cycle, that (a) the first card is clean, (b) the first bit is dirty, and (c) a second bit in the first plurality of bits, associated with a second heap subsegment in the first plurality of heap subsegments, is clean; and
based on the first card being clean, the first bit being dirty, and the second bit being clean:
scanning, by the garbage collector during the sweep cycle, the first heap subsegment for intergenerational references; and
refraining from scanning, by the garbage collector during the sweep cycle, the second heap subsegment for intergenerational references.

### Claim 16 (depends on 15)

The system of claim 15, the operations further comprising:
determining, by the garbage collector, that a second card in the plurality of cards is dirty;
wherein the second card is associated with a second heap segment of the plurality of heap segments;
wherein a second plurality of bits of a second detail card in the plurality of detail cards are associated, respectively, with a second plurality of heap subsegments of the second heap segment;
based on determining that the second card is dirty: scanning, by the garbage collector, the second heap segment for intergenerational references regardless of values of the second plurality of bits.

### Claim 17 (depends on 15)

The system of claim 15, the operations further comprising:
determining, by the garbage collector, that
(a) a second card in the plurality of cards, associated with a second heap segment in the plurality of heap segments, is clean, and
(b) a second plurality of bits of a second detail card in the plurality of detail cards, associated with the second heap segment, are clean; and
based on determining that the second card is clean and the second plurality of bits are clean: refraining from scanning, by the garbage collector, the second heap segment for intergenerational references.

### Claim 18 (depends on 15)

The system of claim 15, wherein marking the first bit as dirty is performed by a concurrent refinement thread of the garbage collector that executes concurrently with a mutator thread.

### Claim 19 (depends on 18)

The system of claim 18, the operations further comprising:
determining, by the concurrent refinement thread before the sweep cycle, that the first card is dirty;
responsive to determining that the first card is dirty:
marking, by the concurrent refinement thread, the first card as clean; and
scanning, by the concurrent refinement thread, the first heap segment for intergenerational references;
wherein marking the first bit as dirty is performed responsive to the scanning operation determining that the first heap subsegment comprises an intergenerational reference.

### Claim 20 (depends on 15)

The system of claim 15,the operations further comprising:
generating, by the garbage collector, a merged table comprising a plurality of merged values based on respective values of the first plurality of cards and associated detail cards in the first plurality of detail cards;
wherein determining that (a) the first card is clean, (b) the first bit is dirty, and (c) the second bit is clean is based at least in part on a first merged value, in the plurality of merged values, associated with the first heap segment.
