1. A method of executing a method to enable memory associated with objects not referenced external to the executed method to be reclaimed upon completion of execution of the executed method, comprising: obtaining a data structure including one or more addresses of source code that creates local objects; obtaining next source code in the method; determining whether an address of the obtained next source code is in the data structure; and when the address of the obtained next source code is in the data structure including one or more addresses of source code that creates local objects, creating a local object on a local heap of memory using the source code associated with the address such that local objects are stored in memory separately from non-local objects.