[kaffe] bug in jthreadedRecvfrom - patch for syscalls.c
Nektarios K. Papadopoulos
npapadop at inaccessnetworks.com
Tue Apr 12 07:16:50 PDT 2005
Hi all,
the attached patch fix a bug in jthreadedRecvfrom.
The case of NOTIMEOUT was not handled correctly, passing negative values to
waitForTimeout. The result was maximum cpu consumption.
cheers
---
nek
-------------- next part --------------
Index: kaffe/kaffevm/systems/unix-pthreads/syscalls.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/systems/unix-pthreads/syscalls.c,v
retrieving revision 1.30
diff -r1.30 syscalls.c
601c601
< if (poll_timeout > 0 || timeout == NOTIMEOUT) {
---
> if (poll_timeout > 0) {
602a603,604
> } else if (timeout == NOTIMEOUT) {
> waitForTimeout(fd, timeout);
More information about the kaffe
mailing list