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]
Other format: [Raw text]

Re: [PATCH][RFA] Reap children on stack trace generation.


>>>>> "David" == David Daney <ddaney@avtrex.com> writes:

David> Casey Marshall wrote:
>>  I thought it was generally agreed that the most reliable
>> implementation for this sort of thing would be a seperate thread
>> that reaped child processes. That is, a single thread forks, execs,
>> then waits for processes.
>> 
>> In which case, wouldn't Classpath's VM reference implementation of
>> this be a better choice than fixing this version?
>> 

David> I was skimming Classpath's CVS repository.  Can you point me to
David> their equivalent of PosixProcess?  I could not find where it
David> is.

Look at vm/reference/java/lang/VMProcess.java, and its JNI
implementation in native/jni/java-lang/java_lang_VMProcess.c.

I tried an implementation based on this and the current PosixProcess,
and it does work as expected (and is really trivial to implement). I
haven't come up with a patch yet because I'm not sure how to port the
Win32 implementation over.

-- 
Casey Marshall || csm@gnu.org


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