changeset 516:36e8a25a0058

Summary: Use current datasize rlimit instead of max for OpenBSD
author kurt
date Wed, 14 Jan 2009 11:53:48 -0500
parents 934aeb6514ae
children f337b3e25cbf
files src/os/bsd/vm/os_bsd.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/os_bsd.cpp	Tue Jan 13 22:57:37 2009 -0500
+++ b/src/os/bsd/vm/os_bsd.cpp	Wed Jan 14 11:53:48 2009 -0500
@@ -354,10 +354,10 @@
 #ifdef __OpenBSD__
   {
        // limit _physical_memory memory view on OpenBSD since
-       // datasize maximum limits us anyway.
+       // datasize rlimit restricts us anyway.
        struct rlimit limits;
        getrlimit(RLIMIT_DATA, &limits);
-       _physical_memory = MIN2(_physical_memory, (julong)limits.rlim_max);
+       _physical_memory = MIN2(_physical_memory, (julong)limits.rlim_cur);
   }
 #endif
 }