Author: zoltan
Date: 2008-01-28 18:16:16 -0500 (Mon, 28 Jan 2008)
New Revision: 94194

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/appdomain.c
   trunk/mono/mono/metadata/exception.c
   trunk/mono/mono/metadata/exception.h
Log:
2008-01-29  Zoltan Varga  <[EMAIL PROTECTED]>

        * appdomain.c (ves_icall_System_AppDomain_createDomain): Add some 
FIXMEs.

        * exception.c (mono_get_exception_out_of_memory): New helper function.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2008-01-28 23:07:06 UTC (rev 94193)
+++ trunk/mono/mono/metadata/ChangeLog  2008-01-28 23:16:16 UTC (rev 94194)
@@ -1,3 +1,9 @@
+2008-01-29  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * appdomain.c (ves_icall_System_AppDomain_createDomain): Add some 
FIXMEs.
+
+       * exception.c (mono_get_exception_out_of_memory): New helper function.
+
 2008-01-28  Jonathan Chambers  <[EMAIL PROTECTED]>
 
        * marshal.c: Add support for BSTR marshalling

Modified: trunk/mono/mono/metadata/appdomain.c
===================================================================
--- trunk/mono/mono/metadata/appdomain.c        2008-01-28 23:07:06 UTC (rev 
94193)
+++ trunk/mono/mono/metadata/appdomain.c        2008-01-28 23:16:16 UTC (rev 
94194)
@@ -628,6 +628,8 @@
        data->domain = ad;
        data->setup = setup;
        data->friendly_name = mono_string_to_utf8 (friendly_name);
+       // FIXME: The ctor runs in the current domain
+       // FIXME: Initialize null_reference_ex and stack_overflow_ex
        data->out_of_memory_ex = mono_exception_from_name_domain (data, 
mono_defaults.corlib, "System", "OutOfMemoryException");
 
        if (!setup->application_base) {

Modified: trunk/mono/mono/metadata/exception.c
===================================================================
--- trunk/mono/mono/metadata/exception.c        2008-01-28 23:07:06 UTC (rev 
94193)
+++ trunk/mono/mono/metadata/exception.c        2008-01-28 23:16:16 UTC (rev 
94194)
@@ -635,6 +635,17 @@
 }
 
 /**
+ * mono_get_exception_out_of_memory:
+ *
+ * Returns: a new instance of the System.OutOfMemoryException
+ */
+MonoException *
+mono_get_exception_out_of_memory (void)
+{
+       return mono_exception_from_name (mono_get_corlib (), "System", 
"OutOfMemoryException");
+}
+
+/**
  * mono_get_exception_reflection_type_load:
  * @types: an array of types that were defined in the moduled loaded.
  * @exceptions: an array of exceptions that were thrown during the type 
loading.

Modified: trunk/mono/mono/metadata/exception.h
===================================================================
--- trunk/mono/mono/metadata/exception.h        2008-01-28 23:07:06 UTC (rev 
94193)
+++ trunk/mono/mono/metadata/exception.h        2008-01-28 23:16:16 UTC (rev 
94194)
@@ -127,6 +127,9 @@
 mono_get_exception_stack_overflow (void);
 
 MonoException *
+mono_get_exception_out_of_memory (void);
+
+MonoException *
 mono_get_exception_reflection_type_load (MonoArray *types, MonoArray 
*exceptions);
 
 G_END_DECLS

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to