| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
(fix of commit eca62c130)
Issue #406 (bdwgc).
* mallocx.c [_FORTIFY_SOURCE && !__clang__] (GC_realloc): Declare
cleared_p variable as volatile for any GCC version.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Issue #406 (bdwgc).
* mallocx.c [_FORTIFY_SOURCE && GC_GNUC_PREREQ(9,0) && !__clang__]
(GC_realloc): Declare cleared_p local variable as volatile; move and
update comment.
* mallocx.c (GC_realloc): Declare cleared_p local variable at the top
level;
* mallocx.c [!IGNORE_FREE] (GC_realloc): Pass cleared_p to GC_free()
unless lb is 0.
|
|
|
|
|
|
|
|
| |
Issue #406 (bdwgc).
* dbg_mlc.c [_FORTIFY_SOURCE && !__clang__] (GC_debug_malloc): Expand
SIZET_SAT_ADD() manually changing it to return GC_SIZE_MAX>>1 in case
of addition overflow; add comment.
|
|
|
|
|
|
|
| |
Issue #406 (bdwgc).
* mallocx.c (GC_realloc): Pass p to BZERO() thru an intermediate
variable of word type; add comment.
|
|
|
|
|
| |
* tests/leak_test.c (main): Change type p local variable from int** to
char** one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Issue #406 (bdwgc).
GC_register_finalizer and similar functions do not guarantee to
set *ofn an *ocd values, thus the client should do it.
* dbg_mlc.c [!GC_NO_FINALIZATION] (GC_debug_register_finalizer_no_order,
GC_debug_register_finalizer, GC_debug_register_finalizer_unreachable,
GC_debug_register_finalizer_ignore_self): Initialize my_old_cd to 0;
add comment.
* include/gc/gc_cpp.h (gc_cleanup::gc_cleanup): Initialize oldProc and
oldData to 0; add comment.
|
|
|
|
|
|
|
| |
Issue #406 (bdwgc).
* huge_test.c [_FORTIFY_SOURCE] (main): Do not call GC_MALLOC() with
size argument bigger than GC_SWORD_MAX; add comment.
|
|
|
|
|
| |
* finalize.c (GC_register_finalizer_inner): Document the case when
GC_find_leak is true; fix a typo ("remain") in comment.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* win32_threads.c [!GC_PTHREADS && !GC_NO_THREADS_DISCOVERY]
(GC_DllMain): Do not assert parallel_initialized unless
GC_win32_dll_threads on DLL_THREAD_DETACH.
|
|
|
|
|
| |
* win32_threads.c [GC_DISABLE_INCREMENTAL] (GC_wait_for_gc_completion):
Define as no-op macro (instead of a static function).
|
|
|
|
|
| |
Non-inline system-wide new and delete operators do not work reliably
because of arbitrary symbols ordering by MS linker.
|
|
|
|
|
|
|
|
|
|
| |
(refactoring)
* configure.ac (AC_TRY_COMPILE): Replace with
AC_COMPILE_IFELSE(AC_LANG_SOURCE) or AC_COMPILE_IFELSE(AC_LANG_PROGRAM).
* configure.ac (AC_TRY_LINK): Replace with
AC_LINK_IFELSE(AC_LANG_PROGRAM); reformat code.
* configure.ac (AC_TRY_RUN): Replace with AC_RUN_IFELSE(AC_LANG_SOURCE).
|
|
|
|
|
|
|
| |
(refactoring)
* configure.ac (LT_INIT): Remove AC_PROG_LIBTOOL from comment.
* configure.ac (AC_PROG_LIBTOOL): Remove (it duplicates LT_INIT).
|
|
|
|
|
|
|
| |
(fix of commit b6ac6a5a4)
* CMakeLists.txt [CFLAGS_EXTRA] (CFLAGS_EXTRA): Apply
separate_arguments(UNIX_COMMAND).
|
|
|
|
|
|
|
|
|
| |
(fix of commit 1471f940e)
Issue #405 (bdwgc).
* include/private/gcconfig.h [__aarch64__] (NOSYS): Do not define
if _WIN32.
|
| |
|
| |
|
|
|
|
| |
(a cherry-pick of commit 0e16efb2e from 'release-8_0')
|
|
|
|
| |
(a cherry-pick of commit 1422cd1d0 from 'release-7_6')
|
|
|
|
| |
(a cherry-pick of commit e9e52ab66 from 'release-7_4')
|
| |
|
|
|
|
|
|
|
|
|
| |
Issue #399 (bdwgc).
* misc.c [GC_ASSERTIONS && GC_ALWAYS_MULTITHREADED
&& (SEARCH_FOR_DATA_START || NETBSD)] (GC_init): Wrap
GC_init_linux_data_start() and GC_init_netbsd_elf() calls into
LOCK/UNLOCK.
|
| |
|
|
|
|
|
| |
* misc.c [CONSOLE_LOG && MSWIN32]: Include io.h unless __GNUC__
(regardless of _MSC_VER).
|
|
|
|
| |
(fix of commit 8c6e63c6b)
|
| |
|
|
|
|
| |
* digimars.mak (CFLAGS): Remove -wx.
|
| |
|
|
|
|
|
|
|
|
|
| |
(fix of commit 72ba00903)
Issue #397 (bdwgc).
* misc.c [GC_WIN32_THREADS && (MSWIN32 || MSWINCE)] (GC_deinit): Do not
call DeleteCriticalSection(&GC_allocate_ml) if GC_PTHREADS.
|
|
|
|
|
|
|
|
| |
(fix of commit 9aa26e0b5)
* darwin_stop_world.c [CPPCHECK] (GC_thread_resume): Initialize
info.run_state value (to 0) before thread_info() call even if not
DEBUG_THREADS.
|
| |
|
|
|
|
|
|
|
|
| |
Issue #237 (bdwgc).
* include/private/gc_hdrs.h (HDR_FROM_BI): Delete outer parentheses.
* include/private/gc_hdrs.h [HASH_TL] (SET_HDR): Expand GET_HDR_ADDR();
add assertion that bi is not GC_all_nils.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Issue #237 (bdwgc).
This also prevents writing zeros to GC_all_nils by GC_remove_counts().
* headers.c (GC_remove_counts): If HDR(h+1) is zero (and sz is at least
one block) then assert that HDR() of other hbp elements is zero too and
then return (w/o SET_HDR(hbp,0) invocation).
* ptr_chck.c (GC_is_valid_displacement): Remove comment that if(p) is
needed to avoid a data race.
|
| |
|
|
|
|
|
| |
* digimars.mak (CFLAGS_EXTRA): New variable (defined as empty).
* digimars.mak (CFLAGS): Append $(CFLAGS_EXTRA).
|
| |
|
|
|
|
|
|
|
| |
Issue #237 (bdwgc).
* ptr_chck.c (GC_is_valid_displacement): Avoid passing NULL to HDR(p);
add comment.
|
| |
|
|
|
|
|
|
|
|
|
| |
(fix of commit 6ccda3052)
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && !CYGWIN && !MSYS && APPLE]
(SRC): Add pthread_start.c item again.
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && !CYGWIN && !MSYS] (SRC):
Specify pthread_support.c once (avoid code duplication).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* CMakeLists.txt (ATOMIC_OPS_LIBS_CMAKE): New variable.
* CMakeLists.txt [enable_threads && with_libatomic_ops] (Atomic_ops):
Call find_package().
* CMakeLists.txt [enable_threads && with_libatomic_ops
&& Atomic_ops_FOUND] (AO_INCLUDE_DIRS): Get target property from
Atomic_ops::atomic_ops; pass it to include_directories and print it
as status message.
* CMakeLists.txt [enable_threads && with_libatomic_ops]
(ATOMIC_OPS_LIBS_CMAKE): Set either to Atomic_ops::atomic_ops or to
${ATOMIC_OPS_LIBS}.
* CMakeLists.txt [enable_threads] (gc): Use ${ATOMIC_OPS_LIBS_CMAKE}
instead of ${ATOMIC_OPS_LIBS}.
* CMakeLists.txt [build_tests] (gctest): Likewise.
* CMakeLists.txt [build_tests && enable_threads] (test_atomic_ops,
subthreadcreate_test): Likewise.
* CMakeLists.txt [build_tests && enable_disclaim]
(disclaim_weakmap_test): Likewise.
|
|
|
|
|
|
|
|
|
|
|
| |
(refactoring)
* CMakeLists.txt [BUILD_SHARED_LIBS] (CORD_VERSION): Rename variable
to CORD_VERSION_PROP.
* CMakeLists.txt [BUILD_SHARED_LIBS] (GC_VERSION): Rename variable
to GC_VERSION_PROP.
* CMakeLists.txt [BUILD_SHARED_LIBS] (GCCPP_VERSION): Rename variable
to GCCPP_VERSION_PROP.
|
|
|
|
|
|
|
|
|
|
|
| |
This matches the functionality of configure --without-libatomic-ops.
* CMakeLists.txt (NODIST_SRC): New variable.
* CMakeLists.txt [without_libatomic_ops] (NODIST_SRC): Set variable
(to libatomic_ops/src/atomic_ops.c, adding
libatomic_ops/src/atomic_ops_sysdeps.S if SunPro); add comment.
* CMakeLists.txt (add_executable): Add ${NODIST_SRC} to the list of
test source files.
|