* UnixMarshal.cs (CreateExceptionForError): Don't map ENOMEM to
authorJonathan Pryor <jpryor@novell.com>
Tue, 3 Jan 2006 16:19:46 +0000 (16:19 -0000)
committerJonathan Pryor <jpryor@novell.com>
Tue, 3 Jan 2006 16:19:46 +0000 (16:19 -0000)
    System.OutOfMemoryException.  OOME should be reserved for use by the CLR.
    Return a UnixIOException instead (default behavior).

svn path=/trunk/mcs/; revision=55013

mcs/class/Mono.Posix/Mono.Unix/ChangeLog
mcs/class/Mono.Posix/Mono.Unix/UnixMarshal.cs

index ff166910a5bc9587ec9c2e0cc5359ac9de60f811..0d55a3e28686608c328d9cc6222d97ccc207b6de 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-03  Jonathan Pryor <jonpryor@vt.edu>
+
+       * UnixMarshal.cs (CreateExceptionForError): Don't map ENOMEM to
+         System.OutOfMemoryException.  OOME should be reserved for use by the CLR.
+         Return a UnixIOException instead (default behavior).
+
 2006-01-02  Jonathan Pryor <jonpryor@vt.edu>
 
        * StdioFileStream.cs: Shut up FxCop - add a GC.KeepAlive to 
index 092adcd06de637500564916a080780baedf41801..494eee41f7b0ee652c49476f25cdbdcd1f21a126 100644 (file)
@@ -420,7 +420,6 @@ namespace Mono.Unix {
                                case Native.Errno.EPERM:         return new InvalidOperationException (message, p);
 
                                case Native.Errno.ENOEXEC:       return new InvalidProgramException (message, p);
-                               case Native.Errno.ENOMEM:        return new OutOfMemoryException (message, p);
                                case Native.Errno.EOVERFLOW:     return new OverflowException (message, p);
                                case Native.Errno.ENAMETOOLONG:  return new PathTooLongException (message, p);
                                default: /* ignore */     break;