freebsd-dev/sys/i386
Andrew Gallatin 242fae60f0 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@
2000-10-17 00:25:43 +00:00
..
apm Add Timer device driver for power management events. 2000-09-14 22:34:57 +00:00
bios Add Timer device driver for power management events. 2000-09-14 22:34:57 +00:00
conf Duh! LINT is called NOTES these days. 2000-10-14 08:40:47 +00:00
i386 Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
ibcs2 Initiate deorbit burn sequence for <machine/console.h>. 2000-10-08 21:34:00 +00:00
include Add types and prototypes. 2000-10-16 19:49:30 +00:00
isa Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
linux Some linux apps, such as IBM's JDK 1.3, will attempt to mmap thread 2000-10-17 00:25:43 +00:00
pci Remove debug writes introduced in prior commit 2000-10-16 07:31:13 +00:00
svr4 Cleanup after repo copy of sys/svr4 to sys/compat/svr4. 2000-08-31 22:54:09 +00:00
Makefile Update tags directive to reflect the new location of soft updates 2000-07-04 00:18:43 +00:00