[ENH] Remove unused temp name cache in CompiledMethod
Ben Schroeder
bschroeder at procro.com
Thu Jan 6 15:11:58 UTC 2005
Hi everyone,
I recently ran into some trouble with CompiledMethod's TempNameCache. I
investigated and found out that the cache is no longer read. The
attached changeset removes the cache.
I was doing some experiments with image segments. The cache was holding
onto the most recently compiled method. This caused problems when I
wanted to include the method in my segment - it would stay as an "out
pointer".
This changeset removes the cache.
>From the preamble:
"Change Set: RemoveUnusedTempNameCache-bvs
Date: 6 January 2005
Author: Benjamin Schroeder
CompiledMethod keeps a cache of temporary names for a single
CompiledMethod instance. The cache is set after compilation and during
certain debugger operations. However, it is never read.
Keeping the cache creates an extra reference to the most recently
compiled method. This can be a problem in certain obscure situations,
such as including the method in an image segment.
This changeset removes the cache."
Regards,
Ben Schroeder
<<RemoveUnusedTempNameCache-bvs.1.cs.gz>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RemoveUnusedTempNameCache-bvs.1.cs.gz
Type: application/x-gzip
Size: 1909 bytes
Desc: RemoveUnusedTempNameCache-bvs.1.cs.gz
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050106/48963b5b/RemoveUnusedTempNameCache-bvs.1.cs.bin
More information about the Squeak-dev
mailing list
|