This is the mail archive of the java-patches@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]

Re: Patch: finalizer thread - please comment


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


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