# US 2020/0401517 A1 · Arena-based memory management

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

- Number: US 2020/0401517 A1
- Document ID: US20200401517A1
- Status: Published application
- Kind: A1
- Application number: 16/447,790
- Filed: 2019-06-20
- Published: 2020-12-24
- Earliest claimed: 2019-06-20
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Peter Franz Valentin Sollich; Robert Lovejoy Goodwin; Charles Ryan Salada
- Web page: https://patentgrep.com/patent/US20200401517A1

## CPC

- G06F 12/0261: {using reference counting}
- G06F 12/0276: {Generational garbage collection}
- G06F 12/0815: Cache consistency protocols
- G06F 2212/1008: Correctness of operation, e.g. memory ordering
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/70: Details relating to dynamic memory management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An arena-based memory management system is disclosed. In response to a call to reclaim memory storing a group of objects allocated in an arena, an object not in use of the group of objects allocated in the arena is collected. A live object of the plurality of objects is copied from the arena to a heap.

## Claims

### Claim 1

A method of controlling an arena-based memory management system, the method comprising:
allocating a plurality of objects into an arena in memory, the arena reclaimable after a programmed deallocation;
in response to a call to reclaim memory storing a plurality of objects allocated in an arena, collecting an object of the plurality of objects not in use in the arena; and
copying a live object of the plurality of objects from the arena to a heap.

### Claim 2 (depends on 1)

The method of claim 1 comprising disposing the arena in response to the call.

### Claim 3 (depends on 1)

The method of claim 1 wherein the heap is served by a garbage collection.

### Claim 4 (depends on 3)

The method of claim 3 wherein the garbage collection is a generational garbage collection.

### Claim 5 (depends on 1)

The method of claim 1 wherein the call to reclaim memory includes a dispose method.

### Claim 6 (depends on 1)

The method of claim 1 wherein the call to reclaim memory includes reclaiming the arena.

### Claim 7 (depends on 6)

The method of claim 6 wherein the call to reclaim memory further includes a garbage collection.

### Claim 8 (depends on 1)

The method of claim 1 wherein the copying a live object further includes copying objects referenced from the live object.

### Claim 9 (depends on 1)

The method of claim 1 comprising using reference counting if the arena is being used for allocation.

### Claim 10 (depends on 1)

The method of claim 1 wherein the plurality of objects point to objects in the heap.

### Claim 11

An arena-based memory management system, comprising:
a memory device to store a set of instructions; and
a processor to execute the set of instructions to:
allocate a plurality of objects into an arena in memory, the arena reclaimable after a programmed deallocation;
in response to a call to reclaim memory storing a plurality of objects allocated in the arena, collect an object of the plurality of objects not in use in the arena; and
copy a live object of the plurality of objects from the arena to a heap served by a garbage collector.

### Claim 12 (depends on 11)

The system of claim 11 wherein the garbage collector is a generational garbage collector.

### Claim 13 (depends on 11)

The system of claim 11 wherein objects in the heap having pointers to the object not in use in the arena are collected in the response to the call to reclaim memory.

### Claim 14 (depends on 11)

The system of claim 11 wherein the response to a call to reclaim memory includes a garbage collection.

### Claim 15 (depends on 11)

The system of claim 11 wherein multiple threads allocate in the arena.

### Claim 16 (depends on 15)

The system of claim 15 wherein each thread includes a stack of allocators.

### Claim 17

A computer readable device to store computer readable instructions to control a processor to control an arena-based memory, the instructions comprising:
allocate a plurality of objects into an arena in memory, the arena reclaimable after a programmed deallocation;
in response to a call to reclaim memory storing a plurality of objects allocated in an arena, collect an object of the plurality of objects not in use in the arena; and
copy a live object of the plurality of objects from the arena to a heap served by a garbage collection.

### Claim 18 (depends on 17)

The computer readable device of claim 17 comprising instructions for a dispose method to reclaim memory.

### Claim 19 (depends on 17)

The computer readable device of claim 17 comprising instructions for an activate method to allocate in the arena.

### Claim 20 (depends on 17)

The computer readable device of claim 17 wherein the instructions to collect the object not in use in the arena includes instruction to perform a cleanup task.
