Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2000 17:25:43 -0700 (PDT)
From:      Andrew Gallatin <gallatin@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/linux linux_machdep.c
Message-ID:  <200010170025.RAA09772@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
gallatin    2000/10/16 17:25:43 PDT

  Modified files:
    sys/i386/linux       linux_machdep.c 
  Log:
  Some linux apps, such as IBM's JDK 1.3, will attempt to mmap thread
  stacks near the top of their address space.  If their TOS is greater
  than vm_maxsaddr, vm_map_growstack() will confuse the thread stack
  with the process stack and deliver a SEGV if they attempt to grow the
  thread stack past their current stacksize rlimit.  To avoid this,
  adjust vm_maxsaddr upwards to reflect the current stacksize rlimit
  rather than the maximum possible stacksize.  It would be better to
  adjust the mmap'ed region, but some apps (again, IBM's JDK 1.3) do not
  check mmap's return value..
  
  This commit (in conjunction with setting MINSIGSTKSZ to 2048 &
  rebuilding your kernel and modules) will get IBM's JDK 1.3 working
  with FreeBSD at least well enough to run many of the example applets.
  
  Reviewed by: marcel
  Tested by:   sto@stat.duke.edu, many others on freebsd-java@
  
  Revision  Changes    Path
  1.5       +29 -1     src/sys/i386/linux/linux_machdep.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010170025.RAA09772>