[MLton-commit] r6778

Matthew Fluet fluet at mlton.org
Tue Aug 19 17:43:58 PDT 2008


Formatting; update die message
----------------------------------------------------------------------

U   mlton/trunk/runtime/gc/virtual-memory.c

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/gc/virtual-memory.c
===================================================================
--- mlton/trunk/runtime/gc/virtual-memory.c	2008-08-20 00:43:53 UTC (rev 6777)
+++ mlton/trunk/runtime/gc/virtual-memory.c	2008-08-20 00:43:58 UTC (rev 6778)
@@ -7,14 +7,15 @@
  */
 
 void *GC_mmapAnon_safe (void *p, size_t length) {
-        void *result;
+  void *result;
 
-        result = GC_mmapAnon (p, length);
-        if ((void*)-1 == result) {
-                GC_displayMem ();
-                die ("Out of memory (2).  Unable to allocate %s bytes.\n", uintmaxToCommaString(length));
-        }
-        return result;
+  result = GC_mmapAnon (p, length);
+  if ((void*)-1 == result) {
+    GC_displayMem ();
+    die ("Out of memory.  Unable to allocate %s bytes.\n",
+         uintmaxToCommaString(length));
+  }
+  return result;
 }
 
 static inline void GC_memcpy (pointer src, pointer dst, size_t size) {




More information about the MLton-commit mailing list