GARBAGE COLLECTION HANDLER TO UPDATE OBJECT POINTERS
First Claim
1. A computer-implemented method of facilitating garbage collection within a computing environment, said computer-implemented method comprising:
- obtaining processing control by a handler executing within a processor of the computing 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 from a pre-defined location an address of the object pointer, 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
Garbage collection processing is facilitated. Based on execution of a load instruction and determining that an object pointer to be loaded indicates a location within a selected portion of memory undergoing garbage collection, processing control is obtained by a handler executing within a processor of the computing environment. The handler obtains an address of the object pointer from a pre-defined location, reads the object pointer, and determines whether the object pointer is to be modified. If the object pointer is to be modified, the handler modifies the object pointer. The handler then stores the modified object pointer in a selected location.
-
Citations
10 Claims
-
1. A computer-implemented method of facilitating garbage collection within a computing environment, said computer-implemented method comprising:
-
obtaining processing control by a handler executing within a processor of the computing 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 from a pre-defined location an address of the object pointer, 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, 10)
-
Specification