summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2019-09-26[JIT/x86] Fix LinearScan::allocateRegisters (#26649)Konstantin Baladurin1-1/+1
Check for `lvLRACandidate` instead of `!lvDoNotEnregister` when checking whether `this` may be enregistered and has an Interval.
2019-09-26Linux/x86: fix build (#26594)Konstantin Baladurin2-0/+3
2019-09-26[Tizen] Partially revert a6292a6.Mikhail Kurinnoi1-0/+39
NetcoreDBG depends from PAL functions. Instead of SOS plugin, that use PAL static libs, debugger should be able to operate with any runtime version and can't be statically linked to PAL.
2019-09-26add access(2) call before dlopening filesYaroslav Yamshchikov1-0/+9
2019-09-26[Tizen] Precompile frequently used generic methods.Kirill Frolov2-0/+45
2019-09-26corbbtprof: set byte alignment for CORBBTPROF structures (#25816)Konstantin Baladurin1-0/+5
Fix patch fixes SIGBUG that occurs due to unaligned read/write
2019-09-26Fail to explicitly tail call on x86 unix. (#25032)Jarret Shook1-2/+6
* Fail to explicitly tail call on x86 unix. * Correctly return 100 * Correct return value * Add noway assert in morphTailCall to avoid morphing slow tail calls on unix. * Address feedback
2019-09-26[Tizen] Disable jithost arena cacheGleb Balykov1-1/+1
2019-09-26[Tizen] Disable IBC Logger as a defaultDongHeon Jung1-1/+1
- Profile information is collected by ibc logger. Hower it is not used and saved into profile file. - The patch disables IBC logger which is enabled by default. - It disables IBC logger only with ibclogger.h file. IBCLOGGER_ENABLED definition is only used in ibclogger files.
2019-09-26Fix a build error when IBCLOGGER_ENABLED is not defined (#25691)Dong-Heon Jung1-13/+31
- Even if DACCESS_COMPILE or CROSSGEN_COMPILE is defined, coreclr can be built without IBCLOGGER_ENABLED definition.
2019-09-24[Tizen] seperate PIC and PIE to fix x86_64 build errorWoongsuk Cho1-3/+5
2019-09-24[Tizen] Add a library to retrieve memory regions for a coredumpMateusz Moscicki8-15/+339
This is needed to save a minicoredump of .NET applications to allows reconstruct managed stack by lldb and SOS plugin.
2019-09-24Fix OOPStackUnwinderX86::Unwind crash when Eip is invalidIgor Kulaychuk1-1/+1
2019-09-24Fix EECodeManager::GetAmbientSP on x86/LinuxIgor Kulaychuk1-1/+2
2019-09-24[Tizen] Add -pie to linker optionHyungju Lee1-0/+1
There have been no -pie linker option. This patch adds -pie linker option into crossgen(for tizen) This originates from 0024-Add-pie-to-linker-option.patch
2019-09-12Fix watson bucketing/broken triage dumps (#26670)Mike McLaughlin1-0/+5
Fix watson bucketing/broken triage dumps The DAC EnumMemoryRegions needs to include some missing code version manager memory.
2019-08-29Emit RVA Instead of File Offset by Default in Native Image PerfMap Files ↵Brian Robbins4-5/+32
(#26423)
2019-08-27Fix Abbreviated Genitive Month Names Parsing (#26384)Tarek Mahmoud Sayed3-10/+24
In 3.0 we have fixed the formatting to use the abbreviated genitive month names when having "d" format specifier followed by "MMM". This fix is good as original formatting specs required but we needed to support the parsing when we have such genitive names.
2019-08-26Do not use `AllocateUninitializedArray` in private array pools. (#26338) ↵Stephen Toub1-3/+3
(#26366) User may have extra expectations for the privatly owned array pools. For example there could be an expectation that array never contains negative numbers (since user never puts them there). Uninitialized allocations can break such expectations.
2019-08-26[release/3.0] Fix BinaryReader.ReadChars for fragmented Streams (#26324) ↵Jan Kotas2-1/+23
(#26356) BinaryReader.ReadChars incorrectly read more than necessary from the underlying Stream when multi-byte characters straddled the read chunks. Fixes https://github.com/dotnet/corefx/issues/40455
2019-08-20Port stage work for 3.0 (#26137)Aaron Robinson1-73/+0
* Add support for servicing (post-build.yml)
2019-08-19Use function-local StackingAllocator for EnC added methods (#26256)Juan Hoyos1-2/+6
As adding EnC methods happens on the Debugger Thread, there's no managed Thread object from which to obtain the cached StackingAllocator. Instead, just use a function-local StackingAllocator.
2019-08-19arm64 out of proc unwind for DAC (#26156)Mike McLaughlin2-11/+74
Removed FEATURE_DATATARGET4 for arm64 Added SP check to createdump's native unwind loop to make it more robust. Issue: https://github.com/dotnet/coreclr/issues/15062
2019-08-19Account for quoted values in provider filter string (#26159) (#26195)John Salem1-3/+19
* Account for quoted values in provider filter string
2019-08-16Clean up diagnosticserver socket on unexpected shutdown (#25976) (#26190)Sung Yoon Whang4-12/+45
* Clean up diagnosticserver socket/pipe on shutdown * Refactor dbg transport pipe cleanup to be registered as signal handler from the vm side * cleanup dead code * Remove more dead code and fix windows builds * Moving some ifdefs around
2019-08-16Allow for interface implementations in EventSource.WriteEventVarArgs ↵Sung Yoon Whang1-5/+6
(#25844) (#26056) * Allow for interface implementations in EventSource.WriteEventVarArgs * Also account null ref types and nullable types * fix error in comment and simplify first part of boolean logic * Update src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs Co-Authored-By: Noah Falk <noahfalk@users.noreply.github.com>
2019-08-16Fix a potential division by 0 in post GC counter computation (#26085) (#26089)Sung Yoon Whang1-1/+4
* Fix a potential division by 0 in post GC counter computation * Remove useless code
2019-08-12Use Arcade's internal tool restore project for restoring IBCMerge (#26133)Elinor Fung1-13/+3
2019-08-07[release/3.0] Updating Math.Round and MathF.Round to be IEEE compliant so ↵Tanner Gooding5-40/+282
that the intrinsic and managed form are deterministic. (#26017) * Updating Math.Round and MathF.Round to be IEEE compliant so that the intrinsic and managed form are deterministic. (#25901) * Updating Math.Round and MathF.Round to be IEEE compliant so that the intrinsic and managed form are deterministic. * Fixing the Math.Round and MathF.Round handling for values greater than 0.5 and less than 1.0 * Applying formatting patch. * Adding a comment about only having the roundToNearestTiesToEven code path
2019-08-07Fixes Issue #20262 for CoreCLR 5.0 (#25926) (#25988)Brian Sullivan2-38/+47
Disassembler: ildasm/dasm.cpp In the CoreCLR with reference assemblies and redirection it is more difficult to determine if a particular Assembly is the System assembly, like mscorlib.dll is for the Desktop CLR. In the CoreCLR runtimes, the System assembly can be System.Private.CoreLib.dll, System.Runtime.dll or netstandard.dll and in the future a different Assembly name could be used. We now determine the identity of the System assembly by querying if the Assembly defines the well known type System.Object as that type must be defined by the System assembly If this type is defined then we will output the ".mscorlib" directive to indicate that this assembly is the System assembly. Assembler: ilasm/assembler.cpp In Assembler:GetBaseAsmRef() add a check for System.Private.CoreLib as the System or Base assembly.
2019-08-07Ensure that we check for implicit ivals for single argument intrinsics ↵Tanner Gooding1-5/+5
before the SIMDScalar handling. (#25905) (#25987) * Ensure that we check for implicit ivals for single argument intrinsics before the SIMDScalar handling. * Adding test template entries for the unary overloads of the Sse41.Round functions * Regenerating the hardware intrinsic test templates.
2019-08-07Port to 3.0 - Fix WSL alternate stack check (#25980)Jan Vorlicek2-5/+27
On WSL, the alternate stack check in sigsegv_handler doesn't work. The uc_stack members are always zero no matter whether the handler is executed on an alternate or default stack. So the check to detect whether we are running on an alternate stack or not is always returning false on WSL and it prevents NULL reference exceptions from being handled. The fix is to introduce an env variable COMPlus_EnableAlternateStackCheck that can be used to enable the alternate stack check. By default, the sigsegv_handler is considered to always run on an alternate stack.
2019-08-07Make counters use dedicated thread instead of timer (#25864) (#25978)Sung Yoon Whang2-73/+89
* Make a dedicated polling thread for EventCounters * Cleanup * remove debug prints * nit * Fix comment * addressing issues from code review * Fix an assertion from getting fired when we have multiple listeners * Fix a test issue * code review feedback * Fix a potential deadlock * Fix another deadlock * Allow s_sleepDurationInMilliseconds to be reset to a larger value * More issues fix * Let thread wake up from sleep if needed * Some suggestions for the counters fix. The resulting behavior should be the same as what is there now (assuming I didn't mess anything up), these are all just code simplifications that hopefully make it easier to review and maintain going forward. In total I think this reduces the change size in CounterGroup.cs by ~30%. - With the addition of the AutoResetEvent the ManualResetEvent is no longer needed, removed it. - Removed the various if foo != null checks for the shared state, it is all initialized once when then thread is created and then assumed to be non-null elsewhere. - Removed a 2nd lock acquisition inside OnTimer - Replaced an if with Math.Min in PollForValues * fix test
2019-07-28Fix use of AddTo/RemoveFromActiveTasks in async methods (#25915)Stephen Toub1-20/+15
When we rewrote the async methods implementation with AsyncStateMachineBox, we neglected to call AddToActiveTasks if the debugger is paying attention to tasks. This hasn't mattered as the debugger's support for Tasks hasn't worked for other reasons in .NET Core, but there is now a renewed focus on it, and this is preventing some of that support from working. This change is a minimal fix to ensure that we're adding the state machine box task when it's created and removing it when it completes. Post-3.0, we should look at overhauling this, e.g. to clean up a lot of this logging and tracking that's done, to use a weak table in order to avoid keeping task objects alive artificially if they're dropped without completing by the developer code, etc. This only affects when the debugger is attached, as the s_asyncDebuggingEnabled field is only ever set by the debugger.
2019-07-28Fix nullability annotations for static (#25914)Stephen Toub21-29/+30
The compiler is now analyzing statics. Get compliant.
2019-07-28Do not fast tail call if caller has multislot structs (#25885) (#25910)Jarret Shook1-0/+5
* Do not fast tail call if caller has multislot structs * apply patch * Address offline feedback
2019-07-26fix gc config - need to read from both runtime config and env var (#25890)Maoni Stephens1-5/+9
need to read hardlimit configs from env vars as well as runtimeconfig.json
2019-07-22[3.0 port] Fix first value of counter payload being skewed (#25799)Sung Yoon Whang4-5/+35
* Fix issue 25709 * rename * Fix regression test * cleanup * Code review feedback * set maxincrement to 3 * test fix
2019-07-22Merge pull request #25779 from sdmaclea/arm64debug30Steve MacLean7-21/+184
Pull arm/arm64 critical 5.0 PAL/diagnostic changes into 3.0
2019-07-19Fixing Buffer::BlockCopy, JIT_MemCpy, and JIT_MemSet to just call the ↵Tanner Gooding3-300/+90
appropriate CRT functions for x64 Windows, as is already done for all other platforms/targets (#25763) * Fixing Buffer::BlockCopy to just call the CRT memmove for x64 Windows, as is already done for all other platforms/targets * Fixing up the x64 CrtHelpers.asm to just forward to the CRT implementations for JIT_MemSet and JIT_MemCpy * Keep unix using memcpy and clarify that Windows uses memmove for full framework compat.
2019-07-19Fix typo: `_TARGET_X86` -> `_TARGET_X86_` (#25788)Andy Hanson1-1/+1
This typo was in #24989 so would be a new regression in 3.0. In an x86 build, it causes us to not get the cache size correct, leading us to use a smaller default cache size and do more GCs. Tested with GCPerfSim and this PR reduces TotalNumberGCs by 33% using an x86 build.
2019-07-19Arm32 support VFP registers context to/from native context (#25775)Steve MacLean2-0/+79
2019-07-18Arm32 restore d8-d15 in ThrowExceptionFromContextInternal (#25777)Steve MacLean1-12/+21
2019-07-18Arm64 : Fix ldr Dt/St emulation (#25729)Steve MacLean1-4/+7
2019-07-18Arm64 restore d8-d15 in ThrowExceptionFromContextInternal (#25743)Steve MacLean1-0/+12
2019-07-18Arm64 support SIMD registers context to/from native context (#25757)Steve MacLean2-0/+60
2019-07-18Arm64 Fix Rtl*Context (#25745)Steve MacLean2-5/+5
Fix issues related to save restore of FPCR/FPSR/V0/V31 There were several bugs in the assembly causing FPCR/FPSR to overwrite V0 on RtlCaptureContext. Then restore from V0 on RtlRestoreContext
2019-07-18Make all event types nullable (#25752)Stephen Toub13-67/+74
Late-breaking design change: all events should be declared with nullable delegate types.
2019-07-18Remove now unnecessary !s / TODO-NULLABLE comments (#25749)Stephen Toub60-312/+312
* Remove !s and TODO-NULLABLE comments for [DoesNotReturn] * Remove !s and TODO-NULLABLE comments for [NotNullIfNotNull] * Remove !s and TODO-NULLABLE comments for writes via Interlocked.CompareExchange * Remove !s and TODO-NULLABLE comments for Debug.Assert on fields * Update/add several TODO-NULLABLE comments
2019-07-18Fix nullability warnings from compiler updateSantiago Fernandez Madero4-8/+8