summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update ChangeLog file (v7.2 - v7.4 changes only)release-7_4Ivan Maidanski2023-04-291-0/+4
|
* Invoke GC_oom_fn if GC_make_array_descriptor failed because of no memoryIvan Maidanski2023-04-281-1/+2
| | | | | | | (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 old function name in comment of GC_finalized_disclaimIvan Maidanski2023-04-281-1/+1
| | | | | | | (fix of commit 6c1a92445) * fnlz_mlc.c [ENABLE_DISCLAIM] (GC_finalized_disclaim): Fix old function name in comment ("GC_disclaim_and_reclaim").
* .gitignore: Add 'configure~' fileIvan Maidanski2023-04-281-0/+1
|
* Remove misleading comment in GC_obj_kinds for AUNCOLLECTABLE kindIvan Maidanski2023-04-281-1/+1
| | | | | | * mark.c [GC_ATOMIC_UNCOLLECTABLE] (GC_obj_kinds): Remove misleading comment ("add length to descr") for FALSE value (for ok_relocate_descr field).
* Fix null pointer dereference in TRACE_TARGETIvan Maidanski2023-04-281-1/+2
| | | | | * 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.
* Fix a typo in comment of GC_generic_malloc_innerIvan Maidanski2023-04-281-1/+1
| | | | | | | (a cherry-pick of commit 9b8cdbd25 from 'release-8_0') * malloc.c (GC_generic_malloc_inner): Fix a typo ("to directly allocate") in comment.
* Fix of GC_bytes_allocd increment in GC_generic_malloc_innerIvan Maidanski2023-04-281-3/+5
| | | | | | | | | | | 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.
* Fix mistyped GC_register_finalizer[_unreachable] in commentsIvan Maidanski2023-04-282-2/+2
| | | | | | | | (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").
* Fix CORD_next() indent inside loops in test_basics() of cordtestIvan Maidanski2023-04-281-1/+1
| | | | | | | (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.
* Update ChangeLog file (v7.2 - v7.4 changes only)Ivan Maidanski2023-03-151-2/+8
|
* Do not pass GC_malloc result to GC_size w/o checking in gctestIvan Maidanski2023-03-151-1/+1
| | | | | | | (a cherry-pick of commit 923a30202 from 'master') * tests/test.c (run_one_test): Do not call GC_malloc(0) inside GC_printf argument.
* Fix GC_thread_is_registered for finished threadsIvan Maidanski2023-03-143-2/+4
| | | | | | | | | | | | | | | (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).
* Fix a typo in comment of GC_start_rtn_prepare_threadIvan Maidanski2023-03-141-1/+1
| | | | | | | (a cherry-pick of commit 1a8160ea8 from 'master') * pthread_support.c (GC_start_rtn_prepare_thread): Fix a typo in comment ("used in").
* Ensure GC_NO_PTHREAD_SIGMASK defined if no GC_pthread_sigmask prototypeIvan Maidanski2023-03-141-0/+2
| | | | | | | | | (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.
* Update AUTHORS file (add Amaury Sechet)Ivan Maidanski2023-03-141-0/+1
|
* Fix one more typo in scale.htmlAmaury Sechet2023-03-141-1/+1
| | | | | | | (a cherry-pick of commit 499020404 from 'release-8_0') * docs/scale.html (The Parallel Marking Algorithm): Fix a typo ("our approach").
* Fix typo in 'STATIC' word in ChangeLogIvan Maidanski2023-03-141-1/+1
| | | | * ChangeLog (7.0alpha9): Fix a typo ("STATIC").
* Fix a typo in GC_register_data_segments comment (MacOS)Ivan Maidanski2023-03-141-1/+1
| | | | | | | * 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").
* Do not mix debug and non-debug allocations in disclaim testsIvan Maidanski2023-03-142-4/+5
| | | | | | | | | | | | (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 DCL_LOCK_STATE placement in GC_set_oom_fnIvan Maidanski2023-03-141-1/+2
| | | | | | (fix of commit c7047ca9e) * misc.c (GC_set_oom_fn): Move GC_ASSERT() to be after DCL_LOCK_STATE.
* Fix typos in comments and documentation (regarding 'it is')Ivan Maidanski2023-03-147-7/+7
| | | | | | | | | | | | | | (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.
* Fix mistyped GC_free_inner in comment of GC_remove_all_threads_but_meIvan Maidanski2023-03-142-3/+3
| | | | | | | | | | | (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.
* Fix potential SIGSEGV on out-of-memory in gctestIvan Maidanski2023-03-141-12/+23
| | | | | | | | (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().
* Fix typo in GC_allochblk_nth nameIvan Maidanski2023-03-142-2/+2
| | | | | | | | (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").
* Fix joinable threads shutdown on NaClIvan Maidanski2023-03-141-6/+8
| | | | | | | | | | | | | | | | | | | (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().
* Fix unregistering of thread created by intercepted pthread_create on NaClIvan Maidanski2023-03-141-3/+5
| | | | | | | (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.
* Update ChangeLog file (v7.2 - v7.4 changes only)Ivan Maidanski2022-11-161-0/+22
|
* Fix use of unset errno after pthread_create callIvan Maidanski2022-11-151-2/+1
| | | | | | | | (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).
* Fix mistyped function name in documentation of REDIRECT_REALLOCIvan Maidanski2022-11-151-1/+1
| | | | | * doc/README.macros (REDIRECT_REALLOC): Fix typo ("realloc" w/o GC_ prefix).
* Eliminate 'cast signed to bigger unsigned' CSA warning in WARN callsIvan Maidanski2022-11-151-1/+2
| | | | | | (a cherry-pick of commit 99536f178 from 'release-8_2') * pthread_support.c (GC_thr_init): Cast WARN argument to signed_word.
* Fix missing libalphagc.so dependency in Makefile.directIvan Maidanski2022-11-151-2/+2
| | | | | | | (a cherry-pick of commit 397e06470 from 'master') * Makefile.direct (OBJS): Add comment. * Makefile.direct (libalphagc.so): Add dependency on dyn_load.o.
* Fix double initialization of main thread local free lists on Win32Ivan Maidanski2022-11-151-12/+12
| | | | | | | | | | | | (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().
* Fix disabling of automatic dynamic libraries registrationIvan Maidanski2022-11-151-3/+4
| | | | | | | | | | | | (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.
* Fix missing result check of pthread_attr_getdetachstate in pthread_createIvan Maidanski2022-11-152-8/+6
| | | | | | | | | * 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 missing lock while updating GC_in_thread_creation in GC_exit_checkIvan Maidanski2022-11-151-3/+11
| | | | | | | | (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.
* Fix typo in comment belonging to dll_thread_tableIvan Maidanski2022-11-151-1/+1
| | | | * win32_threads.c (dll_thread_table): Fix a typo ("use") in comment.
* Fix missing GC_CALLBACK for GC_waitForSingleObjectInfiniteIvan Maidanski2022-11-151-1/+1
| | | | | | | (fix of commit 6713d8473) * win32_threads.c [GC_WINMAIN_REDIRECT] (GC_waitForSingleObjectInfinite): Add GC_CALLBACK.
* Fix a typo in comment of dyn_load.c (shortened USE_PROC_FOR_LIBRARIES)Ivan Maidanski2022-11-151-2/+2
| | | | | * dyn_load.c [SOLARISDL || !LINUX]: Rename USE_PROC to USE_PROC_FOR_LIBRARIES in comment.
* Fix loop condition over dll_thread_table in GC_lookup_pthread (Win32)Ivan Maidanski2022-11-151-1/+1
| | | | | | | | | | (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.
* Fix IRIX5 defined wrongly on WinCE/mipsIvan Maidanski2022-11-151-1/+2
| | | | | | | | (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__.
* Fix IRIX5 defined wrongly on Tandem S-SeriesIvan Maidanski2022-11-151-1/+1
| | | | | | | | | (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.
* [7.4.22]v7.4.22Ivan Maidanski2022-08-265-5/+5
| | | | | | | | | | | 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.
* Update ChangeLog file (set v7.2p release date)Ivan Maidanski2022-08-251-1/+1
|
* Update ChangeLog file (v7.2 - v7.4 changes only)Ivan Maidanski2022-08-251-2/+6
|
* Fix hb_obj_kind type in documentation (ASCII diagram) describing hblkhdrIvan Maidanski2022-08-081-1/+3
| | | | | | | (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.
* Define SUNOS5SIGS macro for kFreeBSDIvan Maidanski2022-07-272-8/+8
| | | | | | | | | | | | | | (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__.
* Revert "Remove nested always-false ifdef for HPUX and FREEBSD"Ivan Maidanski2022-07-271-3/+5
| | | | | | | This reverts commit 2a420e272d9f036130fbf95a359fb4140ff11da3. The reason: SUNOS5SIGS is defined for HP/UX and some flavors of FreeBSD.
* Fix SUNOS5SIGS documentation to match macro definition in gcconfig.hIvan Maidanski2022-07-271-2/+1
| | | | | * doc/README.macros (SUNOS5SIGS): Update documentation (mention FreeBSD to match that in gcconfig.h).
* Update ChangeLog file (v7.2 - v7.4 changes only)Ivan Maidanski2022-06-171-2/+12
|