X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fnull-gc.c;h=7f904f3dec7b08970d31c3b3f6161c8489aed3b7;hb=ef0ddf45c3081e799edcb4e95770186514b80cf1;hp=1d0b0217a5146e77ca4e66cf5cc5058d76fb60a7;hpb=c838305c8e104a2cb1079697d1f58e3497ba9474;p=mono.git diff --git a/mono/metadata/null-gc.c b/mono/metadata/null-gc.c index 1d0b0217a51..7f904f3dec7 100644 --- a/mono/metadata/null-gc.c +++ b/mono/metadata/null-gc.c @@ -4,12 +4,13 @@ * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com) * Copyright 2004-2011 Novell, Inc (http://www.novell.com) * Copyright 2011 Xamarin, Inc (http://www.xamarin.com) + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include "config.h" #include #include -#include +#include #include #include #include @@ -234,6 +235,18 @@ mono_gc_alloc_string (MonoVTable *vtable, size_t size, gint32 len) return obj; } +void* +mono_gc_alloc_mature (MonoVTable *vtable, size_t size) +{ + return mono_gc_alloc_obj (vtable, size); +} + +void* +mono_gc_alloc_pinned_obj (MonoVTable *vtable, size_t size) +{ + return mono_gc_alloc_obj (vtable, size); +} + void mono_gc_wbarrier_set_field (MonoObject *obj, gpointer field_ptr, MonoObject* value) { @@ -518,7 +531,7 @@ BOOL APIENTRY mono_gc_dllmain (HMODULE module_handle, DWORD reason, LPVOID reser #endif guint -mono_gc_get_vtable_bits (MonoClass *class) +mono_gc_get_vtable_bits (MonoClass *klass) { return 0; } @@ -528,12 +541,6 @@ mono_gc_register_altstack (gpointer stack, gint32 stack_size, gpointer altstack, { } -gboolean -mono_gc_set_allow_synchronous_major (gboolean flag) -{ - return TRUE; -} - gboolean mono_gc_is_null (void) {