diff options
| author | Mike Pall <mike> | 2010-03-02 21:53:59 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2010-03-02 21:53:59 +0100 |
| commit | 20fa30b3889b611cb9e1bda72ee85b3e6c95db56 (patch) | |
| tree | c31182385d960f1017ec4a01ef8c0431296a891b /src | |
| parent | 1cda54a3ab37d4389acc6267ca31071e72a38722 (diff) | |
| download | luajit-20fa30b3889b611cb9e1bda72ee85b3e6c95db56.tar.gz luajit-20fa30b3889b611cb9e1bda72ee85b3e6c95db56.tar.bz2 luajit-20fa30b3889b611cb9e1bda72ee85b3e6c95db56.zip | |
Fix comments about 64 bit FreeBSD mmap() behavior.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_alloc.c b/src/lj_alloc.c index 0c498a7d..58887469 100644 --- a/src/lj_alloc.c +++ b/src/lj_alloc.c | |||
| @@ -172,7 +172,8 @@ static LJ_AINLINE int CALL_MUNMAP(void *ptr, size_t size) | |||
| 172 | #elif defined(__MACH__) && defined(__APPLE__) | 172 | #elif defined(__MACH__) && defined(__APPLE__) |
| 173 | #error "NYI: no support for 64 bit OSX (yet)" | 173 | #error "NYI: no support for 64 bit OSX (yet)" |
| 174 | #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) | 174 | #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
| 175 | /* FreeBSD 64 bit kernel ignores mmap() hints for lower 8GB of memory. */ | 175 | /* FreeBSD 64 bit kernel ignores mmap() hints for lower 32GB of memory. */ |
| 176 | /* See /usr/src/sys/vm/vm_mmap.c near RLIMIT_DATA. */ | ||
| 176 | #error "No support for 64 bit FreeBSD" | 177 | #error "No support for 64 bit FreeBSD" |
| 177 | #else | 178 | #else |
| 178 | #error "NYI: need an equivalent of MAP_32BIT for this 64 bit OS" | 179 | #error "NYI: need an equivalent of MAP_32BIT for this 64 bit OS" |
