Skip to content

8.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ivmai ivmai released this 29 Sep 19:23

Changes

  • Add API for accessing incremental GC time limit with nanosecond precision
  • Add API function to force start of incremental collection
  • Add GC_ prefix to scan_ptr and some other static variables (refactoring)
  • Add GC_get/set_disable_automatic_collection API
  • Add I_HOLD_LOCK assertion to expand_hp_inner and related functions
  • Add assertion on free-list argument and result of GC_new_kind
  • Add assertion that GC is initialized to base incremental_protection_needs
  • Add assertions that GC_page_size is initialized
  • Add cordtest, staticrootstest, test_cpp, tracetest, disclaim tests (CMake)
  • Add debug messages on thread suspend/resume (Win32)
  • Add dummy testing of GC_incr_bytes_allocd/freed
  • Add table of contents in gcdescr.md
  • Add testing of GC_CALLOC/MALLOC_EXPLICITLY_TYPED (gctest)
  • Adjust formatting of numbered lists in README.md to match other .md files
  • Adjust highlighting of API prototypes in gcinterface.md
  • Adjust macro def/usage for AVR32, CRIS, NETBSD, OPENBSD, SH4 in gcconfig.h
  • Adjust printf calls in gctest check_heap_stats so that each has new-line
  • Allow incremental GC on Cygwin
  • Allow memory unmapping in case of MPROTECT_VDB
  • Allow to disable GWW or mprotect-based VDB at build
  • Allow to disable Glibc FPU exception mask and TSX workarounds (Linux)
  • Allow to disable __builtin_return_address(1) usage (x86 and x64)
  • Allow to specify custom value of LOG_PHT_ENTRIES
  • Always abort on failure to access /proc/self/maps (Linux)
  • Always define default_push_other_roots (code refactoring)
  • Avoid gcc stringop-overflow warning for intended overflow in smashtest
  • Avoid initial 3ms pause on world stop/start with GC_retry_signals (Linux)
  • Build cord.lib by Makefile.direct, NT_MAKEFILE, OS2_MAKEFILE, WCC_MAKEFILE
  • Build gc as a shared multi-threaded library by default (CMake)
  • Build gccpp library by Makefile.direct, NT_MAKEFILE and WCC_MAKEFILE
  • Build gctba library
  • Build shared libraries by default (WCC_MAKEFILE)
  • Change CLOCK_TYPE to timespec for Nintendo Switch (code refactoring)
  • Change EMSCRIPTEN macro for internal use to no-underscore format
  • Change log_size fields of finalizer to unsigned type (code refactoring)
  • Change type of toggleref_array_size/capacity to size_t (code refactoring)
  • Check leak of objects allocated by CRT malloc in gctest (MS VC)
  • Check real-symbols are already initialized in pthread_join/detach
  • Collapse multiple includes of windows.h (code refactoring)
  • Comments reformatting in mark.c to properly delimit sentences
  • Compile de test GUI app with resources (CMake)
  • Compile gc.c unless building static libraries (NT_MAKEFILE, WCC_MAKEFILE)
  • Compile msvc_dbg.c by CMake script (MS VC)
  • Declare API function and print amount of memory obtained from OS
  • Define GC_win32_free_heap API function for all Windows targets
  • Define STATIC macro to static by default
  • Depend number of fork_a_thread calls on NTHREADS (gctest)
  • Detect dladdr() presence in CMake script
  • Detect presence of execinfo.h system header in CMake script
  • Detect presence of getcontext and dl_iterate_phdr in CMake script
  • Detect sigsetjmp() availability in CMake script
  • Disable Clang/GCC aliasing optimization in CMake script by default
  • Do not build tests by default (Makefile.direct and other Makefiles)
  • Do not build the tests by default (CMake)
  • Do not call GC_push_conditional unless PROC_VDB
  • Do not call add_to_our_memory with null pointer (refactoring)
  • Do not compile pthread_*.c files in Cygwin or MSYS (CMake)
  • Do not define GC_write_cs for Xbox One target
  • Do not define HAVE_NO_FORK for all Unix-like systems
  • Do not hard-code CMAKE_DL_LIBS value and install paths (CMake)
  • Do not hard-code finalizable objects limit which triggers GC
  • Do not update scratch_last_end_ptr unless used by reg dynamic libraries
  • Document GC_incr_bytes_allocd/freed API function
  • Eliminate '(long)size<=0 is always false' cppcheck FP
  • Eliminate 'Consecutive return is unnecessary' cppcheck style warning
  • Eliminate 'accessing GC_dont_gc without lock' in GC_init code defect FP
  • Eliminate 'bytes_freed access w/o lock in incr_bytes_free' code defect FP
  • Eliminate 'checking if unsigned i < 0' cppcheck FP in is_heap_base
  • Eliminate 'hash_val value is never used' cppcheck false positive
  • Eliminate 'passing tainted var maps_buf to tainted sink' code defect FP
  • Eliminate 'retry_cnt is assigned value but never used' cppcheck FP
  • Eliminate 'stop variable is always 0' compiler warning in print_callers
  • Eliminate 'struct member os_callback is never used' cppcheck warning
  • Eliminate 't->flags not atomically updated' code defect FP
  • Eliminate 'tmpl might be accessed at non-zero index' cppcheck error
  • Eliminate GCC warning of unsafe __builtin_return_address(1)
  • Eliminate code duplication in reclaim_clear and disclaim_and_reclaim
  • Eliminate double lock code defect false positive in generic_lock
  • Eliminate memory leak reported in add_current_malloc_heap at exit (Win32)
  • Emscripten single-threaded support (detect stack base, push registers)
  • Enable CMake-based build for Borland and Watcom compilers
  • Enable compilation without C runtime (Win32)
  • Enable fork testing in single-thread builds (Unix-like)
  • Enable mprotect-based incremental GC for Linux/arm and Linux/aarch64
  • Enable true incremental collection even if parallel marker is on
  • Enable use of __builtin_unwind_init() if clang-8 or later
  • Ensure ELFSIZE is defined in dyn_load.c for OpenBSD (code refactoring)
  • Ensure add_to_heap_inner arguments are valid (refactoring)
  • Ensure all getters and setters are run at least once by gctest (pthreads)
  • Export CMake targets with namespace BDWgc
  • Fix 'const obj must be initialized if not extern' error in gc_alloc_ptrs.h
  • Fix ./libgc.la dependency on FreeBSD (Automake)
  • Fix HOST determination in CMake script
  • Fix copyright message in de_win.rc, gc_cpp.cc, ec.h and specific.h
  • Fix missing OS_TYPE definition for some targets
  • Fix mmap(PROT_NONE) failure if RLIMIT_AS value is low (Linux)
  • Generate cordtest and de executable files in GC base folder
  • Generate pkg-config metadata file (CMake)
  • Get rid of some non-ELF ifdefs (code refactoring)
  • Handle potential incomplete buffer read in GC_linux_main_stack_base
  • Implement GET_TIME for Nintendo Switch
  • Increase NTHREADS value in tests if code coverage analysis
  • Install docs and man page if enable_docs (CMake)
  • Install gc_gcj.h and gc_pthread_redirects.h only if appropriate
  • Log abort message details even if not print_stats (unless SMALL_CONFIG)
  • Mark buffer returned by get_maps as const (code refactoring)
  • Move C++ GC_ATTR_EXPLICIT and GC_NOEXCEPT definition to gc_config_macros.h
  • Move GC state non-pointer variables into GC_arrays (code refactoring)
  • Move GC state pointer variables into GC_arrays
  • Move GC_scratch_recycle_inner() to alloc.c (refactoring)
  • Move GC_throw_bad_alloc definition to new C++ file
  • Move QNX and Emscripten macro definitions to proper place in gcconfig.h
  • Move definition of GC_n_mark_procs and GC_n_kinds from mark.c to misc.c
  • New API (GC_set_markers_count) to control number of parallel markers
  • New API function to clear GC exclusion table
  • New API function to get size of object debug header
  • New API standalone functions to acquire and release the allocator lock
  • New CMake option (disable_gc_debug) to remove debugging code
  • New CMake option (disable_handle_fork) to disable fork handling completely
  • New macro (CONSOLE_LOG) to enable logging to console on Win32
  • New macro (GCTEST_PRINT_VERBOSE) to enable verbose logging in test.c only
  • New macro (NO_MSGBOX_ON_ERROR) to avoid message box on GC abort (Win32)
  • OpenBSD does not use ELF_CLASS (code refactoring)
  • Pass -D GC_DLL -fvisibility=hidden if default configure build is requested
  • Pass -no-undefined linker flag if building shared libraries (CMake)
  • Print pid of child processes if verbose logging (gctest)
  • Read environment variables from a file on WinCE (CMake script)
  • Reduce stack-allocated buffer in get_nprocs from 4KB to 1.7KB
  • Refine flags field comment in pthread_support.h
  • Reflect result of VDB selection at runtime in incremental_protection_needs
  • Reformat code of GC_push_roots
  • Reformat gc.man (wrap long lines)
  • Reformatting and code refactoring of CMake script
  • Remove 'current users' section from overview.md
  • Remove 'distributed ports', 'scalable versions' sections from overview.md
  • Remove AC_MSG_RESULT for THREADDLLIBS (dgux386)
  • Remove Borland-specific Makefile and gc.mak script
  • Remove GC_eobjfreelist variable in typd_mlc.c (code refactoring)
  • Remove GC_gcj_malloc_initialized variable (code refactoring)
  • Remove Linux-specific commands for building cord/de from Makefile.direct
  • Remove Win32 main_thread static variable if threads discovery is disabled
  • Remove code duplication between GC_unmap and GC_unmap_gap (refactoring)
  • Remove code duplication between PROTECT and UNPROTECT macros (refactoring)
  • Remove commented out assignment of gc_use_mmap in configure (refactoring)
  • Remove dash characters comprising prefix of some verbose logs (gctest)
  • Remove dependency on user32.dll import library from static libgc (Win32)
  • Remove documentation specific to particular old BDWGC releases
  • Remove duplicate Linux-related macro definitions in gcconfig.h
  • Remove duplicate macro definitions in gcconfig.h except for Linux
  • Remove gcmt-dll generation, rename libgc-lib.a to libgc.a (CMake)
  • Remove goto statement in print_callers (code refactoring)
  • Remove limit on number of heap sections
  • Remove new_gc_alloc.h file
  • Remove redundant GC_with_callee_saves_pushed call in multi-threaded builds
  • Remove redundant check of GC_free argument in register_finalizer
  • Remove redundant type casts in backgraph HEIGHT_UNKNOWN/IN_PROGRESS
  • Remove unused GC_prev_heap_addr (refactoring)
  • Remove unused STACK_GRAN macro definitions (code refactoring)
  • Remove unused sparc_sunos4_mach_dep.s file
  • Remove useless empty statements after block ones (refactoring)
  • Remove weakobj_free_list variable in disclaim_weakmap_test (refactoring)
  • Rename READ to PROC_READ in os_dep.c (code refactoring)
  • Rename cord/cord test executable to de (CMake)
  • Rename ext_descr to typed_ext_descr_t (code refactoring)
  • Rename gc64.dll to gc.dll and gc[64]_dll.lib to gc.lib in NT_MAKEFILE
  • Rename gc68060.lib to gc.lib, cord/cord68060.lib to cord.lib in SMakefile
  • Rename make_as_lib option to enable_static in NT_MAKEFILE and WCC_MAKEFILE
  • Rename nothreads option to disable_threads in NT_MAKEFILE
  • Repeat run_one_test NTHREADS times by gctest if single-threaded
  • Replace "msecs" with "ms" in all comments and messages
  • Replace 'stack base' with 'stack bottom' in the documentation
  • Replace SN_TARGET_ORBIS to PLATFORM_* and GC_NO_* macros
  • Replace _M_AMD64 macro with _M_X64 (code refactoring)
  • Replace find_limit_openbsd to find_limit_with_bound (OpenBSD 5.2+)
  • Replace obsolete AC_HELP_STRING with AS_HELP_STRING (refactoring)
  • Replace push_one calls with push_many_regs one for Win32 thread context
  • Report memory region bounds and errno on GC_unmap/remap failure
  • Report presence of process fork testing (gctest)
  • Report time with a nanosecond precision where available
  • Retry suspend/resume signals on all platforms by default
  • Run tree and typed tests in child process (gctest)
  • Set GC_collecting hint for GC_collect_a_little_inner calls (pthreads)
  • Set name of GC marker threads
  • Set so-version for installed shared libraries (CMake)
  • Simplify logged message in scratch_recycle
  • Simplify loops of collect_a_little/stopped_mark invoking mark_some
  • Support -fvisibility=hidden option in CMake script
  • Support CFLAGS_EXTRA to pass extra user-defined compiler flags (CMake)
  • Support FreeBSD/RISC-V, Linux/arc, LoongArch, OpenBSD/powerpc64
  • Support header files installation (CMake)
  • Support most configure options in CMake script
  • Suppress warnings in test_tinyfl() of gctest reported by Watcom C complier
  • Take nanoseconds into account when updating full_gc_total_time
  • Turn off C++ API by default, export it in gccpp library (CMake)
  • Turn on automatic fork() handling by default on Android
  • Update README.cmake regarding Unix, C++ and tests
  • Update libgc.so version info to differentiate against v8.0.x
  • Update the ASCII diagrams describing the tree structure for pointer lookups
  • Update the documentation to match the current GC implementation
  • Upgrade cmake_minimum_required(version) to 3.1
  • Use CreateThread without GC_ prefix in gctest (code refactoring)
  • Use KB/MB/GB abbreviations uniformly across entire documentation
  • Use USE_MMAP_ANON when USE_MMAP is configured on OpenBSD
  • Use a specific Emscripten allocator for Tiny
  • Use atomic primitives for Sony PlayStation Portable 2 and PS4
  • Use better precision Windows timers
  • Use clock_gettime() instead of clock() on Cygwin and Linux
  • Use compiler TLS on FreeBSD and NetBSD
  • Use mprotect-based VDB on PowerPC and S390 (Linux)
  • Use soft dirty bits on Linux (i386, powerpc, s390, x86_64)
  • Workaround 'condition result<=0 is always false' cppcheck FP in get_maps
  • Workaround 'push_regs configured incorrectly' error (GCC-11)
  • Workaround 'same value in both branches of ternary operator' cppcheck FP
  • Workaround various cppcheck false positives

Build status

Travis CI build
AppVeyor CI build
Coveralls status (code coverage)

Distribution Tarball

gc-8.2.0.tar.gz (see the Assets above, md5: c3c04af9c1e4209e315eee50efe7b320)