1. A computer-implemented method for performing object collocation on a computer system, the method comprising: analyzing a sequence of computer instructions for object allocations and uses of the allocated objects; creating an allocation interference graph of object allocation nodes with edges indicating pairs of allocations to be omitted from collocation; coloring the allocation interference graph such that adjacent nodes are assigned different colors; creating an object allocation at a program point prior to allocations of a selected color from the allocation interference graph; storing an address associated with the created object allocation in a collocation pointer; and replacing a use of each allocation of the selected color with a use of the collocation pointer to collocate multiple objects.