摘要 |
Techniques for transparently registering non-memory resources (413) used by a program with a garbage collector (401, 601) so that the non-memory resources can be freed when the program is finished using them. The techniques automatically determine from the program that the execution will use a resource and then automatically modify the program's behavior so that the resource is registered (603). When the program is finished with the resource, it can be determined from the registry whether the resource must be freed.
|