# US 9,354,924 B2 · Providing distributed array containers for programming objects

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

- Number: US 9,354,924 B2
- Document ID: US9354924B2
- Status: Granted
- Kind: B2
- Application number: 14/520,777
- Filed: 2014-10-22
- Published: 2015-02-05
- Granted: 2016-05-31
- Earliest claimed: 2013-03-14
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Richard A. Warren; Sudarshan Raghunathan; Adam P. Jenkins
- Web page: https://patentgrep.com/patent/US9354924B2

## CPC

- G06F 8/61: Installation
- G06F 9/465: {Distributed object oriented systems (remote method invocation [RMI] G06F9/548)}
- G06F 2209/463: Naming
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments are directed to establishing registration objects for distributed processes, to managing memory on worker processes of a distributed software application and to using object serialization to communicate references to shim objects. In one scenario, a computer system accesses distributed process instances in a distributed runtime and creates a registration object for each of the process instances in the distributed runtime. The registration object includes a key value pair, where the key includes a unique identifier (ID) that identifies a distributed array instance associated with the distributed process, and the value includes a reference to a local portion of the distributed array instance. The computer system then maintains a mapping between the unique ID and the distributed array instance using the registration object. As such, the key value refers to the local portion of the same distributed array instance on each distributed process of the distributed runtime.

## Claims

### Claim 1

A method, implemented at a computer system that includes one or more hardware processors, for managing memory on worker processes of a distributed software application, including the following:
determining that a distributed software function has finished processing, the distributed software function including one or more shim objects instantiated on a master rank and one or more worker ranks of the distributed application, the shim objects being configured to store a reference to a local object instance of a distributed array object, the reference including a unique identifier for the distributed array object;
upon determining that the distributed software application has finished processing, allowing the shim objects instantiated on the worker ranks to go out of scope; and
retaining the distributed object reference to prevent garbage collection from recovering local data storage associated with the distributed software function.

### Claim 2 (depends on 1)

The method of claim 1, wherein the shim object includes one or more portions of metadata describing at least one of global shape and distribution information for the distributed array object.

### Claim 3 (depends on 1)

The method of claim 1, wherein the shim objects allow communication among one or more ranks of the distributed software function.

### Claim 4 (depends on 1)

The method of claim 1, wherein the shim objects are implemented in a thin-client-dependent environment.

### Claim 5 (depends on 1)

The method of claim 1, wherein the shim objects comprise classes, allowing users to specify which serializers and deserializers are to be used in communication.

### Claim 6 (depends on 1)

The method of claim 1, further comprising updating one or more of the references upon determining that the reference's corresponding data location has changed due to garbage collection.

### Claim 7 (depends on 1)

The method of claim 1, further comprising using the unique identifier for the distributed array object to serialize the distributed array object and convert the distributed array object into a key.

### Claim 8 (depends on 7)

The method of claim 7, further comprising reconstituting the local object instance of the distributed array object based on the key.

### Claim 9

A computer program product comprising one or more hardware storage devices having stored thereon computer-executable instructions that, when executed by one or more processors of a computing system, cause the computing system manage memory on worker processes of a distributed software application, including the following:
determining that a distributed software function has finished processing, the distributed software function including one or more shim objects instantiated on a master rank and one or more worker ranks of the distributed application, the shim objects being configured to store a reference to a local object instance of a distributed array object, the reference including a unique identifier for the distributed array object;
upon determining that the distributed software application has finished processing, allowing the shim objects instantiated on the worker ranks to go out of scope; and
retaining the distributed object reference to prevent garbage collection from recovering local data storage associated with the distributed software function.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the shim object includes one or more portions of metadata describing at least one of global shape and distribution information for the distributed array object.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the shim objects allow communication among one or more ranks of the distributed software function.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the shim objects are implemented in a thin-client-dependent environment.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein the shim objects comprise classes, allowing users to specify which serializers and deserializers are to be used in communication.

### Claim 14 (depends on 9)

The computer program product of claim 9, further comprising updating one or more of the references upon determining that the reference's corresponding data location has changed due to garbage collection.

### Claim 15

A computer system comprising the following:
one or more hardware processors;
system memory;
one or more computer-readable storage media having stored thereon computer-executable instructions that, when executed by the one or more processors, causes the computing system to perform a method for managing memory on worker processes of a distributed software application, the method comprising the following:
determining that a distributed software function has finished processing, the distributed software function including one or more shim objects instantiated on a master rank and one or more worker ranks of the distributed application, the shim objects being configured to store a reference to a local object instance of a distributed array object, the reference including a unique identifier for the distributed array object;
upon determining that the distributed software application has finished processing, allowing the shim objects instantiated on the worker ranks to go out of scope; and
retaining the distributed object reference to prevent garbage collection from recovering local data storage associated with the distributed software function.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the shim object includes one or more portions of metadata describing at least one of global shape and distribution information for the distributed array object.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the shim objects allow communication among one or more ranks of the distributed software function.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the shim objects are implemented in a thin-client-dependent environment.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein the shim objects comprise classes, allowing users to specify which serializers and deserializers are to be used in communication.

### Claim 20 (depends on 15)

The computer system of claim 15, further comprising updating one or more of the references upon determining that the reference's corresponding data location has changed due to garbage collection.
