RFR: 8000817: Reinstate accidentally removed sleep() from ProcessBuilder/Basic.java (original) (raw)
Martin Buchholz martinrb at google.com
Fri Oct 12 18:54:07 UTC 2012
- Previous message: RFR: 8000817: Reinstate accidentally removed sleep() from ProcessBuilder/Basic.java
- Next message: RFR: 8000817: Reinstate accidentally removed sleep() from ProcessBuilder/Basic.java
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 12, 2012 at 11:47 AM, Alan Bateman <Alan.Bateman at oracle.com>wrote:
Checking for readBytes should be better but it might still be fragile because there isn't any guarantee that the thread is in the read syscall (although the window should be a lot smaller). Although none of us like using sleep, this may be a case where we need a short sleep to improve our chances. Yup.
Sure would be nice if we could see native methods in the stacktraces, kind of like this:
java.lang.Thread.State: RUNNABLE at (C/C++) __kernel_vsyscall( ()) at (C/C++) readBytes( (jre/lib/i386/libjava.so)) at (C/C++) Java_java_io_FileInputStream_readBytes( (jre/lib/i386/libjava.so)) at java.io.FileInputStream.readBytes(Native Method)
- Previous message: RFR: 8000817: Reinstate accidentally removed sleep() from ProcessBuilder/Basic.java
- Next message: RFR: 8000817: Reinstate accidentally removed sleep() from ProcessBuilder/Basic.java
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]