projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edd7db7
)
undo debugging code
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 6 Apr 2010 14:27:40 +0000
(14:27 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 6 Apr 2010 14:27:40 +0000
(14:27 +0000)
rts/posix/OSMem.c
patch
|
blob
|
history
diff --git
a/rts/posix/OSMem.c
b/rts/posix/OSMem.c
index
608345b
..
f8e484f
100644
(file)
--- a/
rts/posix/OSMem.c
+++ b/
rts/posix/OSMem.c
@@
-131,9
+131,8
@@
my_mmap (void *addr, lnat size)
(errno == EINVAL && sizeof(void*)==4 && size >= 0xc0000000)) {
// If we request more than 3Gig, then we get EINVAL
// instead of ENOMEM (at least on Linux).
- barf("out of memory (requested %lu bytes)", size);
-// abort();
-// stg_exit(EXIT_FAILURE);
+ errorBelch("out of memory (requested %lu bytes)", size);
+ stg_exit(EXIT_FAILURE);
} else {
barf("getMBlock: mmap: %s", strerror(errno));
}