summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not compile pthread_start.c, pthread_stop_world.c on Darwin (CMake)Ivan Maidanski2021-11-301-2/+3
| | | | | | | | | * CMakeLists.txt [CMAKE_USE_PTHREADS_INIT && APPLE] (SRC): Do not add pthread_start.c and pthread_stop_world.c; add darwin_stop_world.c before pthread_support.c item. * CMakeLists.txt [(enable_single_obj_compilation || BUILD_SHARED_LIBS) && CMAKE_USE_PTHREADS_INIT] (GC_PTHREAD_START_STANDALONE): Do not define C macro if APPLE.
* Do not compile pthread_start.c on Cygwin even if build shared libs (CMake)Ivan Maidanski2021-11-301-2/+2
| | | | | | | | | * CMakeLists.txt [(enable_single_obj_compilation || BUILD_SHARED_LIBS) && CMAKE_USE_PTHREADS_INIT] (GC_PTHREAD_START_STANDALONE): Do not define C macro if CYGWIN or MSYS. * CMakeLists.txt [(enable_single_obj_compilation || BUILD_SHARED_LIBS) && CMAKE_USE_PTHREADS_INIT] (SRC): Do not add pthread_start.c if CYGWIN or MSYS.
* New CMake option to link with external libatomic_ops (system library)Ivan Maidanski2021-11-301-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | This option (-Dwith_libatomic_ops=ON) is provided to match configure --with-libatomic-ops=yes option. * CMakeLists.txt (with_libatomic_ops): New option. * CMakeLists.txt (ATOMIC_OPS_LIBS): Move initial assignment upper (to be near THREADDLLIBS_LIST one); remove TODO. * CMakeLists.txt [enable_threads && with_libatomic_ops && without_libatomic_ops] (FATAL_ERROR): Print a message that with_libatomic_ops and without_libatomic_ops cannot be specified together. * CMakeLists.txt [enable_threads && with_libatomic_ops] (ATOMIC_OPS_LIBS): Set to "-latomic_ops". * CMakeLists.txt [enable_threads && with_libatomic_ops] (GC_BUILTIN_ATOMIC): Do not define; do noy include libatomic_ops/src. * CMakeLists.txt [enable_threads] (gc): Specify ATOMIC_OPS_LIBS before THREADDLLIBS_LIST. * CMakeLists.txt [build_tests] (gctest): Specify ATOMIC_OPS_LIBS to link with. * CMakeLists.txt [build_tests && enable_threads] (test_atomic_ops, subthreadcreate_test): Likewise. * CMakeLists.txt [build_tests && enable_disclaim] (disclaim_weakmap_test): Likewise.
* Fix digimars.mak to build 'all' by defaultIvan Maidanski2021-11-291-2/+3
| | | | | * digimars.mak (targets): Rename to all; move rule upper (to be the 1st one); add comment.
* Build extra/gc.c in digimars.makIvan Maidanski2021-11-291-51/+6
| | | | | | | | | | | | | | | | | | | This is primarily to remove listing of all .c files of the base folder from rarely used digimars.mak file. * digimars.mak (DEFINES): Wrap long line. * digimars.mak (.c.obj): Replace with the rule for gc.obj. * digimars.mak (OBJS): Remove allchblk.obj, alloc.obj, blacklst.obj, checksums.obj, dbg_mlc.obj, fnlz_mlc.obj, dyn_load.obj, finalize.obj, gcj_mlc.obj, headers.obj, mach_dep.obj, malloc.obj, mallocx.obj, mark.obj, mark_rts.obj, misc.obj, new_hblk.obj, obj_map.obj, os_dep.obj, ptr_chck.obj, reclaim.obj, typd_mlc.obj, win32_threads.obj items; add gc.obj item. * digimars.mak (allchblk.obj, alloc.obj, blacklst.obj, checksums.obj, dbg_mlc.obj, fnlz_mlc.obj, dyn_load.obj, finalize.obj, gcj_mlc.obj, headers.obj, mach_dep.obj, malloc.obj, mallocx.obj, mark.obj, mark_rts.obj, misc.obj, new_hblk.obj, obj_map.obj, os_dep.obj, ptr_chck.obj, reclaim.obj, typd_mlc.obj, win32_threads.obj): Remove.
* Remove ancient PCR-MakefileIvan Maidanski2021-11-296-60/+7
| | | | | | | | | | | | * Makefile.am (EXTRA_DIST): Remove PCR-Makefile item; reorder items. * Makefile.direct (srcdir): Update comment. * Makefile.direct (pcr): Remove rule. * PCR-Makefile: Remove. * README.md (Installation and Portability): Do not mention PCR has a specific makefile. * doc/README.macros (PCR): Mention PCR-specific defines from PCR-Makefile. * tests/test.c (NTHREADS): Do not mention PCR.
* Revert "Force BASE_ATOMIC_OPS_EMULATED definition if AO_USE_PTHREAD_DEFS"Ivan Maidanski2021-11-291-7/+5
| | | | | | | | This reverts commit d87fe3febafa61af26c3c4a9469205bdd1780782. The reason: BASE_ATOMIC_OPS_EMULATED should be defined by configure.ac; passing -D AO_USE_PTHREAD_DEFS to CFLAGS_EXTRA should test the algorithm which defines BASE_ATOMIC_OPS_EMULATED.
* Do not list all .c files in ancient README.MacIvan Maidanski2021-11-291-20/+1
| | | | | * doc/README.Mac (Files to build the GC libraries): Replace all .c files of the base folder with extra/gc.c one.
* Remove ancient SMakefile.amigaIvan Maidanski2021-11-294-185/+16
| | | | | | | | | | * Makefile.am (EXTRA_DIST): Remove SMakefile.amiga item. * README.md (Installation and Portability): Do not mention Amiga has a specific makefile. * SMakefile.amiga: Remove. * doc/README.amiga: Mention Makefile.direct instead of Makefile. * doc/README.amiga (WHATS NEW): Copy Amiga-specific options and defines from SMakefile.amiga file.
* Remove ancient OS2_MAKEFILEIvan Maidanski2021-11-294-68/+11
| | | | | | | | | | WCC_MAKEFILE could be used instead (for OS/2 target). * Makefile.am (EXTRA_DIST): Remove OS2_MAKEFILE item. * OS2_MAKEFILE: Remove. * WCC_MAKEFILE: Change "OS2" to "OS/2" in the title comment. * doc/README.OS2: Refer to WCC_MAKEFILE instead of OS2_MAKEFILE; copy notes from OS2_MAKEFILE.
* Remove Symbian makefileIvan Maidanski2021-11-295-94/+58
| | | | | | | | | | | * build/s60v3/bld.inf: Remove. * build/s60v3/libgc.mmp: Likewise. * doc/README.symbian: Copy content of bld.inf and libgc.mmp (as a sample build configuration); add global_end.cpp, global_start.cpp, init_global_static_roots.cpp as source files. * Makefile.am (EXTRA_DIST): Remove bld.inf, libgc.mmp items. * README.md (Installation and Portability): Do not mention Symbian-specific makefile.
* Force BASE_ATOMIC_OPS_EMULATED definition if AO_USE_PTHREAD_DEFSIvan Maidanski2021-11-281-5/+7
| | | | | | | | | | | This is for testing purpose only, in case of -D AO_USE_PTHREAD_DEFS is specified in CFLAGS to Makefile.direct. * include/private/gcconfig.h [AO_USE_PTHREAD_DEFS && !BASE_ATOMIC_OPS_EMULATED] (BASE_ATOMIC_OPS_EMULATED): Define. * include/private/gcconfig.h [BASE_ATOMIC_OPS_EMULATED || USE_PROC_FOR_LIBRARIES && GC_LINUX_THREADS] (MPROTECT_VDB): Merge two ifdef+define into a single one.
* Pass ATOMIC_OPS_LIBS to tests using AO primitives directly (Automake)Ivan Maidanski2021-11-271-4/+14
| | | | | | | | | | | | | | | | | Link the tests that use AO primitives directly with libatomic_ops if shared build and external libatomic_ops is used. Also, do not link test_atomic_ops with libgc. * tests/tests.am (test_ldadd): Update comment. * tests/tests.am [THREADS && ENABLE_SHARED] (gctest_LDADD, subthreadcreate_test_LDADD): Insert $(ATOMIC_OPS_LIBS) before $(THREADDLLIBS). * tests/tests.am [ENABLE_DISCLAIM && THREADS && ENABLE_SHARED] (disclaim_weakmap_test_LDADD): Likewise. * tests/tests.am [THREADS] (test_atomic_ops_LDADD): Remove comment; replace $(test_ldadd) with $(nodist_libgc_la_OBJECTS) $(EXTRA_TEST_LIBS) $(ATOMIC_OPS_LIBS).
* Remove commented out code in Makefile.directIvan Maidanski2021-11-271-14/+1
| | | | | | * Makefile.direct (SPECIALCFLAGS): Change Mach_dep.c to mach_dep.c in comment. * Makefile.direct (liblinuxgc.so): Remove commented out code.
* Do not put atomic_ops[_sysdeps].o to libgc.a in Makefile.directIvan Maidanski2021-11-271-30/+32
| | | | | | | | | | | | This is to match the contents of libgc.a produced by Makefile.direct to that produced by the autoconf-based build. * Makefile.direct (NODIST_OBJS): New variable. * Makefile.direct (OBJS): Move atomic_ops.o, atomic_ops_sysdeps.o items to NODIST_OBJS. * Makefile.direct (test_cpp, sunos5gc.so, libalphagc.so, libirixgc.so, liblinuxgc.so, cordtest, de, gctest): Add $(NODIST_OBJS) to dependency list and to $(CC) arguments.
* Fix nodist_libgc_la_SOURCES value in Makefile.am for Solaris/sparcIvan Maidanski2021-11-271-3/+2
| | | | | | * Makefile.am [NEED_ATOMIC_OPS_ASM] (nodist_libgc_la_SOURCES): Append atomic_ops_sysdeps.S instead of overwriting atomic_ops.c item (and only if USE_INTERNAL_LIBATOMIC_OPS).
* Travis CI: Test AO_USE_PTHREAD_DEFS in various ways libatomic_ops linkedIvan Maidanski2021-11-271-1/+10
|
* Travis CI: Test cmake build with -Dwithout_libatomic_ops=ONIvan Maidanski2021-11-271-7/+6
| | | | | Also, replace --with-libatomic-ops=no to --without-libatomic-ops (passed to configure).
* Add CMake option to force libatomic_ops headers usageIvan Maidanski2021-11-271-3/+8
| | | | | | | | | | | | | | If -Dwithout_libatomic_ops=ON is passed to cmake or MS VC (or similar) compiler is used, then libatomic_ops/src is set as an additional include directory. Otherwise, GC_BUILTIN_ATOMIC macro is defined. * CMakeLists.txt (without_libatomic_ops): New option. * CMakeLists.txt [enable_threads] (libatomic_ops/src): Include only if without_libatomic_ops or BORLAND or MSVC or WATCOM; add comment. * CMakeLists.txt [enable_threads && !without_libatomic_ops && !BORLAND && !MSVC && !WATCOM] (GC_BUILTIN_ATOMIC): Define C macro only. * CMakeLists.txt [CMAKE_USE_PTHREADS_INIT] (GC_BUILTIN_ATOMIC): Remove C macro definition.
* Remove doc.am and move gc.man to base folderIvan Maidanski2021-11-255-57/+45
| | | | | | | | | | | | | | | (refactoring) This is to eliminate non-dist-doc files in doc folder. * CMakeLists.txt [enable_docs] (doc/gc.man): Rename to gc.man. * Makefile.am [ENABLE_DOCS] (dist_man3_MANS): Likewise. * Makefile.direct (BSD-pkg-install): Likewise. * Makefile.am: Do not include doc/doc.am. * Makefile.am [ENABLE_DOCS] (dist_doc_DATA, dist_man3_MANS): Copy assignment from doc.am. * doc/doc.am: Remove. * doc/gc.man: Rename to gc.man.
* Adjust link to file with the license in overview.mdIvan Maidanski2021-11-251-1/+1
| | | | | | | (fix of commit 2fd7564a0) * doc/overview.md: Refer to LICENSE file (for licensing terms) instead of README.md file.
* Update README.win32 about default build configuration (configure, cmake)Ivan Maidanski2021-11-251-5/+5
| | | | | | * doc/README.win32: Update information about the build with GNU make (the collector is built as shared library by default); mention that CMake builds the collector with threads support by default.
* Fix a typo in debugging.mdIvan Maidanski2021-11-251-1/+1
| | | | | * doc/debugging.md (Unexpectedly Large Heap): Fix typo "primitives in", add missing space after it.
* Rename BoehmGC to libgc in comment of leak_detector.hIvan Maidanski2021-11-251-1/+1
| | | | * include/gc/leak_detector.h: Rename BoehmGC to libgc in comment.
* Quote all mentioned header files in README.md and debugging.mdIvan Maidanski2021-11-252-5/+5
| | | | | | | * README.md (The C Interface to the Allocator, The C++ Interface to the Allocator): Wrap all (remaining) mentioned .h files in apostrophes. * doc/debugging.md (Unexpectedly Large Heap): Likewise.
* Remove commented out code in Makefile.amIvan Maidanski2021-11-251-15/+1
| | | | | | | (refactoring) * Makefile.am: Remove commented out code; adjust outdated comment near the deleted commented out code.
* Remove redundant 'private' prefix in include directives in include/privateIvan Maidanski2021-11-252-5/+5
| | | | | | | | | | | | | (refactoring) * include/private/pthread_support.h: Remove "private/" prefix in include gc_priv.h. * include/private/thread_local_alloc.h: Likewise. * include/private/pthread_support.h [GC_PTHREADS && !GC_WIN32_THREADS]: Remove "private/" prefix in include darwin_stop_world.h and pthread_stop_world.h. * include/private/thread_local_alloc.h [THREAD_LOCAL_ALLOC && USE_CUSTOM_SPECIFIC]: Remove "private/" prefix in include specific.h.
* Move public header files to include/gc in source treeIvan Maidanski2021-11-2560-2858/+2859
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, include/extra public header files (for the redirection) are moved to include directory. This is have the same directories structure of public headers in the source tree as that of the installed "include" directory. * doc/finalization.md: Remove "include/" prefix for cord.h. * LICENSE: Rename include/gc_allocator.h to gc/gc_allocator.h. * Makefile.direct (CORD_SRCS, CORD_INCLUDE_FILES): Add "gc/" prefix for cord.h, ec.h, cord_pos.h. * CMakeLists.txt [install_headers]: Likewise. * cord/cord.am (pkginclude_HEADERS): Likewise. * Makefile.direct (SRCS, tests/test.o, dyn_load.o, dyn_load_sunos53.o, mark.o, typd_mlc.o, finalize.o, ptr_chck.o, specific.o, alloc.o, pthread_support.o, thread_local_alloc.o, win32_threads.o): Add "gc/" prefix for gc_typed.h, gc_tiny_fl.h, gc_version.h, gc_inline.h, gc_mark.h, gc_disclaim.h, gc_allocator.h, javaxfc.h, gc_backptr.h, gc_gcj.h, leak_detector.h, gc_pthread_redirects.h, gc_config_macros.h. * NT_MAKEFILE (test.obj): Add gc\ prefix for gc_mark.h, gc_disclaim.h. * NT_MAKEFILE (cord\tests\de.obj, cord\tests\de_win.obj): Add gc\ prefix for cord.h, cord_pos.h. * OS2_MAKEFILE (cord\cordbscs.obj, cord\cordxtra.obj, cord\cordprnt.obj, cordtest.exe): Likewise. * cord/cordbscs.c: Add "gc/" prefix in include for cord.h, ec.h; reorder includes. * cord/cordprnt.c: Likewise. * cord/cordxtra.c: Likewise. * cord/tests/cordtest.c: Likewise. * cord/tests/de.c: Likewise. * cord/tests/de_win.c: Likewise. * extra/gc.c: Add "gc/" prefix in include for gc_inline.h, gc_pthread_redirects.h, javaxfc.h, gc_disclaim.h, gc_gcj.h, gc_backptr.h, gc_mark.h, gc_tiny_fl.h, leak_detector.h., gc_typed.h. * finalize.c: Likewise. * fnlz_mlc.c: Likewise. * gcj_mlc.c: Likewise. * include/private/dbg_mlc.h: Likewise. * include/private/gc_pmark.h: Likewise. * include/private/gc_priv.h: Likewise. * include/private/thread_local_alloc.h: Likewise. * malloc.c: Likewise. * mallocx.c: Likewise. * pthread_stop_world.c: Likewise. * pthread_support.c: Likewise. * reclaim.c: Likewise. * tests/disclaim_bench.c: Likewise. * tests/disclaim_test.c: Likewise. * tests/disclaim_weakmap_test.c: Likewise. * tests/leak_test.c: Likewise. * tests/staticrootstest.c: Likewise. * tests/test.c: Likewise. * tests/thread_leak_test.c: Likewise. * tests/trace_test.c: Likewise. * thread_local_alloc.c: Likewise. * typd_mlc.c: Likewise. * tests/test_cpp.cc: Add "gc/" prefix in include for gc_allocator.h. * include/extra/gc.h: Move to include folder; replace include<> to include "". * include/extra/gc_cpp.h: Likewise. * include/cord.h: Move to include/gc folder. * include/cord_pos.h: Likewise. * include/ec.h: Likewise. * include/gc.h: Likewise. * include/gc_allocator.h: Likewise. * include/gc_backptr.h: Likewise. * include/gc_config_macros.h: Likewise. * include/gc_cpp.h: Likewise. * include/gc_disclaim.h: Likewise. * include/gc_gcj.h: Likewise. * include/gc_inline.h: Likewise. * include/gc_mark.h: Likewise. * include/gc_pthread_redirects.h: Likewise. * include/gc_tiny_fl.h: Likewise. * include/gc_typed.h: Likewise. * include/gc_version.h: Likewise. * include/javaxfc.h: Likewise. * include/leak_detector.h: Likewise. * include/include.am (pkginclude_HEADERS): Add "gc/" prefix for gc.h, gc_backptr.h, gc_config_macros.h, gc_inline.h, gc_mark.h, gc_tiny_fl.h, gc_typed.h, gc_version.h, javaxfc.h, leak_detector.h, gc_disclaim.h, gc_gcj.h, gc_pthread_redirects.h, gc_allocator.h, gc_cpp.h. * CMakeLists.txt [install_headers]: Likewise. * include/include.am (include_HEADERS): Remove "extra/" prefix for gc_cpp.h, gc.h. * CMakeLists.txt [install_headers]: Likewise.
* Remove duplicate include gc_tiny_fl.h in gc_priv.hIvan Maidanski2021-11-251-2/+0
| | | | * include/private/gc_priv.h: Remove 2nd include "../gc_tiny_fl.h".
* State explicitly that license is MIT-styleIvan Maidanski2021-11-242-5/+16
| | | | | | | | * LICENSE: Add to title that it is a MIT-like license; reformat text about GNU-style build procedure. * README.md: Specify license type at the top of the file. * README.md (Copyright & Warranty, Contributors): Add information that the license is a MIT-like one.
* Put gc_badalc/cpp.cpp instead of .cc ones in CMake script (MSVC/BCC/WCC)Ivan Maidanski2021-11-241-2/+10
| | | | | | | | | | This is for testing purpose mostly. * CMakeLists.txt [enable_cplusplus && (BORLAND || MSVC || WATCOM)] (gccpp): Add .cpp files instead of .cc ones. * CMakeLists.txt [enable_cplusplus && (BORLAND || MSVC || WATCOM) && enable_throw_bad_alloc_library] (gctba): Likewise.
* Move non-license info from LICENSE file to READMEIvan Maidanski2021-11-243-107/+63
| | | | | | | | | | | | | | | | | | * LICENSE: Remove INSTALLATION, TYPICAL USE, WARNINGS sections (i.e., remove all non-license information). * README.md (Overview): Add link to README.cords; some other minor changes; reformat text. * README.md (General Description): Add link to README.win32 and README.win64; reformat text. * README.md (Installation and Portability): Mention CMake before providing exact build commands; add reference to README.cmake and README.macros; mention how to build the collector on Windows; mention that threads are on be default; mention how to build cord library with Makefile.direct mention that Symbian has a separate makefile. * README.md (The C++ Interface to the Allocator): Copy information about building the C++ GC libraries from LICENSE; add link to gcinterface.md. * doc/README.cords: Copy information about cord library building from LICENSE file.
* Update AUTHORS file (add email for Jesse Hull, fix one for John Ellis)Ivan Maidanski2021-11-241-2/+2
|
* Exclude licensing terms from README.cords in favor of LICENSEIvan Maidanski2021-11-231-10/+0
| | | | | | | | The licensing terms in README.cords are the same as in LICENSE file. The other documentation files do not contain any licensing information. * doc/README.cords: Remove licensing information (from the beginning of the file).
* Rename README.QUICK to LICENSE and install it by defaultIvan Maidanski2021-11-236-9/+4
| | | | | | | | | | | | | | README.QUICK contains the package copyright and licensing terms, it is more natural to name the file as LICENSE. * CMakeLists.txt [enable_docs] (install): Add LICENSE for $CMAKE_INSTALL_DOCDIR; remove note that README.QUICK is not installed. * README.QUICK: Rename to LICENSE. * Makefile.am (EXTRA_DIST): Do not add README.QUICK. * README.md (Copyright & Warranty, Contributors): Rename README.QUICK to LICENSE. * doc/README.DGUX386: Refer to README.md instead of README.QUICK. * doc/doc.am [ENABLE_DOCS] (dist_doc_DATA): Add LICENSE.
* Reference AUTHORS file in README.mdIvan Maidanski2021-11-231-1/+3
| | | | | * README.md (Copyright & Warranty): Add a reference to a file listing all the bdwgc contributors (AUTHORS).
* Move copyrights and other licensing info from README.md to README.QUICKIvan Maidanski2021-11-232-49/+13
| | | | | | | | * README.QUICK: Add missing copyrights from README.md; copy missing licensing details from README.md (about several files with slightly different license). * README.md (Copyright & Warranty): Replace all copyrights and the licensing details with a reference to README.QUICK file.
* Reformat README.md to avoid too long lines where possibleIvan Maidanski2021-11-231-11/+11
| | | | | * README.md (Installation and Portability): Reformat a paragraph about the build process based on Makefile.direct.
* Remove GC_copyright symbolIvan Maidanski2021-11-231-14/+0
| | | | | | The copyright info is purely in documentation and comments from now on. * alloc.c (GC_copyright): Remove.
* Eliminate 'suspicious concatenation of string literals' clang warningIvan Maidanski2021-11-231-2/+1
| | | | | | (fix of commit ccd7689ee) * alloc.c (GC_copyright): Do not use string literals concatenation.
* Fix 'unresolved __imp__wsprintfA' linker error in msvc_dbg.c (MSVC)Ivan Maidanski2021-11-231-4/+8
| | | | | | | | | | | | | _snprintf does not require linking with user32.lib, unlike wsprintf. * extra/msvc_dbg.c [!_M_ARM && !_M_ARM64 && !_M_X64 && _MSC_VER]: Include stdio.h. * extra/msvc_dbg.c [!_M_ARM && !_M_ARM64 && !_M_X64 && _MSC_VER] (GC_SNPRINTF): Define macro (to _snprintf). * extra/msvc_dbg.c [!_M_ARM && !_M_ARM64 && !_M_X64 && _MSC_VER] (GetDescriptionFromAddress): Reduce str size from 128 to 20; call GC_SNPRINTF() instead of wsprintf(); ensure trailing '\0' in str after GC_SNPRINTF().
* Remove msvc_dbg.h fileIvan Maidanski2021-11-236-52/+23
| | | | | | | | | | | | | | | | | | (refactoring) * NT_MAKEFILE (tests\test.obj): Remove msvc_dbg.h from dependencies. * README.md (Copyright & Warranty): Do not mention msvc_dbg.h. * extra/msvc_dbg.c [!_M_ARM && !_M_ARM64 && !_M_X64 && _MSC_VER]: Do not include msvc_dbg.h; include stdlib.h. * extra/msvc_dbg.c [!_M_ARM && !_M_ARM64 && !_M_X64 && _MSC_VER] (backtrace, backtrace_symbols): Declare (as extern C). * os_dep.c [GC_HAVE_BUILTIN_BACKTRACE && _MSC_VER] (backtrace, backtrace_symbols): Likewise. * extra/msvc_dbg.c [!_M_ARM && !_M_ARM64 && !_M_X64 && _MSC_VER] (backtrace_symbols): Match argument types in the definition to those in the declaration. * include/include.am (EXTRA_DIST): Do not add msvc_dbg.h. * include/private/msvc_dbg.h: Remove.
* Synchronize copyright years between README filesIvan Maidanski2021-11-227-28/+29
| | | | | | | | | | | | | | | * README.QUICK: Copy copyright years from README.md. * README.md (Copyright & Warranty): Adjust copyrights (synchronize with that of the source files). * alloc.c: Adjust copyrights in the file head comment and GC_copyright (synchronize with that of updated README.QUICK). * include/gc.h: Likewise. * alloc.c (GC_copyright): Reformat. * dbg_mlc.c: Add trailing dot to a copyright in the file head comment. * finalize.c: Likewise. * include/gc.h: Likewise. * tests/initsecondarythread.c: Reformat copyright in the file head comment (change C to lower case).
* Fix 'ISO C forbids conversion of function pointer to object' warningIvan Maidanski2021-11-151-1/+1
| | | | | | | (fix of commit 715416873) * os_dep.c [GWW_VDB && MSWINRT_FLAVOR] (detect_GetWriteWatch): Cast GetProcAddress to void* thru word when passing to VirtualQuery().
* Fix 'unresolved symbol GetModuleHandle' error in win32_threads.c (UWP)Ivan Maidanski2021-11-141-1/+11
| | | | | | | | | | | | (fix of commit 9d869bcd9) Issue #300 (bdwgc). * win32_threads.c [(!HAVE_PTHREAD_SETNAME_NP_WITH_TID && !MSWINCE && PARALLEL_MARK || WOW64_THREAD_CONTEXT_WORKAROUND) && MSWINRT_FLAVOR] (GC_thr_init): Do not call GetModuleHandle; set hK32 to memInfo.AllocationBase where memInfo is result of VirtualQuery(GetProcAddress).
* Add 'lib' prefix to build artifact names in Makefile.directIvan Maidanski2021-11-144-54/+53
| | | | | | | | | | | | | | | This is to match libraries naming convention of CMake and configure scripts. * Makefile.direct: Update comment (add "lib" prefix to gc.a, gccpp.a, gctba.a, cord.a). * Makefile.direct (bsd-libgc.a, bsd-libgccpp.a, bsd-libgctba.a, bsd-libleak.a, base_lib, gc.a, cords, libcord.a, test_cpp, gctba.a, cord.a, c++, gccpp.a, gctba.a, cordtest, de, gctest): Add "lib" prefix to gc.a, gccpp.a, gctba.a, cord.a. * README.QUICK (INSTALLATION, TYPICAL USE): Likewise. * README.md (Installation and Portability): Likewise. * doc/gcinterface.md (C/C++ Interface): Likewise.
* Move non-cord [pkg]include_HEADERS assignments to include.amIvan Maidanski2021-11-132-19/+24
| | | | | | | | | | | (refactoring) * Makefile.am [PTHREADS || ENABLE_GCJ_SUPPORT || ENABLE_DISCLAIM] (pkginclude_HEADERS): Move item addition to include/include.am. * Makefile.am [CPLUSPLUS] (pkginclude_HEADERS, include_HEADERS): Likewise. * Makefile.am (EXTRA_DIST): Move msvc_dbg.h item to include/include.am; remove TODO about the use of Makefile.am with MS VC.
* Revert "Fix missing msvc_dbg.h in dist_noinst_HEADERS (Automake)"Ivan Maidanski2021-11-131-1/+0
| | | | | | This reverts commit 479b187e62e3634d755b671b7e8f8229ea3c3d1e. The reason: msvc_dbg.h is listed in EXTRA_DIST.
* Add repology.org badge to READMEIvan Maidanski2021-11-091-0/+1
|
* Relax required dependencies for test_atomic_ops (CMake)Ivan Maidanski2021-11-081-1/+1
| | | | | * CMakeLists.txt [build_tests && enable_threads] (test_atomic_ops): Specify dependency on ${THREADDLLIBS_LIST} instead of "gc".