summaryrefslogtreecommitdiff
path: root/src/dlls
AgeCommit message (Collapse)AuthorFilesLines
2017-02-12Remove never defined FEATURE_FUSIONdanmosemsft6-631/+0
2017-02-12Remove remainder of FEATURE_CORECLR (tool missed some files, also comments)danmosemsft1-3/+1
2017-02-12Remove always defined FEATURE_HOST_ASSEMBLY_RESOLVERdanmosemsft2-4/+0
2017-02-11Revert "Remove always defined FEATURE_CORESYSTEM"danmosemsft1-0/+12
This reverts commit 751771a8976f909af772e35c167bd7e3ffbe44c8.
2017-02-10Remove always undefined FEATURE_CAS_POLICYdanmosemsft1-4/+0
2017-02-10Remove always defined FEATURE_CORECLRdanmosemsft4-212/+0
2017-02-10Remove always undefined FEATURE_APTCAdanmosemsft1-4/+0
2017-02-10Remove always defined FEATURE_CORESYSTEMdanmosemsft1-12/+0
2017-01-24Delete unused files (#9082)mikedn4-144/+0
- *.vrg files (registry entries) - *.ini files (performance counters) - *.vcproj/vcxproj/vspscc/sln (out of date) - mscorrc.rc2 (not referenced from anywhere)
2017-01-23Disallow statics of spans and class instance members of span (#9061)Koundinya Veluri2-1/+5
Functional fix for #8516 to cover some additional cases. IL tests will be coming later in a separate PR.
2017-01-23[Local GC] Provide an implementation of GCToOSInterface for Unix-like ↵Sean Gillespie1-0/+6
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.
2017-01-20Fix debugger launch race hitting breakpoints in startup code. (#8951)Mike McLaughlin1-11/+52
The attached flag was been set asynchronously relative to the DebugActiveProcess returning. This could cause a race where the initial module load notification being missed/not sent to the debugger. This fix sets the attached flag before any notifications sent during launch if the runtime was launched/attached using the startup handshake after dbgshim tells the runtime to "continue" when the runtime startup API callback returns. Also fixes another race condition in dbgshim where EnumerateCLRs returns a NULL continue event handle because the coreclr module was loaded but the g_hContinueStartupEvent wasn't initialized on the runtime side yet. Changed the static initialization of g_hContinueStartupEvent to INVALID_HANDLE_VALUE and the InternalEnumerateCLRs sleep/retry loop to retry when any of the handles are INVALID_HANDLE_VALUE. This fixes the race only when you have the latest dbgshim and coreclr binaries and the old/new mixes still function but don't fix the race.
2017-01-15Remove unused mscoree files and code (#8956)mikedn12-1591/+1
2017-01-15Remove mscorpe cruft (#8957)mikedn7-198/+0
2016-12-26Remove files related to legacy build system (#8723)Robert18-1263/+0
2016-12-23Remove all usage of vsnprintf (#8709)Jan Vorlicek1-2/+2
This change removes all usages of vsnprintf and modifies runtime to not to use vsnprintf or _vsnprintf I've also fixed two issues in PAL TRACE function string format parameters that caused crashes when I was trying to run all PAL tests with PAL tracing enabled.
2016-12-18Remove Read/WriteProcessMemory from PAL. (#8655)Mike McLaughlin1-0/+1
Ifdef more unused code that uses ReadProcessMemory. Move the current memory probing in the transport to PAL_ProbeMemory. Add PAL_ProbeMemory to dac PAL exports. PAL_ProbeMemory may be changed to use write/read on a pipe to validate the memory as soon as we make it perform as well as the current code. Remove ReadProcessMemory tests and add PAL_ProbeMemory pal tests.
2016-12-09Remove sscanf and sprintf usage (#8508)Jan Vorlicek1-0/+1
* Remove sscanf * Remove sprintf
2016-12-08[x86/Linux] Fix inconsistent GetCLRFunction definitions (#8472)Jonghyun Park1-2/+0
* [x86/Linux] Fix inconsistency in GetCLRFunction definitions GetCLRFunction is treated as pfnGetCLRFunction_t which has __stdcall convention, but is implemented without __stdcall. This inconsistency causes segmentaion fault while initializing CoreCLR for x86/Linux. This commit fixes such inconsistency via adding __stdcall to GetCLRFunction implementation. In addition, this commit declares GetCLRFuntion in 'utilcode.h' and and revises .cpp files to include 'utilcode.h' instead of declaring 'GetCLRFunction'. * Remove unnecessary includes * Remove another unnecessay include
2016-12-01fix permissive C++ code (MSVC /permissive-) (#8337)Phil Christensen1-5/+12
* fix permissive C++ code (MSVC /permissive-) These were found by the C++ compiler group when doing "Real world code" build tests using /permissive-. We are sharing these with you to help you clean up your code before the new version of the compiler comes out. For more information on /permissive- see https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/. ---------------------------- Under /permissive-, skipping the initialization of a variable is not allowed. As an extension the compiler allowed this when there was no destructor for the type. void func(bool b) { if(b) goto END; int value = 0; //error C2362: initialization of 'value' is skipped by 'goto END' int array[10]; //Okay, not initialized. //... value used here END: return; } Fix 1) Limit the scope of value: { int value = 0; //... value used here } END: Fix 2) Initialize/declare value before the 'goto' int value = 0; if(b) goto END; //... value used here END: Fix 3) Don't initialize value in the variable declaration. int value; value = 0 //... value used here END: ------------------- Alternative token representations. The following are reserved as alternative representations for operators: and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq //Can't use reserved names for variables: static int and = 0; // Change name (possibly to 'and_') void func() { _asm { xor edx,edx // xor is reserved, change to uppercase XOR or eax,eax // or is reserved, change to uppercase OR } } * Apply formatting patch. * fixes from code review. I addressed @janvorli requests from the pull request code review.
2016-11-21Remove unsafe banned functions (#8162)Jan Vorlicek1-4/+6
This change removes _snwprintf, _snprintf and _vsnwprintf usage from CoreCLR and their implementations from PAL. PAL exposes their secure variants instead and CoreCLR now uses those instead. I have also removed the StringCchPrintfA/W, StringCchVPrintfA/W, StringCbVPrintfA/W, StringCbPrintfA/W, StringCbPrintfExA/W, StringCchVPrintfExA/W, StringCbVPrintfExA/W and StringCchPrintfExA/W replaced their usage by the secure variants of the sprintf functions, since they were used at only few places and implementing all of the variants using the secure sprintf variants would be a hassle. I also needed to fix a missing support for size modifiers for %p formatting character and for wide characters / strings in the secure sprintf functions that was revealed by the PAL tests. I have also removed a bunch of PAL tests that were using %n formatting character which was not implemented since it is considered unsafe and translated PAL tests that were using the removed functions to use the safe variants of those.
2016-11-09Fix missing exports in mscordaccore.so (#8058)Jan Vorlicek1-1/+7
I have recently added some exports to the mscordaccore.so and it was found that they were not honored and libsos.so got some unresolved symbols. I have found that the issue is that unlike for libcoreclr.so, we were not asking linker to include the whole PAL and so it has eliminated those functions due to the fact they were not called from the PAL itself. This change fixes it.
2016-11-04Remove more PAL functions (#8009)Jan Vorlicek1-2/+2
This change removes the following PAL functions and their related PAL tests: _i64tow _itow lstrcatW lstrcpyW wsprintfA wsprintfW lstrcpynW The lstrcpynW was actually used in two functions in palrt and I have replaced it with StringCchCopyNW. The _i64tow and _itow were used as an implementation of the _i64tow_s and _itow_s. Since these _s versions were also implemented in PAL for its internal purposes, I have exposed them and got rid of the unsafe versions.
2016-11-02Suppress SOS.NETCore.dll error msg in release mode (#6975)chunseoklee1-11/+12
Suppress error msg when running coreclr without SOS.NETCore.dll in release mode
2016-11-01Fix GitHub build break caused by change #1636179John Chen1-0/+6
[tfs-changeset: 1636227]
2016-10-28C++ conformance. (building with /permissive-) (#7855)Phil Christensen1-1/+1
These issues were found when building with the /permissive- flag in the latest version of MSVC. No tests were added/modified because this does not change any behavior. There are a few types of language conformance issues fixed in this: 1) Strict string conversion (this is also covered by the /Zc:strictStrings flag) The 'const' is not implicitly dropped by string literals, which means the following is not allowed: char str = "const string literal"; //error: cannot convert a 'const char' to a 'char*' This fix to to make str 'const char*'. (This can have a domino effect depending on where str is used) 2) Fully qualified inline declarations members inside class struct A { void A::f() { } // Error: illegal qualified name in member declaration, remove redundant 'A::' to fix }; 3) MSVC by default will allows name lookup in a dependent base. This is disabled by /permissive- template <class T> struct B { void f(); }; template <class T> struct D : public B<T> //B is a dependent base because its type depends on the type of T in D<T>. { //One possible fix is to uncomment the following line. If this //were a type we should have 'using typename'... //using B<T>::f; void g() { f(); //Error: identifier not found, one possible fix is change it to 'this->f();' } }; void h() { D<int> d; d.g(); } 4) Warning 4800 has been removed in version 19.1 (1910) of the compiler. For backwards compatability, surround the usage of 4800. This is not related to C++ conformance. #if _MSC_VER <= 1900 // 'BOOL' forcing value to bool 'true' or 'false' #pragma warning(disable: 4800) #endif
2016-10-25Merge pull request #7751 from ramarag/MemFailPointRama krishnan Raghupathy1-0/+1
Making MemoryFailPoint functional on xplat
2016-10-25Making MemoryFailPoint functional on xplatRama Krishnan Raghupathy1-0/+1
Expose GlobalMemoryStatusEx on Xplat
2016-10-24Fix performance problem introduced in previous change. (#7783)Mike McLaughlin1-1/+1
2016-10-04Add PGO GENPROFILE support to coreclr and clrjit (#7423)Daniel Podder1-0/+3
* Add PGO GENPROFILE support to coreclr and clrjit Update the cmake build system to enable support for Profile Guided Optimization (PGO) on Windows, and enable this feature for two target binaries (coreclr and clrjit). With this change, toggle between instrumented and profile-optimized settings for target binaries by passing pgoinstrument argument to the build.cmd Assume profile-optimized mode by default. Fall back to regular non-PGO optimized builds if profile data is not available.
2016-10-01Initial support of local variables and method arguments in GDB JIT interface ↵Evgeny Pavlov1-1/+2
(#7400)
2016-09-20Fix launch timing issue in dbgshim found in VS. (#7279)Mike McLaughlin1-2/+4
Issue #7274.
2016-08-19Create SOS SymbolReader managed project and change SOS to use it. (#6783)Mike McLaughlin1-2/+2
* Change SOS to use wrapper class that is now in System.Diagnostics.StackTrace. The portable PDB helper code for SOS source/line support has been moved from System.Diagnostics.Debug.SymbolReader to a new managed SOS project in the coreclr repo called SOS.NETCore. The public APIs have now been made internal. Plumb through the loaded PE address to the managed SymbolReader functions so it can be used as a key. Fixed a stack trashing/overflow when a unresolved managed breakpoint is resolved because one of the module name buffers was too small (MAX_PATH_FNAME). Changed it (and others) to MAXLONGPATH. SOS now works with Portable PDBs on Windows. New dac private get module data request. Used to get the necessary info for portable PDBs. SOS now supports in-memory PE's on xplat and Windows. Needed to get and plumb though the in-memory PE layout where it is file based or loaded. Better Windows GetLineByILOffset support. Uses the SymbolReader and now works with in-memory PEs. Misc code formatting and general cleanup. * Code review feedback.
2016-07-28Enable RefEmitted assemblies to have Fallback LoadContext notionGaurav Khanna1-0/+2
2016-07-22Set hr to S_OK instead of returning S_OKEvgeny Pavlov1-1/+1
2016-07-22Fix ildasm fail due missing GetInfoForMethod managed methodEvgeny Pavlov1-0/+1
2016-07-22Fix after review:Evgeny Pavlov1-1/+6
* Remove unneeded whitespace changes * Extract code related with managed delegate to separate header * Remove unneded files and defines from cmake files
2016-07-22Create coreclr delegate inside coreclr_initializeEvgeny Pavlov2-1/+23
2016-06-23Build the GC as part of its own CMake target (#5932)Sean Gillespie2-0/+2
2016-06-03Limit exports on debugger modules. (#5442)Mike McLaughlin9-118/+296
Remove obsolete ExecuteAssembly hosting API from coreclr. Needed to add palrt to dbi instead of trying to export from palrt. Didn't end up adding the --no-allow-shlib-undefined linker option because Centos and FreeBSD link with lots of undefined symbols from the C++ runtime libraries.
2016-06-02Fix details for CoreCLR binaryGaurav Khanna1-1/+1
2016-05-17Remove jitOnDllProcess{Attach,Detach}.Pat Gavlin1-15/+0
These functions have been obviated by a more clearly-defined JIT startup and shutdown interface. This fixes a crash in coreclr.dll during DLL unload: the runtime was calling jitOnDllProcessDetach (which calls jitShutdown) without having called jitStartup to initialized the JIT.
2016-05-11Change hosting API string encoding to UTF-8 on Windows (#4894)Jan Vorlicek1-2/+2
This change fixes a problem with the string encoding in the hosting API using CP_ACP, which causes problem when the input is a string in other language than the current Windows one. In such case, it loses some characters. The fix is to use UTF-8 encoding (which is what CP_ACP means on Unix PAL too).
2016-05-07Remove FEATURE_HOSTED_BINDER definition (#4838)Jan Vorlicek1-4/+0
The FEATURE_HOSTED_BINDER is always on so remove it from all the sources.
2016-05-04Remove O_RDWR from sem_open and better error codes on failure (#4772)Mike McLaughlin1-2/+3
Remove O_RDWR from sem_open and better error codes on failure
2016-04-28Load JIT from a custom locationGaurav Khanna1-0/+10
2016-04-27Fix FileLoadException message for CoreCLR (#4624)Jan Kotas1-1/+10
Fix FileLoadException message for CoreCLR
2016-04-26Merge pull request #4528 from gkhanna79/DynamicJITLoadGaurav Khanna1-1/+5
Refactor FEATURE_MERGE_JIT_AND_ENGINE to allow consuming JIT as a dynamic library
2016-04-26This has following changes:Rahul Kumar3-23/+3
1. Update arm64 toolset to latest. 2. Link against ucrt. 3. Fix tls offsets which have changed due to updated toolset 4. Fix source code in decimal.cpp to avoid integer overflow. Result of signed integer overlfow is undefined in C++. 5. Enable build of sos which can be loaded in arm64 windbg 6. Add nop to empty assembly marker methods as new toolset generates invalid .pdata for them.
2016-04-26Keep FEATURE_MERGE_JIT_AND_ENGINE with refactored approachGaurav Khanna1-1/+5