summaryrefslogtreecommitdiff
path: root/pthread_stop_world.c
Commit message (Collapse)AuthorAgeFilesLines
* openbsd related patches (#6358)Robert Nagy2018-01-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * include netinet/in.h for in_addr_t * there is no need for an openbsd specific implementation anymore so you use the generic pthread one * signal.h is required for sigaltstack * add missing mono/utils/mono-threads.h include * there is no malloc.h on OpenBSD either * sys/socket.h is required for struct sockaddr * add support for btls on openbsd and default to with_tls=pthread as there is only emultls support which is not enough for mono * there is no need for pthread_attr_init/destroy anymore * add -Wl,-zwxneeded to LDFLAGS on OpenBSD W^X is strictly enforced by default on OpenBSD; a program can only violate it if it is located on a filesystem mounted with the wxallowed mount(8) option and has been linked with the above flag
* Use HOST_ defines instead of PLATFORM_ defines. (#5362)Zoltan Varga2018-01-221-3/+3
|
* Add toggleref support for boehm. This is line by line port of the sgen code, ↵Rodrigo Kumpera2015-06-011-0/+1
| | | | so keep them in sync.
* Remove some more mdb bits.Alex Ronne Petersen2015-05-171-34/+0
|
* Merge some Nacl/ARM changes from ↵Zoltan Varga2013-09-151-8/+11
| | | | https://github.com/igotti-google/mono/commit/65d8d68e8c81cf6adb1076de7a9425c84cab86a3.
* NaCl ARM work, first passElijah Taylor2013-09-151-0/+16
|
* NaCl runtime fixesElijah Taylor2013-09-151-5/+7
| | | | | | | - fix compile/runtime issues caused by upstream changes - add NaCl glibc support - various changes to support running tests in NaCl glibc from 'make check'
* NaCl GC improvementsElijah Taylor2013-09-151-19/+18
| | | | | | | - inline managed code implementation (add x86 test mem imm8 codegen macro for this as well) - clean up libgc NaCl code - centralize mono_nacl_gc into mini.c
* Fix altstack support in libgc by registering the bounds of the normal stack ↵Zoltan Varga2013-09-151-0/+4
| | | | and the altstack with it.
* Fix NaCl GC deadlockElijah Taylor2012-03-041-0/+4
|
* More NACL updatesElijah Taylor2012-03-041-0/+6
|
* Revert "More NACL updates"Zoltan Varga2012-03-041-6/+0
| | | | This reverts commit ee68c04c1079886c6df6be50e371e7d0a7c72c16.
* More NACL updatesElijah Taylor2012-03-041-0/+6
|
* Merged in rest of Native Client changes, untestedElijah Taylor2011-07-291-1/+157
|
* Add support for the internal boehm-gc on OpenBSDRobert Nagy2011-07-291-1/+2
|
* [android] pthread_kill cannot be used safely on androidGeoff Norton2011-07-291-0/+1
| | | | | | | | | | | | Android's fork() function does not properly update the pthread_internal_t->threadid variable to point to the tid of the fork()'d thread, and instead still points to the pid of zygote. As a result we need to track the android tid's manually since gettid() is sane, and use an alternate to pthread_kill on android Additionally, disable sgen support on android until the same work has been done there r: kumpera, vargaz
* Work around Android's pthread/kernel_id/fork bug to fix mono multithreading ↵Koushik Dutta2011-07-291-2/+26
| | | | and GC_stop_world in processes that have been forked.
* * include/gc.h: (GCEventType): Added start-stop the world events.Massimiliano Mantione2011-07-291-0/+8
| | | | | | | * pthread_stop_world.c: (GC_stop_world and GC_start_world): hooked svn path=/trunk/mono/; revision=95125
* 2007-08-22 Martin Baulig <martin@ximian.com>Martin Baulig2011-07-291-11/+5
| | | | | | | | | * pthread_stop_world.c (GC_mono_debugger_add_all_threads): Removed. (GC_mono_debugger_get_stack_ptr): New public function. svn path=/trunk/mono/; revision=84647
* 2006-05-19 Martin Baulig <martin@ximian.com>Martin Baulig2011-07-291-4/+16
| | | | | | | | | * include/gc.h: Don't include "libgc-mono-debugger.h". * pthread_support.c, pthread_stop_world.c: Include it here. svn path=/trunk/mono/; revision=60857
* 2006-05-17 Martin Baulig <martin@ximian.com>Martin Baulig2011-07-291-0/+9
| | | | | | | | * pthread-support.c, pthread-stop-world.c: Put the debugger stuff inside a `#if LIBGC_MONO_DEBUGGER_SUPPORTED' conditional. svn path=/trunk/mono/; revision=60799
* 2006-05-17 Martin Baulig <martin@ximian.com>Martin Baulig2011-07-291-17/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix a weird race condition which prevented XSP from working inside the debugger - see doc/debugger-issues.txt for details. * include/gc.h: Moved the "libgc-mono-debugger.h" #include down after the gc_pthread_redirects.h one. * include/libgc-mono-debugger.h (GCThreadFunctions): Added `thread_created' and `thread_exited'. (GC_mono_debugger_add_all_threads): New function prototype. * pthread_stop_world.c (gc_thread_vtable): Allow the vtable and any function in it be NULL; use NULL as the default vtable. (GC_mono_debugger_add_all_threads): New public function. * pthread_support.c (GC_new_thread): Use calloc() instead of GC_INTERNAL_MALLOC() to allocate the `GC_thread' structure. (GC_delete_thread): Call `gc_thread_vtable->thread_exited()'. (GC_thr_init): Call `gc_thread_vtable->thread_created()'. (GC_start_routine_head): Likewise; use calloc() instead of GC_INTERNAL_MALLOC() to allocate the `start_info'. svn path=/trunk/mono/; revision=60766
* 2005-07-05 Ben Maurer <bmaurer@ximian.com>Ben Maurer2011-07-291-0/+21
| | | | | | | | | | * pthread_stop_world.c (pthread_start_world, _GC_suspend_handler): Make sure that all threads have been started before releasing the GC_lock. Otherwise, the thread table can be corrupt in the restart handler, causing deadlocks and segfaults. svn path=/trunk/mono/; revision=46962
* 2005-05-02 Miguel de Icaza <miguel@novell.com>Miguel de Icaza2011-07-291-2/+16
| | | | | | | | * pthread_stop_world.c (GC_restart_handler, GC_suspend_handler): Wrap the original routines into methods that preserve the value of errno. Fixes #74740 svn path=/trunk/mono/; revision=43905
* Tue Jan 18 11:19:47 CET 2005 Paolo Molaro <lupus@ximian.com>Paolo Molaro2011-07-291-3/+5
| | | | | | | * pthread_stop_world.c: handle EINTR from sem_wait() call. svn path=/trunk/mono/; revision=39085
* Integration with mono_libgcguest2011-07-291-17/+54
|
* gc6.3 tarball importgc6_3Ivan Maidanski2011-07-261-20/+38
|
* gc6.3alpha4 tarball importgc6_3alpha4Ivan Maidanski2011-07-261-0/+9
|
* gc6.2 tarball importgc6_2Ivan Maidanski2011-07-261-0/+445