Pass the --clr-memory-model flag on the command line instead of MONO_DEBUG so its...
[mono-project.git] / mono / metadata / sgen-toggleref.h
bloba2d5ce2aa7902a885811fc5ecd6a55fa9635dca5
1 /**
2 * \file
3 * toggleref support for sgen
5 * Copyright 2011 Xamarin, Inc.
7 * Author:
8 * Rodrigo Kumpera (kumpera@gmail.com)
9 *
10 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
13 #ifndef _MONO_SGEN_TOGGLEREF_H_
14 #define _MONO_SGEN_TOGGLEREF_H_
16 #include <mono/utils/mono-publib.h>
18 /* GC toggle ref support */
20 typedef enum {
21 MONO_TOGGLE_REF_DROP,
22 MONO_TOGGLE_REF_STRONG,
23 MONO_TOGGLE_REF_WEAK
24 } MonoToggleRefStatus;
26 MONO_API void mono_gc_toggleref_register_callback (MonoToggleRefStatus (*proccess_toggleref) (MonoObject *obj));
27 MONO_API MONO_RT_EXTERNAL_ONLY void mono_gc_toggleref_add (MonoObject *object, mono_bool strong_ref);
29 #endif