A method, computer program product, and system are provided for
prefetching data into a cache memory. As a program is executed an object
identifier is obtained of a first object of the program. A lookup
operation is performed on a data structure to determine if the object
identifier is present in the data structure. Responsive to the object
identifier being present in the data structure, a referenced object
identifier is retrieved that is referenced by the object identifier.
Then, the data associated with the referenced object identifier is
prefetched from main memory into the cache memory.