undo debugging code
authorSimon Marlow <marlowsd@gmail.com>
Tue, 6 Apr 2010 14:27:40 +0000 (14:27 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 6 Apr 2010 14:27:40 +0000 (14:27 +0000)
rts/posix/OSMem.c

index 608345b..f8e484f 100644 (file)
@@ -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));
        }