On Fri, Oct 12, 2012 at 11:47 AM, Alan Bateman <[email protected]>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)
