This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

IA-64 Boehm gc patch


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();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]