summaryrefslogtreecommitdiff
path: root/src/md
AgeCommit message (Collapse)AuthorFilesLines
2018-07-24Fix mscordbi metadata reader alignment bug on Linux. (#19070)Mike McLaughlin2-0/+9
Works fine on Windows minidumps, but on Linux (via OpenVirtualProcess for production breakpoints and future core dumps) the compiler's struct alignment rules are different. On Windows, classes/structs are aligned based on the largest field. On Linux, they are 4 byte aligned regardless of the field sizes. https://github.com/dotnet/coreclr/issues/17692
2018-06-14clean up list of disabled warnings. (#18318)Sergey Andreenko1-14/+14
* delete warnings that do not longer exist For example C4171 was deleted after VS 6.0 (https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa233011(v=vs.60)) * delete C4206 fromm the list because its default value is 4, so this line is useless. * reenable warning as error. * enable warning C4430 and fix places that trigger it. * fix C4334 * format the list * fix ssize_t
2018-06-03Warnings cleanup (#18260)Robin Sue3-4/+2
* Cleanup all disabled warnings that do not trigger * Fix warning about line continuation in single line comment * Eliminiate all unreferenced local variables and reenable warning
2018-05-27Typo (#18141)John Doe1-1/+1
* Ajusted -> Adjusted * alot -> a lot * Ambigous -> Ambiguous * amoun -> amount * amoung -> among * Amperstand -> Ampersand * Anbody -> Anybody * anddoens't -> and doesn't * anme -> name * annoations -> annotations * annother -> another * anothr -> another * ansynchronous -> asynchronous * anticpation -> anticipation * anway -> anyway * aother -> another * Apparant -> Apparent * appartment -> apartment * appdmomain -> appdomain * Appdomian -> Appdomain * appdomin -> appdomain * approproiate -> appropriate * approprate -> appropriate * approp -> appropriate * appened -> appended * appropiately -> appropriately * appropraitely -> appropriately * Apperantly -> Apparently * approp. -> appropriate * Approriate -> Appropriate
2018-05-24Typo (#18122)John Doe1-1/+1
* acquringing -> acquiring * Activ -> Active * activley -> actively * acutal -> actual * bIncomingIPAdddefed -> bIncomingIPAddRefed * adddr -> addr * readding -> reading * Addfunction -> AddFunction * additionnal -> additional * Additonal -> Additional * Additonally -> Additionally * Addresss -> Address * addtion -> addition * aded -> added * aditional -> additional * adjustements -> adjustments * Adress -> Address * afer -> after * aformentioned -> aforementioned * afte -> after * agains -> against * agaisnt -> against * aggresively -> aggressively * aggreates -> aggregates * aggregious -> egregious * aginst -> against * agregates -> aggregates * Agressive -> Aggressive * ahve -> have * ajdust -> adjust * ajust -> adjust * alement -> element * algoritm -> algorithm * alighnment -> alignment * alignmant -> alignment * constraits -> constraints * Allcator -> Allocator * alllocate -> allocate * alloacted -> allocated * allocatate -> allocate * allocatoror -> allocator * alloctaed -> allocated * alloction -> allocation * alloted -> allotted * allt he -> all the * alltogether -> altogether * alocate -> allocate * alocated -> allocated * Alocates -> Allocates * alogrithm -> algorithm * aloocate -> allocate * alot -> a lot * alwasy -> always * alwyas -> always * alwys -> always
2018-04-13Fix OpenVirtualProcess on Linux issue. (#17551)Mike McLaughlin1-3/+5
2018-03-24Delete unused files from src/inc (#17186)Jan Kotas1-1/+0
2018-02-17delete unused mirror files (#16423)Sergey Andreenko33-33/+0
2018-01-29Fix metadata format error checking (#16036)Jan Kotas1-0/+5
NextStream_Verify can return NULL for invalid file. Report error for it instead of AVing. Similar check is around the other calls to NextStream_Verify. It was missing here for some reason.
2018-01-23Delete dead code (#15990)Jan Kotas1-7/+0
2017-10-27Delete dead code (#14703)Jan Kotas3-7633/+0
2017-05-22[x86/Linux] Use CDECL (instead of STDCALL) as STDMETHODCALLTYPEJonghyun Park2-3/+3
2017-05-17Finish deleting dead CAS code from CoreLib (#11436)Jan Kotas1-137/+0
Fixes #9321 and deletes CleanupToDoList.cs Delete unmanaged security implementation
2017-05-09Fix static analysis issues (#11466)Koundinya Veluri2-12/+20
Fix static analysis issues
2017-04-03Fix InternalsVisibleTo when it references an assembly with some ↵Koundinya Veluri1-1/+1
DebuggableAttribute flags (#10664) Fixes #3541 - Mask out the DebuggableAttribute bits from when comparing assembly spec flags for matching an InternalsVisibleTo reference to an assembly
2017-03-25Typo correction (#10482)Ofer Zelig1-1/+1
2017-03-23Delete NewMergerJan Kotas11-7101/+1
This was only used as part of C++ link.exe for IJW
2017-03-23Enable FEATURE_METADATA_EMIT_ALL for non-crossgen compilesBruce Forstall6-3/+12
This allows ilasm roundtrip test to work with NetStandard 2.0 changes where C# compiler emits a ".permissionset" attribute into the assembly that ildasm emits. This define enables the APIs that ilasm uses to process this attribute. Re-enable ilasm roundtrip test. Fixes #8418
2017-02-14Remove never defined FEATURE_METADATA_STANDALONE_WINRTdanmosemsft10-51/+19
2017-02-14Remove never defined FEATURE_METADATA_STANDALONE_WINRT_ROdanmosemsft4-59/+0
2017-02-14Remove never defined FEATURE_INCLUDE_ALL_INTERFACESdanmosemsft2-10/+0
2017-02-12Remove never defined FEATURE_FUSIONdanmosemsft5-2466/+0
2017-02-12Remove never defined FEATURE_COMINTEROP_TLB_SUPPORT and files that require ↵danmosemsft3-8837/+0
it to be defined
2017-02-10Remove always defined FEATURE_CORECLRdanmosemsft12-276/+0
2016-12-26Remove files related to legacy build system (#8723)Robert43-1089/+0
2016-12-23Remove all usage of vsnprintf (#8709)Jan Vorlicek1-1/+4
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-01fix permissive C++ code (MSVC /permissive-) (#8337)Phil Christensen3-33/+49
* 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-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-07-23The call to printf expects a string argument, but the actual argument was of ↵vinnyrom1-1/+1
class type 'PathString'. (#6422)
2016-05-25WinMD Adapter should only lookup mscorlib in WinMD referencesGaurav Khanna1-1/+3
2016-05-16Initial change to support System.Private.CoreLib.dll as Core Library.Gaurav Khanna1-1/+1
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-04-29Add query handling of IUnknown for MergeTokenManager and CMapToken (#4563)shion1-10/+38
2016-03-21Delete legacy netcf compat support (part 1)Jan Kotas1-10/+0
2016-03-09Delete dead codeJan Kotas1-17/+0
- Delete BINDER, STANDALONE_BINDER and MDIL ifdefs
2016-02-29Support long paths in CoreCLR runtime on WindowsJohn Chen (JOCHEN7)2-10/+8
The CoreCLR runtime is updated to support long file paths on Windows. Pending updates to mscorlib.dll, the following scenarios are supported: * Run managed apps from a long path. * Load CoreCLR runtime and framework from a long path. * Load user assemblies from a long path. * Run CrossGen from a long path, with its input/output from a long path. * Generate debug log file at a long path. The following scenarios are not yet supported, and will be fixed in future commits: * Mscorlib.dll and framework assemblies are not yet long path compatible. Note that until mscorlib.dll is fixed, most of the runtime changes can't actually be used. * Support on non-Windows platforms. * Support for debugging and error reporting. * Tools such as ilasm or ildasm.
2016-02-19This Change Adds initial Support for LongFiles in the VM,Rama Krishnan Raghupathy3-80/+64
They are: 1. Wrappers for OS APIs which take or return PATHS 2. Fixing the usage of following Api's: GetEnvironmentVariableW SearchPathW GetShortPathNameW GetLongPathNameW GetModuleFileName Work remaining: Remove fixed size buffers in the VM
2016-01-27Update license headersdotnet-bot137-548/+411
2016-01-21FIx the incremental build for WindowsJan Vorlicek22-22/+22
Conflicts: build.cmd src/dlls/clretwrc/CMakeLists.txt Cleanup
2015-11-23Delete code under !NO_CRT defineJan Kotas9-16/+5
It is always defined - even in internal builds
2015-10-29Port .NET Framework 4.6.1 changesJan Kotas1-0/+4
Core runtime and GC changes from https://github.com/Microsoft/dotnet/blob/master/docs/releases/net461/dotnet461-changes.md that are not in CoreCLR yet [tfs-changeset: 1543382]
2015-10-07correct word spellingあまみや ゆうこ1-1/+1
2015-09-25Fix for 134453: fix prefast warningsRahul Kumar5-11/+30
[tfs-changeset: 1529946]
2015-09-08Replace MAX_PATH with new defines, rest of coreclr.Lakshmi Priya Sekar2-4/+4
2015-08-26Return error upon attemping to create named objects in PAL.Koundinya Veluri2-9/+3
Update PAL APIs that create named objects (mutex, semaphore, event, file mapping) to return a not-supported error code. It was decided to not support cross-process synchronization in PAL at present time due to complexities involved in reliably emulating Windows' behavior. @stephentoub has already made changes on the FX side to throw PlatformNotSupportedException in these cases. Related to issue #1237.
2015-07-29Fix prefast warnings in CLR codeEugene Zemtsov2-2/+2
[tfs-changeset: 1507366]
2015-06-05Fix bug: CoreCLR debugger couldn't make more than one EnC edit to a method. ↵Eugene Zemtsov1-1/+5
Second and all further attempts failed, moreover sometimes VS debugger would crash with AV trying to do EnC. (TFS bug #1172983) [tfs-changeset: 1483755]
2015-05-26Fix warning no-overloaded-virtualJan Vorlicek2-0/+11
This warning is issued when a derived class defines a virtual method with the same name as its base class, but different set of parameters. The base class virtual method is hidden in that case. Clang issues a warning here. To fix the warning, I have added "using Base::Method" to the private section of all the derived classes.
2015-05-26Fix the virtual destructor warningJan Vorlicek8-7/+10
This change changes destructors to be virtual or adds virtual ones where they were missing based on the clang warnings.
2015-05-07Merge changes from parent branchdotnet-bot4-10/+64
[tfs-changeset: 1466545]