Re: [Sablevm-developer] question about _svmf_stop_the_world()
Brought to you by:
egagnon
From: Archie C. <ar...@de...> - 2003-03-31 16:15:55
|
Prof. Etienne M. Gagnon wrote: > As for JNI threads, as you correctly deduced, they cannot prevent GC, so > a count is not needed (the count is used to awaken the GC thread and > start GC). > > I know, this deserves *at least* a technical report. I'll evetually one > that describe the whole algorithm, when I get some time. Presumably you could have simplified things by just waiting for all threads to stop (instead of just waiting for non-JNI threads) before GC'ing, but then you might have to wait an arbitrarily long time, because a JNI thread could be doing something slow, sleeping, etc. In other words, this is the only reason I can think of for doing it the way you do (and indeed a good one)... but are there any others I'm missing? Thanks, -Archie __________________________________________________________________________ Archie Cobbs * Precision I/O * http://www.precisionio.com |