1. A method of tracking references to objects of an object-oriented programming environment, said method comprising: providing a reference stack associated with an execution stack; determining whether at least one value should be stored in said reference stack; and storing said at least one value in said reference stack when said determining determines that said at least one object should be stored in said reference stack.