Declaration of lifetime of resource reference
AssigneeMicrosoft Corporation
InventorsJared Porter Parsons, John J. Duffy, G. Shon Katzenberger, Alexander Daniel Bromfield, Yevgeniy Rozenfeld
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsJared Porter Parsons, John J. Duffy, G. Shon Katzenberger, Alexander Daniel Bromfield, Yevgeniy Rozenfeld
Estimating the term…
A language extension that advances safety in system programming by specifying a lifetime of a reference that represents a resource. In accordance with the language extension, the lifetime references a particular scope in a manner that the compiler generates computer-executable instructions that enforce the lifetime of the reference to be a function of (e.g., no longer than) the lifetime of the particular scope. Accordingly, the resource lifetime may be specified in advance to have a particular scope. This helps in performing resource management as typical managed language programs can allow resources to exist indefinitely. Furthermore, because the resources have a defined finite lifetime, they might be more conveniently allocated on a stack, instead of on a heap, for much more efficient processing.
A computer-implemented method for declaring that a particular reference in a software program has a finite lifetime, the method comprising:
A computer program product comprising one or more computer-readable storage media having thereon computer-executable instructions that are structured, such that, when executed by one or more processors of a computing system, cause the computing system to execute a compiler that is configured to perform the following upon encountering an annotation in a computer program, the annotation associating the reference with a particular scope:
A system comprising:
Dependencies are inferred from the claim text.