2 * Copyright (c) 1994 by Xerox Corporation. All rights reserved.
3 * Copyright (c) 1996 by Silicon Graphics. All rights reserved.
4 * Copyright (c) 1998 by Fergus Henderson. All rights reserved.
5 * Copyright (c) 2000-2009 by Hewlett-Packard Development Company.
8 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
9 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
11 * Permission is hereby granted to use or copy this program
12 * for any purpose, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
18 #ifndef GC_DARWIN_STOP_WORLD_H
19 #define GC_DARWIN_STOP_WORLD_H
21 #if !defined(GC_DARWIN_THREADS)
22 # error darwin_stop_world.h included without GC_DARWIN_THREADS defined
25 #include <mach/mach.h>
26 #include <mach/thread_act.h>
28 struct thread_stop_info {
29 mach_port_t mach_thread;
32 struct GC_mach_thread {
34 int already_suspended;