| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 223ce4fdf from 'master')
* typd_mlc.c (GC_calloc_explicitly_typed): If descr_type is NO_MEM then
return the result of GC_get_oom_fn()(lb) instead of NULL.
|
|
|
|
|
|
|
| |
(fix of commit 6c1a92445)
* fnlz_mlc.c [ENABLE_DISCLAIM] (GC_finalized_disclaim): Fix old
function name in comment ("GC_disclaim_and_reclaim").
|
| |
|
|
|
|
|
|
| |
* mark.c [GC_ATOMIC_UNCOLLECTABLE] (GC_obj_kinds): Remove misleading
comment ("add length to descr") for FALSE value (for ok_relocate_descr
field).
|
|
|
|
|
| |
* include/private/gc_pmark.h [ENABLE_TRACE] (TRACE_TARGET): Do not
dereference GC_trace_addr if it is not a pointer to a heap object.
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 9b8cdbd25 from 'release-8_0')
* malloc.c (GC_generic_malloc_inner): Fix a typo
("to directly allocate") in comment.
|
|
|
|
|
|
|
|
|
|
|
| |
EXTRA_BYTES should be always counted when updating GC_bytes_allocd.
* malloc.c (GC_generic_malloc_inner): Define lb_adjusted local
variable and set it to ADD_SLOP(lb); increment GC_bytes_allocd by
lb_adjusted instead of lb (in case of a non-small object).
* malloc.c [DBG_HDRS_ALL || GC_GCJ_SUPPORT || !GC_NO_FINALIZATION]
(GC_generic_malloc_inner_ignore_off_page): Change type of lb_adjusted
local variable from word to size_t.
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit a04c55a5b from 'master')
* dbg_mlc.c (store_old): Fix name in comment ("GC_register_finalizer").
* include/gc.h (GC_java_finalization): Fix name in comment
("GC_register_finalizer_unreachable").
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 6c4bc6337 from 'release-7_6')
* cord/tests/cordtest.c (test_basics): Adjust indentation of
CORD_next() call inside while loop.
|
| |
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 923a30202 from 'master')
* tests/test.c (run_one_test): Do not call GC_malloc(0) inside
GC_printf argument.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 5a8c02852 from 'master')
A finished thread may still stay in GC_threads, but it is no longer
considered during a garbage collection phase, thus
GC_thread_is_registered() should return false in such a case.
* include/gc.h [GC_THREADS] (GC_thread_is_registered): Refine
comment (describe the case when the thread is marked as finished).
* pthread_support.c (GC_thread_is_registered): Return FALSE if
me->flags&FINISHED.
* win32_threads.c (GC_thread_is_registered): Return FALSE if
KNOWN_FINISHED(me).
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 1a8160ea8 from 'master')
* pthread_support.c (GC_start_rtn_prepare_thread): Fix a typo in
comment ("used in").
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 272e61e46 from 'master')
* include/gc_pthread_redirects.h [!GC_PTHREAD_REDIRECTS_ONLY
&& !GC_NO_PTHREAD_SIGMASK && !(GC_PTHREAD_SIGMASK_NEEDED || _BSD_SOURCE
|| _GNU_SOURCE || _POSIX_C_SOURCE>=199506L || _XOPEN_SOURCE>=500)]
(GC_NO_PTHREAD_SIGMASK): Define macro.
|
| |
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 499020404 from 'release-8_0')
* docs/scale.html (The Parallel Marking Algorithm): Fix a typo
("our approach").
|
|
|
|
| |
* ChangeLog (7.0alpha9): Fix a typo ("STATIC").
|
|
|
|
|
|
|
| |
* os_dep.c [!OS2 && !MSWIN32 && !MSWINCE && !CYGWIN32 && !AMIGA
&& !OPENBSD && !PCR && MACOS && !THINK_C && __MWERKS__ && !__POWERPC__
&& __option(far_data)] (GC_register_data_segments): Fix typo in
comment ("the").
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit d2b01b2d0 from 'release-8_0')
* include/gc_disclaim.h (GC_finalized_malloc): Add comment that the
debugging version of the function is missing.
* tests/disclaim_bench.c (testobj_new, main): Use GC_malloc() instead
of GC_MALLOC().
* tests/disclaim_bench.c (testobj_new): Use
GC_register_finalizer_no_order() instead of
GC_REGISTER_FINALIZER_NO_ORDER().
|
|
|
|
|
|
| |
(fix of commit c7047ca9e)
* misc.c (GC_set_oom_fn): Move GC_ASSERT() to be after DCL_LOCK_STATE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 7ce5cbf27 from 'release-7_6')
* ChangeLog (4.3): Fix typo ("it's").
* doc/README.amiga (GC_AMIGA_GC): Likewise.
* extra/AmigaOS.c (GC_amiga_allocwrapper_any): Fix typo in comment
("it's").
* malloc.c (GC_free): Likewise.
* new_hblk.c (GC_build_fl): Likewise.
* os_dep.c [DATASTART_USES_BSDGETDATASTART] (GC_FreeBSDGetDataStart):
Likewise.
* reclaim.c (GC_start_reclaim): Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 1bbd7b59e from 'release-7_6')
* pthread_support.c [CAN_HANDLE_FORK && (GC_DARWIN_THREADS
|| THREAD_LOCAL_ALLOC && !USE_CUSTOM_SPECIFIC)]
(GC_remove_all_threads_but_me): Rename GC_free_internal to
GC_free_inner in comments.
* win32_threads.c [CAN_HANDLE_FORK && THREAD_LOCAL_ALLOC
&& !USE_CUSTOM_SPECIFIC] (GC_remove_all_threads_but_me): Likewise.
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 78803b213 from 'release-7_6')
* tests/test.c [DBG_HDRS_ALL] (run_one_test): Set y to fail_proc1
right before its use; call CHECK_OUT_OF_MEMORY() before each GC_size()
invocation; call CHECK_OUT_OF_MEMORY() before GC_base().
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit c716d77bd from 'release-8_2')
* ChangeLog: Fix typo ("GC_allochblk_nth").
* include/private/gc_priv.h (GC_alloc_large): Fix typo in comment
("GC_allochblk_nth").
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit afc84d032 from 'release-7_6')
GC_nacl_shutdown_gc_thread() should be called (and value of
GC_nacl_gc_thread_self should be cleared) on thread termination even
for non-detached threads. Thus, GC_nacl_initialize_gc_thread() should
be called (and value of GC_nacl_gc_thread_self should be set)
additionally if the thread is registered from its destructor.
* pthread_support.c [NACL] (GC_delete_thread): Do not call
GC_nacl_shutdown_gc_thread() and do not clear GC_nacl_gc_thread_self.
* pthread_support.c [NACL] (GC_unregister_my_thread_inner): Call
GC_nacl_shutdown_gc_thread() and clear value of GC_nacl_gc_thread_self
(after GC_destroy_thread_local).
* pthread_support.c [NACL] (GC_register_my_thread): If KNOWN_FINISHED
then set GC_nacl_gc_thread_self to me and call
GC_nacl_initialize_gc_thread().
|
|
|
|
|
|
|
| |
(a cherry-pick of commit ee779ffc5 from 'master')
* pthread_start.c [GC_PTHREADS && !GC_WIN32_THREADS && NACL]
(GC_pthread_start_inner): Call GC_thread_exit_proc(me) before return.
|
| |
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit e77f056b9 from 'release-7_6')
* pthread_support.c [PARALLEL_MARK]
(GC_start_mark_threads_inner): Do not pass errno value to WARN() call
(because pthread_create does not set errno).
|
|
|
|
|
| |
* doc/README.macros (REDIRECT_REALLOC): Fix typo ("realloc" w/o GC_
prefix).
|
|
|
|
|
|
| |
(a cherry-pick of commit 99536f178 from 'release-8_2')
* pthread_support.c (GC_thr_init): Cast WARN argument to signed_word.
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 397e06470 from 'master')
* Makefile.direct (OBJS): Add comment.
* Makefile.direct (libalphagc.so): Add dependency on dyn_load.o.
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 4b101ee06 from 'release-8_2')
* win32_threads.c [THREAD_LOCAL_ALLOC] (GC_register_my_thread_inner):
Update comment; do not call GC_init_thread_local().
* win32_threads.c [THREAD_LOCAL_ALLOC] (GC_register_my_thread): Call
GC_init_thread_local() both after GC_register_my_thread_inner() and
GC_record_stack_base() calls (in case of return GC_SUCCESS).
* win32_threads.c [GC_PTHREADS && THREAD_LOCAL_ALLOC]
(GC_pthread_start_inner): Call GC_init_thread_local().
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 0d19067c3 from 'master')
Now, if GC_no_dls then GC_is_visible does not cause registration of
dynamic libraries.
* ptr_chck.c [!THREADS && (DYNAMIC_LOADING || MSWIN32 || MSWINCE
|| CYGWIN32 || PCR)] (GC_is_visible): Do not call
GC_register_dynamic_libraries() followed by GC_is_static_root()
if GC_no_dls.
|
|
|
|
|
|
|
|
|
| |
* pthread_support.c (pthread_create): Call ABORT() if
pthread_attr_getdetachstate() has failed.
* win32_threads.c [GC_PTHREADS] (GC_pthread_create): Likewise.
* win32_threads.c [GC_PTHREADS] (start_info.detached): Change type from
GC_bool to int (to match the type of the 2nd argument of
pthread_attr_getdetachstate).
|
|
|
|
|
|
|
|
| |
(fix of commit 8e6460052)
* misc.c [!DONT_USE_ATEXIT && THREADS] (GC_exit_check): Wrap each
update of GC_in_thread_creation into LOCK/UNLOCK (but not GC_gcollect
call); add comment.
|
|
|
|
| |
* win32_threads.c (dll_thread_table): Fix a typo ("use") in comment.
|
|
|
|
|
|
|
| |
(fix of commit 6713d8473)
* win32_threads.c [GC_WINMAIN_REDIRECT]
(GC_waitForSingleObjectInfinite): Add GC_CALLBACK.
|
|
|
|
|
| |
* dyn_load.c [SOLARISDL || !LINUX]: Rename USE_PROC to
USE_PROC_FOR_LIBRARIES in comment.
|
|
|
|
|
|
|
|
|
|
| |
(fix of commit 2fe9e9d55)
Break the loop (over dll_thread_table elements) in GC_lookup_pthread
when pthread_id matches id (provided the element is in use).
* win32_threads.c [GC_PTHREADS && !GC_NO_THREADS_DISCOVERY]
(GC_lookup_pthread): Inverse THREAD_EQUAL() condition in for statement.
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 5aca84bb6 from 'release-7_6')
* include/private/gcconfig.h [(mips || __mips || _mips) && !__TANDEM
&& !LINUX && !EWS4800 && !NETBSD && !OPENBSD] (IRIX5): Do
not define if _WIN32_WCE or __CEGCC__ or __MINGW32CE__.
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 8d2e82bcf from 'master')
* include/private/gcconfig.h [mips || __mips || _mips] (MIPS): Do not
redefine if __TANDEM.
* include/private/gcconfig.h [(mips || __mips || _mips) && !LINUX
&& !EWS4800 && !NETBSD && !OPENBSD] (IRIX5): Do not define if __TANDEM.
|
|
|
|
|
|
|
|
|
|
|
| |
Bump gc version to 7.4.22
* ChangeLog (7.4.22): Set release date.
* Makefile.am (LIBGC_VER_INFO): Increment revision (change version
info of libgc.so to 3:7:2).
* README.md: Bump micro version (to 7.4.22).
* configure.ac (AC_INIT): Likewise.
* include/gc_version.h (GC_TMP_VERSION_MICRO): Likewise.
|
| |
|
| |
|
|
|
|
|
|
|
| |
(a cherry-pick of commit f95d88adc from 'release-8_0')
* doc/tree.html (A picture): Change type of hb_obj_kind (of hblkhdr)
from ushort to uchar; add hb_flags field right after hb_obj_kind.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(a cherry-pick of commit 96c09ef22 from 'release-8_0')
Issue #184 (bdwgc).
* include/private/gcconfig.h [MPROTECT_VDB && (__GLIBC__<2
|| __GLIBC__==2 && __GLIBC_MINOR__<2)]: Move error directive from
os_dep.c.
* include/private/gcconfig.h [FREEBSD && __GLIBC__] (SUNOS5SIGS):
Define.
* os_dep.c [MPROTECT_VDB && !DARWIN && FREEBSD] (GC_dirty_init): Do not
check __GLIBC__.
|
|
|
|
|
|
|
| |
This reverts commit 2a420e272d9f036130fbf95a359fb4140ff11da3.
The reason: SUNOS5SIGS is defined for HP/UX and some flavors of
FreeBSD.
|
|
|
|
|
| |
* doc/README.macros (SUNOS5SIGS): Update documentation (mention
FreeBSD to match that in gcconfig.h).
|
| |
|