summaryrefslogtreecommitdiff
path: root/src/gc/unix
AgeCommit message (Collapse)AuthorFilesLines
2017-06-01[Local GC] Remove uses of g_SystemInfo from the GC (#11628)Sean Gillespie1-0/+12
* [Local GC] Don't use g_SystemInfo to infer the number of processors * [Local GC] Avoid using g_SystemInfo.dwAllocationGranularity from within the GC. In a few places, the GC aligns the size of a request memory reservation to the allocation granularity before calling GCToOSInterface::VirtualReserve. Upon inspection, this isn't necessary. * [Local GC] Remove uses of g_SystemInfo from the handle table * Add new API on GCToOSInterface for querying the total number of procs on the machine
2017-06-01Fix a build break in feature branch caused by obsolete error (#11335)Sean Gillespie1-4/+0
2017-06-01[Local GC] Scaffolding for loading a standalone GC (#11242)Sean Gillespie1-3/+3
* Configure the build system to build a CoreCLR capable of loading a standalone GC * Proto-implementation of dynamic GC loading * Build the GC with the VM's CMakeLists when doing a non-standalone build of the GC * [Local GC] Introduce a new feature define, FEATURE_STANDALONE_GC_ONLY, to be used by the CI to explicitly test local GC dynamic loading code paths * Fix the FEATURE_STANDALONE_GC_ONLY build for unix linkers * Rebase against master * Code review feedback: use the existing Unix exports file
2017-05-29Implement GetCurrentProcessCpuCount for Unix and merge NumberOfProcesors ↵Tom Deseyn3-4/+95
implementations. (#11742) * Implement GetCurrentProcessCpuCount for Unix and merge NumberOfProcessors implementations. * Split GetCurrentProcessCpuCount in PAL and non-PAL parts * gcenv.unix.cpp: GetCurrentProcessAffinityMask: revert, GetCurrentProcessCpuCount: add implementation * bugfix: #if instead of #ifdef HAVE_SCHED_GETAFFINITY * Remove PAL_GetCurrentProcessCpuCount * gcenv.unix: implement GetCurrentProcessAffinityMask, GetCurrentProcessCpuCount * numa.cpp: initialize g_cpuToAffinity[i].Number when numa.h is missing * cleanup * mscorwks_unixexports.src: Add GetProcessAffinityMask * PR feedback * Add GetProcessAffinityMask to mscordac_unixexports.src
2017-04-22Remove destructor from GCEvent and instead rely on the OS to clean up (#11132)Sean Gillespie1-6/+0
* Remove destructor from GCEvent and instead rely on the OS to clean up * Add a comment justifying the lack of destructor * wording: many -> all
2017-04-14[Local GC] Move operations on CLREventStatic to the EE interface (#10813)Sean Gillespie6-16/+390
* [Local GC] Move operations on CLREventStatic to the EE and add their functionality to the interface * Fix a missed case * Split GetWaitForGCEvent into two smaller interface methods to avoid exposing the event itself on the interface * Initial implementation for Unix * Complete unix implementation * Make it work on Windows * Remove redudant methods from GCToEEInterface * Fix the Linux build * First part of code review feedback: make GCEvent dispatch statically (Windows) * Second part of code review feedback: make GCEvent dispatch statically (Unix) * Standardize implementation across Windows/Unix (apparently MSVC is more lenient about constructor names than clang) * Address code review feedback: Add Create*Event methods back onto GCEvent and remove them from GCToOSInterface * Address code review feedback: remove a dead define * Remove a bad comment, remove an unnecessary friend class, fix some formatting issues * Fix an issue when initializing a GCEvent on Linux (should not be allocating an Impl in the constructor) * Fix the same issue on Windows (less bad, just leaks memory instead of asserting)
2017-04-14Implement MEM_RESET handling in VirtualAlloc on Unix (#10939)Jan Vorlicek1-2/+14
2017-03-22memory limit in containers on linuxrahul3-5/+365
2017-01-23[Local GC] Provide an implementation of GCToOSInterface for Unix-like ↵Sean Gillespie4-0/+691
platforms (#8976) * Add way to build with FEATURE_STANDALONE_GC from build.sh * Make CMake changes to build the GC 'PAL' as its own build target (to avoid -nostdinc). In addition, introduce a "GC PAL" that provides an implementation of GCToOSInterface on Unix-like platforms, for use with FEATURE_STANDALONE_GC.