2003-01-17 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Fri, 17 Jan 2003 14:18:48 +0000 (14:18 -0000)
committerMartin Baulig <martin@novell.com>
Fri, 17 Jan 2003 14:18:48 +0000 (14:18 -0000)
* gc.c: Raise an ExecutionEngineException instead of using g_error().

svn path=/trunk/mono/; revision=10616

mono/metadata/ChangeLog
mono/metadata/gc.c

index 293c01b7f6603c1efbb9d5a73d7dce2b55e20b5c..0bc9fecf8ab1ce82b1c0e0fac394707ae0874391 100644 (file)
@@ -1,3 +1,6 @@
+2003-01-17  Martin Baulig  <martin@ximian.com>\r
+\r
+       * gc.c: Raise an ExecutionEngineException instead of using g_error().\r
 \r
 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>\r
 \r
index a35c128bc7688492a7861d756e7f6152021a86c7..d7affd57798d24e0b0de9759b45c8e274b2fc348 100644 (file)
@@ -319,7 +319,7 @@ ves_icall_System_GCHandle_GetTargetHandle (MonoObject *obj, guint32 handle, gint
                gc_handles = new_array;
                gc_handle_types = new_type_array;
 #else
-               g_error ("No GCHandle support built-in");
+               mono_raise_exception (mono_get_exception_execution_engine ("No GCHandle support built-in"));
 #endif
        }
 
@@ -337,7 +337,7 @@ ves_icall_System_GCHandle_GetTargetHandle (MonoObject *obj, guint32 handle, gint
                if (gc_handles [idx] != (gpointer)-1)
                        GC_GENERAL_REGISTER_DISAPPEARING_LINK (&(gc_handles [idx]), obj);
 #else
-               g_error ("No weakref support");
+               mono_raise_exception (mono_get_exception_execution_engine ("No weakref support"));
 #endif
                break;
        default:
@@ -366,7 +366,7 @@ ves_icall_System_GCHandle_FreeHandle (guint32 handle)
                        GC_unregister_disappearing_link (&(gc_handles [idx]));
        }
 #else
-       g_error ("No GCHandle support");
+       mono_raise_exception (mono_get_exception_execution_engine ("No GCHandle support"));
 #endif
 
        gc_handles [idx] = (gpointer)-1;