Multi-Section Garbage Collection
First Claim
1. A computer program product for facilitating garbage collection within a computing environment, the computer program product comprising:
- a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising;
obtaining processing control by a handler executing within a processor of the computer environment, the obtaining processing control being based on execution of a load instruction and a determination that an object pointer to be loaded indicates a location within a selected portion of memory undergoing garbage collection;
based on obtaining processing control by the handler, obtaining by the handler an image of the instruction and calculating a pointer address from the image, the address specifying a location of the object pointer;
based on obtaining the address of the object pointer, reading, by the handler, the object pointer, the object pointer indicating a location of an object pointed to by the object pointer;
determining by the handler whether the object pointer is to be modified;
modifying by the handler, based on determining the object pointer is to be modified, the object pointer to provide a modified object pointer; and
storing, based on modifying the object pointer, the modified object pointer in a selected location.
1 Assignment
0 Petitions
Accused Products
Abstract
The embodiments relate to a method for managing a garbage collection process. The method includes executing a garbage collection process on a memory block of user address space. A load instruction is run. Running the load instruction includes loading content of a storage location into a processor. The loaded content corresponds to a memory address. It is determined if the garbage collection process is being executed at the memory address. The load instruction is diverted to a process to move an object at the memory address to a location outside of the memory block in response to determining that the garbage collection process is being executed at the first memory address. The load instruction is continued in response to determining that the garbage collection process is not being executed at the memory address.
-
Citations
20 Claims
-
1. A computer program product for facilitating garbage collection within a computing environment, the computer program product comprising:
a computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising; obtaining processing control by a handler executing within a processor of the computer environment, the obtaining processing control being based on execution of a load instruction and a determination that an object pointer to be loaded indicates a location within a selected portion of memory undergoing garbage collection; based on obtaining processing control by the handler, obtaining by the handler an image of the instruction and calculating a pointer address from the image, the address specifying a location of the object pointer; based on obtaining the address of the object pointer, reading, by the handler, the object pointer, the object pointer indicating a location of an object pointed to by the object pointer; determining by the handler whether the object pointer is to be modified; modifying by the handler, based on determining the object pointer is to be modified, the object pointer to provide a modified object pointer; and storing, based on modifying the object pointer, the modified object pointer in a selected location. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
9. A computer system for facilitating garbage collection within a computing environment, the computer system comprising:
-
a memory; a processor in communication with the memory, wherein the computer system is configured to perform a method, the method comprising; obtaining processing control by a handler executing within a processor of the computer environment, the obtaining processing control being based on execution of a load instruction and a determination that an object pointer to be loaded indicates a location within a selected portion of memory undergoing garbage collection; based on obtaining processing control by the handler, obtaining by the handler an image of the instruction and calculating a pointer address from the image, the address specifying a location of the object pointer; based on obtaining the address of the object pointer, reading, by the handler, the object pointer, the object pointer indicating a location of an object pointed to by the object pointer; determining by the handler whether the object pointer is to be modified; modifying by the handler, based on determining the object pointer is to be modified, the object pointer to provide a modified object pointer; and storing, based on modifying the object pointer, the modified object pointer in a selected location. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. (canceled)
-
18. (canceled)
-
19. (canceled)
-
20. (canceled)
Specification