summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-11-17Merge pull request #2079 from mikedn/no-decompJan Kotas1-0/+2
Ifdef out useless code in JIT lowering
2015-11-17Merge pull request #2082 from BruceForstall/Fix2053Bruce Forstall1-1/+3
Fix RyuJIT assert 'emitCurIG != emitPrologIG'
2015-11-17Merge pull request #2061 from akoeplinger/utf-escapeJan Kotas3-7/+7
Replace Unicode symbols with escape sequence in test source files
2015-11-17Merge pull request #2010 from ellismg/update-test-documentationJan Kotas1-18/+2
Update testing instructions
2015-11-17Merge pull request #2064 from akoeplinger/failcount-zeroJan Kotas1-1/+1
Don't print the "Some tests failed" message when _failCount is 0
2015-11-17Merge pull request #2062 from akoeplinger/dont-hardcode-libc.dylibJan Kotas2-13/+8
Fix two Marshal tests to not hardcode OSX libc
2015-11-17Merge pull request #2042 from kouvel/StartupFlagsJan Kotas3-12/+97
Allow setting some startup flags outside Windows
2015-11-17Merge pull request #2049 from stephentoub/uuid_generate_randomJan Kotas1-3/+3
Use uuid_generate_random instead of uuid_generate in CoCreateGuid
2015-11-17Merge pull request #2067 from akoeplinger/fix-overflow-gcstressJan Kotas1-1/+1
Fix OverflowException in b115557.cs GC test on systems with fewer than four processors/cores
2015-11-17Merge pull request #2073 from mmitche/fix-exit-codeMatt Mitchell1-0/+1
Exit outerlevel build call if innerlevel exits with non-zero code
2015-11-17Fix RyuJIT assert 'emitCurIG != emitPrologIG'Bruce Forstall1-1/+3
This occurs when the call-to-finally block exists as the last code in the function (including any funclets). After we generate all "normal" code, we start over and generate code for all the prologs and epilogs. In this case, we didn't reset the emitForceNewIG global, which determines if we should force a new IG to be created the next time code is generated. It is used for specifying no-GC regions. This fix initializes it (along with emitNOGCIG) at the beginning of generating and prolog or epilog.
2015-11-17Merge pull request #2066 from akoeplinger/argparsing-gcstressJan Kotas2-7/+7
Use InvariantCulture for parsing float arguments in GC stress tests
2015-11-17Exit outerlevel build call if innerlevel exits with non-zero codeMatt Mitchell1-0/+1
2015-11-17Merge pull request #2074 from erozenfeld/RotateTestFixEugene Rozenfeld1-1/+1
Fix for test break.
2015-11-17Merge pull request #2016 from steveharter/CMakeSteve Harter14-59/+272
Enable Clang sanitizers for debug builds (address sanitizer, undefined behavior sanitizer and leak sanitizer)
2015-11-17Ifdef out useless codeMike Danes1-0/+2
In 64 bit builds Lowering::DecompNodeHelper does nothing so walking the trees is pointless. Profiling indicates that this accounts for 0.5% of the mscorlib crossgen time.
2015-11-17Merge pull request #1983 from LLITCHEV/SystemVStructsCleanupPat Gavlin4-21/+69
Fixed a bad merge issue.
2015-11-17Enable CLANG sanitizers for native debug buildsSteve Harter14-59/+272
2015-11-17Fix for test break.Eugene Rozenfeld1-1/+1
2015-11-16Merge pull request #2069 from erozenfeld/RotationFixEugene Rozenfeld2-3/+18
Fix for a rotation transformation bug.
2015-11-16Fixed a bad merge issue and some internal API cleanup.Lubomir Litchev4-21/+69
Sometime ago when the SystemVStructs branch was PRed into master a bad merge has occured. Some struct classification cleanup for native vs. managed struct layout representation. When classifying a native layout of the struct use the following algorithm. 1. If the struct has special marshaling it has a native layout. In such cases the classifier needs to use the native layout. 2. For structs with no native layout, the managed layout should be used even if classified for the purposes of marshaling/PInvoke passing.
2015-11-16Fix for a rotation transformation bug.Eugene Rozenfeld2-3/+18
rotatedValueBitSize should be calculated from genActualType(rotatedValue->gtType) instead of rotatedValue->gtType. I added a test that was failing with an assert because of this bug: rol32ushort.
2015-11-16Merge pull request #2052 from stephentoub/startswith_nullMatt Ellis1-22/+24
Add USEARCH_DONE check to StartsWith in System.Globalization.Native
2015-11-16Fix OverflowException in b115557.cs GC test on systems with fewer than four ↵Alexander Köplinger1-1/+1
processors/cores _allocPerThreadMB/2 can be larger than what fits into byte (because it's based on the number of processors/cores), resulting in an OverflowException on those systems.
2015-11-16Use InvariantCulture for parsing float arguments in GC stress testsAlexander Köplinger2-7/+7
Otherwise they'd fail on cultures where '.' isn't used as a decimal separator.
2015-11-16Don't print the "Some tests failed" message when _failCount is 0Alexander Köplinger1-1/+1
2015-11-16Fix two Marshal tests to not hardcode OSX libcAlexander Köplinger2-13/+8
Don't hardcode OSX path to libc.dylib, we can just use libc in the DllImport. Fix the signature to return an IntPtr and do marshalling of the string correctly.
2015-11-16Replace Unicode symbols with escape sequence in test source filesAlexander Köplinger3-7/+7
Those files don't have a BOM and can be misinterpreted.
2015-11-16Merge pull request #2057 from bryanar/loader_testsBryan P. Arant183-0/+30791
Porting loader tests from internal legacy tree.
2015-11-16Merge pull request #2060 from mmitche/fix-arm-rootfsMatt Mitchell1-1/+1
Fix typo in rootfs name
2015-11-16Fix typo in rootfs nameMatt Mitchell1-1/+1
2015-11-15Porting loader tests from internal legacy tree.Bryan Arant183-0/+30791
2015-11-15Add USEARCH_DONE check to StartsWith in System.Globalization.Nativestephentoub1-22/+24
The StartsWith ICU wrapper was not checking the result of usearch_first to see if it was USEARCH_DONE, indicating no match found. This has two ramifications: 1. When there isn't a match, USEARCH_DONE (-1) gets passed in as the textLength argument to ucol_openElements, which treats -1 as meaning the string isn't null-terminated, and thus ends up walking the string looking for non-ignorable collation elements. Our tests have been passing because they've been using strings containing only non-ignorable elements, and thus the first character checked causes us to bail and correctly return false. If nothing else, this is an unnecessary perf overhead. 2. But on top of that if there are only ignorable collation elements before the first null character in the string (e.g. if the string begins with a null character), then because we told ICU that the string ended at the first null character, it'll stop walking the string and return a match. e.g. "\0bug".StartsWith("test") returns true incorrectly. This commit simply adds a check for USEARCH_DONE to StartsWith. EndsWith already has such a check.
2015-11-15Merge pull request #2043 from stephentoub/startsendswith_nullStephen Toub3-16/+16
Pass target string lengths to ICU on Unix
2015-11-14Merge pull request #2046 from JohnChen0/heapJan Kotas1-2/+0
Remove an unsafe memory write in HeapFree
2015-11-14Use uuid_generate_random instead of uuid_generate in CoCreateGuidstephentoub1-3/+3
The PAL implementation of CoCreateGuid is currently using uuid_generate. This will be based on high-quality randomness if available, otherwise it falls back to an algorithm that incorporates the local ethernet MAC address along with the current time and a pseudo-random generator. To avoid potential privacy issues, this commit switches to using uuid_generate_random, which instead falls back purely to a pseudo-random generator.
2015-11-13Allow setting some startup flags outside WindowsKoundinya Veluri3-12/+97
Allowing the GC-related flags to be set using properties passed into coreclr_initialize.
2015-11-13Remove an unsafe memory write in HeapFreeJohn Chen1-2/+0
The PAL implementation of HeapFree assumes that the memory region always have at least 4 bytes. Depending on the heap implementation, this is not necessarily true, and can potentially cause memory corruption.
2015-11-13Merge pull request #2045 from JohnChen0/masterJohn Chen1-4/+6
Fix buffer overrun in SetMscorlibPath
2015-11-13Fix buffer overrun in SetMscorlibPathJohn Chen1-4/+6
2015-11-13Pass target string lengths to ICU on Unixstephentoub3-16/+16
Our current ICU shims for StartsWith, EndsWith, IndexOf, and LastIndexOf take the length of the source string but not the length of the target string. This forces ICU to compute the length of the string by searching for a null terminator. We can save those costs and be more accurate around nulls in the target string by passing the known length in.
2015-11-13Merge pull request #2034 from dotnet-bot/from-tfsJan Kotas1-2/+4
Merge changes from TFS
2015-11-12Merge pull request #2033 from brianrob/crossgen_perfmap2Brian Robbins8-58/+378
Enable Offline Generation of Text-Based Symbol Tables for NGEN Images
2015-11-12Merge pull request #2030 from jkotas/vs2015-update1-buildbreakJan Kotas1-1/+1
Fix build break on VS2015 Update 1
2015-11-12Merge pull request #2013 from mikem8361/createthreadMike McLaughlin13-58/+171
Fix Thread.Start while debugging bug on OSX.
2015-11-13Merge pull request #2031 from janvorli/fix-exceptions-in-filterJan Vorlicek2-2/+28
Fix processing of unhandled exception in exception filter
2015-11-12Fix Thread.Start while debugging bug on OSX.Mike McLaughlin13-58/+171
The OSX exception logic is running on a separate thread from the one that the exception happened. The CatchHardwareExceptionHolder::IsEnabled used to check for h/w exception holders assumed it was running on the thread the exception/holders happened not the exception notification thread. Moved the h/w exception holder count to the CPalThread object instead of a TLS thread variable so the OSX exception code can check it given a CPalThread instance. The main problem was that the stubmgr when creating a thread (for the start notification) put a breakpoint in ThePreStubPatch which is in the coreclr text section and because the h/w exception holder check was broken, it thought the breakpoint wasn't the debugger's and aborted the coreclr process. The other part of this fix is to put a h/w exception holder around the called to ThePreStubPatch in prestub.cpp. The stubmgr's delegate invoke subclass used the wrong registers for Linux/OSX to read the "this" and parameter registers. Added the proper ifdefs and registers (ecx -> rdi, rdx -> rsi) for the Unix platforms. On both Linux and OSX, the h/w exception holder check in the exception routing logic needed to check if the int3/trap is in DBG_DebugBreak so asserts always abort/core dump. Move DBG_DebugBreak to an assembly worker so the start/end address can be used for this check.
2015-11-12Fix inconsistent security annotationsJan Kotas1-2/+4
[tfs-changeset: 1547876]
2015-11-12Merge pull request #2032 from mmitche/add-cross-packagesMatt Mitchell1-3/+3
Add missing packages for arm/arm64 cross build
2015-11-12Add missing packages for arm64 cross buildMatt Mitchell1-3/+3