Garbage collection control in managed code
AssigneeMicrosoft Technology Licensing, LLC
InventorsMaoni Zhang Stephens, Patrick Henri Dussud
Life of this patent
Estimating the term…
Abstract
Controlling garbage collection operations. The method includes setting up garbage collection to collect objects that are no longer in use in a managed code environment. The method further includes receiving managed code input specifying a desired quantum within which it is desired that garbage collection not be performed. The method further includes performing a computing operation to determine the desired quantum can likely be met. The method further includes running memory operations within the quantum without running the initialized garbage collection.
Claims20
In a managed code computing environment which implements garbage collection, a system for controlling garbage collection operations, the system comprising:
- one or more processors;
- and
- one or more computer-readable media, wherein the one or more computer-readable media comprise computer-executable instructions that when executed by at least one of the one or more processors cause the system to perform the following:
- initializing garbage collection to collect objects that are no longer in use for a particular managed code in a managed code environment;
- receiving managed code including receiving managed code input specifying a desired quantum within which it is desired that no garbage collection will be performed in order to at least increase the performance of the managed code within the desired quantum;
- performing a computing operation to determine the desired quantum can likely be met, the computing operation including at least evaluating an anticipated resource usage rate of the managed code within the desired quantum;
- and
- based at least on determining the desired quantum can be met, running memory operations within the quantum without running the initialized garbage collection.
The system of 9, wherein the one or more computer-readable media comprise computer-executable instructions that when executed by at least one of the one or more processors cause the system to perform the following:
- determining that there is enough memory space available to commit the memory size specified without running any garbage collection prior to committing the space, and as a result, committing at least the memory size specified in memory.
The system of 9, wherein the one or more computer-readable media comprise computer-executable instructions that when executed by at least one of the one or more processors cause the system to perform the following:
- determining that there is not enough space to commit the memory size specified without running any garbage collection;
- as a result, performing a minimum blocking garbage collection to acquire a contiguous region of memory in a small object heap, wherein the minimum blocking garbage collection allocates a new segment for a small object heap;
- determining that the contiguous region of memory is sufficient to commit the memory size specified;
- and
- as a result, committing at least the memory size specified.
In a computing environment, a computer readable storage device comprising:
- computer executable instructions that when executed by one or more processors causes a computer system to perform the following:
- initializing, at the computer system, garbage collection to collect objects that are no longer in use for a particular managed code in a managed code environment;
- receive, at the computer system, managed code including receiving managed code input specifying a desired quantum within which it is desired that no garbage collection will be performed in order to at least increase the performance of the managed code within the desired quantum;
- perform, at the computer system, a computing operation to determine the desired quantum can likely be met, the computing operation including at least evaluating an anticipated resource usage rate of the managed code within the desired quantum;
- and
- based at least on determining the desired quantum can be met, run, at the computer system, memory operations within the quantum without running the initialized garbage collection.
In a managed code computing environment which implements garbage collection, a method of controlling garbage collection operations, the method comprising:
- initializing garbage collection to collect objects that are no longer in use for a particular managed code in a managed code environment;
- receiving managed code including receiving managed code input specifying a desired quantum within which it is desired that garbage collection not be performed in order to at least increase the performance of the managed code within the desired quantum;
- performing a computing operation to determine the desired quantum can likely be met, the computing operation including at least evaluating an anticipated resource usage rate of the managed code within the desired quantum;
- and
- based at least on determining the desired quantum can be met, running memory operations within the quantum without running the initialized garbage collection.
Dependencies are inferred from the claim text.