Re: Object Reference counting idea.
- From: Michael Meeks <michael helixcode com>
- To: Elliot Lee <sopwith redhat com>
- Cc: gnome-components-list gnome org
- Subject: Re: Object Reference counting idea.
- Date: Wed, 11 Oct 2000 08:09:37 -0400 (EDT)
Hi Elliot,
On Tue, 10 Oct 2000, Elliot Lee wrote:
> This (if you unref more times than you ref, things crash) isn't a
> problem that needs to be solved, assuming your object impl deactivates
> the servant on the unref that takes the refcount to zero.
Somehow I disagree, or don't understand your point; consider this
scenario:
Local Remote
ref
ref
ref
ref
unref
unref
unref <-- Erroneous unref. [3]
unref <-- Servant destroyed
unref <-- crash here.
There are clearly multiple variations and degrees of pathology
here, there is no reason why we can't loop at [3] for ever ( having killed
the Local object ) without issue. I am not however primarily concerned
with the stability of the ( broken ) script.
> The main problem is that a client can crash while holding a refcount,
> and there is no way to know whether or not somebody is 'making use of'
> an objref.
This is a far more intractible problem, what I want to solve is
scripts grabbing an interface reference and then unreffing it repeatedly
until stuff gets badly screwed in the server ( which may be serving lots
of clients like the panel ).
Regards,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]