This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does this program cause an NPE in LibgcjInternalFinalizerThread??


On Wed, 20 Aug 2003, David Daney wrote:
> It seems that it is possible for a thread to be inside of
> natReference.cc holding the Reference's lock when the garbage collector
> stops the thread.  If this were to happen, the garbage collector would
> block forever waiting to obtain the lock when it entered.
>
> Is this possible?

It shouldn't be possible.  You're confusing stop-world GC with
finalization; they occur separately.  Finalization is always done
asynchronously in a thread dedicated to it.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]