summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2000-10-17 00:25:43 +0000
committergallatin <gallatin@FreeBSD.org>2000-10-17 00:25:43 +0000
commitf891ccb78e8c209dd34b173b5293831c84961b0f (patch)
tree4ca34e079a89d0ee3a2d7f8cae495a53715321be /sbin
parented55174b250c1523da56176105464f395a36c5bb (diff)
downloadFreeBSD-src-f891ccb78e8c209dd34b173b5293831c84961b0f.zip
FreeBSD-src-f891ccb78e8c209dd34b173b5293831c84961b0f.tar.gz
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@
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud