-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lock assertion violation in GC_try_to_collect_inner on OS X
(fix of commit b7b1004) Issue #583 (bdwgc). This happens only in the multi-threaded collector with assertions on and malloc redirection if GC_enable_incremental() is called. * include/private/gc_priv.h [MPROTECT_VDB && DARWIN]: Include pthread.h (wrapped into EXTERN_C_END/BEGIN). * include/private/gc_priv.h [MPROTECT_VDB && DARWIN && THREADS] (GC_inner_pthread_create): Declare (as GC_INNER function). * include/private/gc_priv.h [MPROTECT_VDB && DARWIN && !THREADS] (GC_inner_pthread_create): Define as macro (redirecting to pthread_create). * os_dep.c [MPROTECT_VDB && DARWIN]: Do not include pthread.h. * os_dep.c [MPROTECT_VDB && DARWIN] (pthread_create): Do not undefine. * os_dep.c [MPROTECT_VDB && DARWIN] (GC_dirty_init): Call GC_inner_pthread_create() instead of pthread_create(). * pthread_support.c [MPROTECT_VDB && DARWIN] (GC_inner_pthread_create): Define function (call INIT_REAL_SYMS() and REAL_FUNC(pthread_create)).
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters