1. An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a first compilation unit residing in the memory, the first compilation unit comprising a plurality of object oriented classes that are part of an object oriented program, wherein the object oriented program is defined by the combination of the first compilation unit and at least one other compilation unit; and a compiler residing in the memory and executed by the at least one processor, the compiler allocating at least one object in the first compilation unit to an invocation stack frame for a method in the first compilation unit that allocates the at least one object.