2 * sgen-os-coop.c: SGen Cooperative backend support.
5 * João Matos (joao.matos@xamarin.com)
6 * Copyright (C) 2015 Xamarin Inc
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License 2.0 as published by the Free Software Foundation;
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License 2.0 along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include "sgen/sgen-gc.h"
28 #include "sgen/sgen-archdep.h"
29 #include "sgen/sgen-protocol.h"
30 #include "metadata/object-internals.h"
31 #include "metadata/gc-internals.h"
34 #if defined(USE_COOP_GC)
37 sgen_resume_thread (SgenThreadInfo *info)
44 sgen_suspend_thread (SgenThreadInfo *info)
51 sgen_wait_for_suspend_ack (int count)
55 /* LOCKING: assumes the GC lock is held */
57 sgen_thread_handshake (BOOL suspend)
69 mono_gc_get_suspend_signal (void)
75 mono_gc_get_restart_signal (void)