This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
IA-64 Boehm gc patch
- To: java-patches at sourceware dot cygnus dot com
- Subject: IA-64 Boehm gc patch
- From: Andrew Haley <aph at pasanda dot cygnus dot co dot uk>
- Date: 19 Jun 2000 18:36:03 -0000
This is a workaround for a bug in current IA-64 Linuxes.
Andrew.
2000-06-19 Andrew Haley <aph@cygnus.com>
* os_dep.c (read): Pass two dummy args to syscall().
Index: os_dep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/boehm-gc/os_dep.c,v
retrieving revision 1.13.4.1
diff -p -2 -c -r1.13.4.1 os_dep.c
*** os_dep.c 2000/05/12 22:51:11 1.13.4.1
--- os_dep.c 2000/06/19 12:44:58
*************** word len;
*** 2237,2241 ****
}
# else
! result = syscall(SYS_read, fd, buf, nbyte);
# endif
GC_end_syscall();
--- 2237,2244 ----
}
# else
! /* The two zero args at the end of this list are because one
! IA-64 syscall() implementation actually requires six args
! to be passed, even though they aren't always used. */
! result = syscall(SYS_read, fd, buf, nbyte, 0, 0);
# endif
GC_end_syscall();