On revoking access to the target of a proxy

David Bruant bruant.d at gmail.com
Fri Aug 3 14:12:42 PDT 2012


Le 03/08/2012 17:08, Sam Tobin-Hochstadt a écrit :
> On Fri, Aug 3, 2012 at 5:03 PM, David Bruant <bruant.d at gmail.com> wrote:
>> With the current design, there is no way to cut the access to the target and
>> enable its garbage collection because the target is an internal property of
>> the proxy. It means that malicious or buggy code keeping a reference to the
>> proxy keeps a reference to the target.
> Can't this be implemented using Tom & Mark's shadow target technique,
What do you call the shadow target technique? Can it be implemented with 
direct proxies?

> plus explicit nulling of portions of the shadow target (since that is
> kept alive by the proxy)?
nulling is not possible on frozen objects. So partially yes, it depends 
on the cases for that part.

David


More information about the es-discuss mailing list