This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: finalizer thread - please comment
- To: tromey at redhat dot com
- Subject: Re: Patch: finalizer thread - please comment
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Sat, 6 Oct 2001 11:56:07 +1200
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
On Saturday, October 6, 2001, at 03:10 AM, Tom Tromey wrote:
> I've appended the new patch. Please tell me what you think.
It looks like user code that calls Runtime.runFinalization() is still
going to do the wrong thing, because finalization will then be run in
the current thread. I think its sufficient to have runFinalization just
notify the finalization thread so that it wakes up and does some work,
this seems to be what other JVMs do.
And calling _Jv_GCInitializeFinalizers from posix-threads.cc doesn't
seem right, that should be in _Jv_CreateJavaVM too?
regards
Bryce