corda/classpath/java
Joel Dice 47503854d5 Thread.sleep(0) should not sleep indefinitely
Our implementation uses Object.wait(long) to implement Thread.sleep,
which had the side effect of interpreting zero as infinity.  However,
for Thread.sleep, zero just means zero.  I assume that doesn't mean
"don't sleep at all", though, or else the app wouldn't have called
Thread.sleep in the first place, so this patch sleeps for one
millisecond when zero is passed -- just enough to yield the processor
for a bit.  Thread.yield might be a better choice in this case, but I
assume the app would have called that directly if that's what it
wanted.
2012-08-12 11:17:59 -06:00
..
io fix ArrayIndexOutOfBoundsException when decoding a UTF-8 stream 2012-08-04 16:11:27 -06:00
lang Thread.sleep(0) should not sleep indefinitely 2012-08-12 11:17:59 -06:00
net rename "resource" URL protocol to "avian_vm_resource" 2012-08-11 19:01:32 -06:00
nio implement JNI methods needed by AWT 2012-08-11 06:56:19 -06:00
security update copyright years 2012-05-11 17:43:27 -06:00
text prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
util implement Arrays.toString(byte[]) 2012-08-04 16:08:32 -06:00