Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libgc
AgeCommit message (Collapse)Author
2017-08-15[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)Zoltan Varga
2017-07-15[profiler] Clean up MonoProfilerGCEvent enum.Alex Rønne Petersen
* Remove the mark/reclaim events as they've been broken for a long time and aren't particularly useful. * Reorder the enum member declarations to the order they actually arrive in.
2017-02-21correct spelling mistakes (#4405)Edward Betts
2017-01-27A few more LF .gitattributes fixesAlexander Köplinger
2016-12-14[runtime] Refactor and unify tls accessVlad Brezae
The purpose of this commit is to unify tls access across all platforms. We had tls information spread out throughout the entire code which was guarded with many defines/capabilities which made very hard to follow what was going on. Also this made switching between pthread and __thread very unstable since there were a lot of dependencies between different pieces of the tls infrastructure. Also it was not very clear what happens if one of the tls pieces failed. Now we are moving all the tls variables to a single module that provides getters/setters and initialization API. Runtime code now knows that we can always access a tls variable (from managed code, we just do a nowrapper icall into the same global geters/setters). Even though we used to these type of calls all around before, it is worth mentioning that runtime should account for a thread to be in this type of unregistered code without m2n wrapper and no register jinfo. On average this makes common tls intensive methods (m2n wrappers and managed allocator) 20% slower, with potential for more regression if we use tls getters/setters recklessly. As a consequence we will re-enable the most important pieces of fast tls code in the future.
2016-08-30[profiler] Acquire the exclusive buffer lock after the suspend lock.Alex Rønne Petersen
This prevents possible STW deadlocks.
2016-07-28[libgc] fix musl incorrect sigcontext includeAngelo Compagnucci
On musl __GLIBC__ is not defined, so the conditional logic will not produce correct result. Add a specific case to handle when __GLIBC__ is not defined.
2016-05-27[win32_threads] Mark an inline function as static.Vincent Povirk
If the C compiler decides not to inline the function, and it's not declared static, it'll look for an extern version, and linking will fail.
2016-04-07[libgc] Fix broken AC_TRY_COMPILE() invocation in configure.ac.Alex Rønne Petersen
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=40144 Tested on PowerPC by Mathieu Malaterre <malat@debian.org>.
2016-02-08libgc: use __builtin_frame_address in GC_approx_spJames Laird-Wah
With GCC 5.x, the compiler optimises away the dummy load used to estimate the stack pointer address in GC_approx_sp; it returns zero. This leads to segfaults when embedding Mono. Instead, use __builtin_frame_address, which GCC's libgc uses for the same purpose.
2016-02-03Merge pull request #2542 from akoeplinger/remove-changelogAlexander Köplinger
Remove ChangeLog files from the repo
2016-02-02[Makefile] fix make dist on libgcMiguel de Icaza
2016-01-30Check for libtoolize rather than libtoolNeil Mayhew
Current Debian packaging puts libtool in its own package (libtool-bin) leaving only libtoolize in the main package. The mono build process uses libtoolize not libtool, so during autogen check for libtoolize not libtool.
2016-01-29Remove ChangeLog files from the repoAlexander Köplinger
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-25Remove libgc/depcomp and libgc/missing, newer automake versions seem to ↵Zoltan Varga
overwrite them.
2015-11-18[boehm] Put *_freelists into thread_local_freelists (as in BDWGC v7)Ivan Maidanski
Mono create_allocator accesses libgc private *_freelists directly. These fields have been grouped together into struct thread_local_freelists in BDWGC v7. This commit does code refactoring to match the structure of external GC regarding *_freelists. * Move GRANULARITY, NFREELISTS (used by *_freelists) out of GC_Thread_Rep. * Move ptrfree_freelists, normal_freelists, gcj_freelists from GC_Thread_Rep to struct thread_local_freelists. * Add tlfs field (of type struct thread_local_freelists) to GC_Thread_Rep. * Update pthread_support.c and boehm-gc.c code accordingly.
2015-11-18[boehm] Match BDWGC v7 APIIvan Maidanski
Mono-specific libgc functionality has been recently added to BDWGC. This commit changes API of included Boehm GC to match that of the external GC. * Renaming: - GCEventType -> GC_EventType - GC_get_restart_signal -> GC_get_thr_restart_signal - GC_toggleref_register_callback -> GC_set_toggleref_func - GC_set_finalizer_notify_proc -> GC_set_await_finalize_proc * Replace global variable with a setter: - GC_notify_event -> GC_set_on_collection_event() (acquires GC lock) * Foreign threads registration: - add GC_allow_register_threads() (no-op for GC v6, called by mono_gc_base_init) - add GC_SUCCESS, GC_DUPLICATE, GC_NO_MEMORY, GC_UNIMPLEMENTED macros - add struct GC_stack_base - replace GC_thread_register_foreign(void*) with GC_register_my_thread(struct GC_stack_base) - define GC_register_my_thread also for Solaris and Win32 - GC_register_my_thread returns GC_DUPLICATE if already registered * Toggle-ref callback declaration change: - add GC_ToggleRefStatus (enum type) - callback returns GC_ToggleRefStatus instead of int * Toggle-ref addition status checked: - GC_toggleref_add return type changed from void to int - GC_toggleref_add returns GC_SUCCESS or GC_NO_MEMORY - static ensure_toggleref_capacity() returns FALSE if GC MALLOC failed - call g_error() if GC_toggleref_add failed * Conditional public function declaration: - wrap GC_DllMain declaration into ifdef GC_INSIDE_DLL - define GC_INSIDE_DLL prior to include gc.h
2015-05-15[runtime] Drop support for external libgc.Alex Rønne Petersen
This has not been supported for a while, so remove it.
2014-10-29[libgc] Eliminate warning about redefinition of GC_WIN32_THREADSAlex J Lennon
Makefile defines GC_WIN32_THREADS as 1 but gc_config_macros was redefining as defined but with no value. Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
2014-10-26[build] Enable dolt on mingw32Kornel Pal
2014-07-31Support for GNU/kFreeBSD.Jo Shields
GNU/kFreeBSD is an experimental OS provided by the Debian project, consisting of a FreeBSD kernel and GNU userland/libc. For a small number of cases, this offers advantages over a more common GNU/Linux combination, such as fast in-kernel support for ZFS storage. This patch changes various ifdefs, either using __FreeBSD_kernel__ where a trait from the kernel is what matters, or __GLIBC__ where a trait from the C library matters. This patch set has been carried downstream, in one form or another, since 1.2.3.1-1. https://bugzilla.novell.com/show_bug.cgi?id=321634
2014-06-15[runtime] Enable support for arm64-darwin in dolt.Zoltan Varga
2014-06-10Add build system plumbing for building with -Werror.Alex Rønne Petersen
2014-06-08Fix typo in bf703c4a8f95db4859452474499038c7539ea3c7.Alex Rønne Petersen
2014-06-07Disable -Wreturn-local-addr in libgc/mark_rts.c!GC_approx_sp with GCC 4.8.0+.Alex Rønne Petersen
2014-05-30[boehm] Implement the finalization extension API.Rodrigo Kumpera
2014-05-25Rename configure.in -> configure.ac. Based on PR #976.Alex Rønne Petersen
2014-05-14[boehm] Implement mono_gc_get_restart_signal.Rodrigo Kumpera
2014-04-18Fix my last commit to match our libgc's declaration style.Alex Rønne Petersen
2014-04-18Hopefully fix a build error in libgc on some compilers.Alex Rønne Petersen
../../libgc/alloc.c: In function ‘GC_stopped_mark’: ../../libgc/alloc.c:501:9: error: implicit declaration of function ‘GC_cond_register_dynamic_libraries’ [-Werror=implicit-function-declaration] GC_cond_register_dynamic_libraries();
2014-03-14[boehm] Fix memory management for toggleref.Rodrigo Kumpera
Replace GC_free with GC_INTERNAL_FREE. The former might take the GC lock and deadlock us. Replace GC_INTERNAL_MALLOC with GC_INTERNAL_MALLOC_IGNORE_OFF_PAGE as we don't need the rest of the GC messing around with the toggleref array.
2014-02-27[boehm] Add toggleref support for boehm. This is line by line port of the ↵Rodrigo Kumpera
sgen code, so keep them in sync.
2013-12-04Unbreak libgc.Alex Rønne Petersen
2013-12-04Remove some more mdb bits.Alex Rønne Petersen
2013-08-13Fixed some compiler warnings in libgcJeffrey Stedfast
2013-07-29Fix a missing return statement in 16d2bcaa379be0c38f84492a5528c5ab6dcd7e7d.Alex Rønne Petersen
2013-07-21libgc: Use GCC atomics on ARM.Alex Rønne Petersen
This is to ensure that if the runtime is compiled for e.g. ARM v4 or v5, it will use the correct atomics on v6 and v7.
2013-07-15Avoid using dmb/dsb/dib instructions on ARM v6.Alex Rønne Petersen
This only worked by accident before the HAVE_ARMV<N> changes because __ARM_ARCH_6__ is never defined by any compiler.
2013-07-12Add ARM version detection to configure and use the resulting macros.Alex Rønne Petersen
This defines ARM_VERSION_{5,6,7}. Several of these can be defined at once. For example ARM_VERSION_5 and ARM_VERSION_6 will both be defined if the target is an ARM v6 CPU. Previously, we defined HAVE_ARMV6 based on running a program. This obviously didn't work for cross-compilation. This new approach does, and detects more cases (v5, v6, v7) than the previous check (v6).
2013-05-30Enable dolt on ios builds.Zoltan Varga
2013-05-25Merge some Nacl/ARM changes from ↵Zoltan Varga
https://github.com/igotti-google/mono/commit/65d8d68e8c81cf6adb1076de7a9425c84cab86a3.
2013-05-09gcconfig.h - Add weak attribute to avoid __data_start undefined messages on ↵Neale Ferguson
dlopen mini-s390x.c - Add profiling support to prolog/epilog instrumentation
2013-04-07NaCl ARM work, first passElijah Taylor
2013-04-07NaCl runtime fixesElijah Taylor
- fix compile/runtime issues caused by upstream changes - add NaCl glibc support - various changes to support running tests in NaCl glibc from 'make check'
2013-03-21NaCl GC improvementsElijah Taylor
- inline managed code implementation (add x86 test mem imm8 codegen macro for this as well) - clean up libgc NaCl code - centralize mono_nacl_gc into mini.c
2013-02-23Merge pull request #554 from deplinenoise/ppc_fixesMiguel de Icaza
PPC build fixes
2013-02-12Include <stdint.h> to allow cross-compilation from OS X.Josh DuBois
Cross-compiling mono on an OS X host for a Windows target using mingw-w64 fails because of undefined __int64 types in a couple of places. Including <stdint.h> fixes this and allows the OS X host to cross-compile a Windows mono. It probably sounds like an obscure use-case, but the wine-mono project does just this, so ability to cross-compile for Windows on OS X is crucial to being able to build wine-mono on a Mac.
2013-02-11Prefer __sync_bool_compare_and_swap() over PPC inline asm.Andreas Fredriksson
Debian's GCC 4.4 in particular does not compile the PPC assembly.
2013-01-17Add long links support to Boehm.Rodrigo Kumpera
* gc.h: Added parts of boehm 7.3a long link API. * finalize.c (GC_finalize): Implemented long link support by adapting code from boehm 7.3a. The idea is to have two table of links, one for regular and another for the long links. Regular links are processed before finalization and the long ones right after. The bulk of the changes are abstracting the disappearing link hashtable into a data structure so we can have two of them. Boehm code came from github.com/ivmai/bdwgc.git. Authors of the relevant changes are Zach Saw and Ivan Maidanski.
2013-01-09Fix the check for autoheader in eglib/autogen.sh and libgc/autogen.sh too.Zoltan Varga