- 05 4月, 2023 4 次提交
-
-
由 Mark Plesko 提交于
If I test is written in the old style (with a Main and OutputType==Exe without an attribute such as RequiresProcessIsolation) in a merged test group directory, it will be skipped. This change adds a check to detect those cases. I have struggled with ways to automatically set OutputType. Directory.Build.props is too early (the test project file will override it). Directory.Build.targets is too late as the C# targets files will already have been processed and set other variables based on the value of OutputType. This Target doesn't execute until later, but since it is an error it doesn't matter how those additional properties were set. Since this adds more boilerplate to each merged test directory, I created a src/tests/Directory.Merged.props to share all of that. This catches 3 tests that aren't currently executing. Unrelated: - Use GetPathOfFileAbove in nearby locations for Directory.Build.props chaining rather than specific paths - Fix two easy IL warnings that appeared in my local build of all tests Resolves https://github.com/dotnet/runtime/issues/84182
-
由 Will Smith 提交于
* Initial work * Added genCodeForReuseVal * Only create a label if the current IG is not empty
-
由 Will Smith 提交于
* Initial work * Handle arrlen case * Added ifdef * Additional cases * Additional cases * Add assert to IsVNNeverNegative * Update src/coreclr/jit/valuenum.cpp Co-authored-by: NBruce Forstall <brucefo@microsoft.com> * Additional cases --------- Co-authored-by: NBruce Forstall <brucefo@microsoft.com>
-
由 Tomas Weinfurt 提交于
* don't load MsQuic unless needed by HttpClient * feedback from review
-
- 04 4月, 2023 27 次提交
-
-
由 Bruce Forstall 提交于
Previously, parallel SuperPMI parsed very few kinds of output from the child processes, and ignored and discarded the rest. Change this so all output from the child processes is output by the parent process. For example, this allows the child process JIT to print out statistics, disasm, etc., and have it visible by the parent invoker.
-
由 David Cantú 提交于
* Only call base.DisposeAsync on classes derived from FileStream * Fix typo
-
由 Vlad Brezae 提交于
* [mono][sgen] Remove unused suspend finalizers functionality * [mono][sgen] Remove threadpool shutdown logic No longer used * [mono][sgen] Remove logic associated with gc shutdown * [mono][sgen] Remove logic for clearing handle stack during cleanup * [mono][sgen] Remove code for xdomain checks * [mono][sgen] Remove more code associated with finalization * [mono][sgen] Remove code for freeing objects during domain unload * [mono][sgen] Remove mono_gc_clear_domain It is dead code
-
由 Stephen Toub 提交于
For small collections of comparable value types, we were using an implementation that sorted the keys in order to a) quickly rule out values outside of the known contained range, and b) stop searching when we hit a value that was too small. However, this can break for some well-known types. In particular, `ValueTuple<...>` implements `IComparable<ValueTuple<...>>`, but it might throw an exception if you actually try to use its `IComparable<>` implementation if any of the `T` types in the tuple are themselves not comparable. Since we have no good way then to dynamically select an implementation based on whether it implements `IComparable<>`, I've simply removed those checks / calls from the implementation. Testing this also highlighted that our existing shared set tests don't like being given non-comparable types, as they use SortedSet which itself suffers from effectively the same issue (but there you can choose to not use SortedSet if it doesn't work for your data, and "sort"ing is part of the name).
-
由 Egor Bogatov 提交于
-
由 Johan Lorensson 提交于
Add support for direct pinvoke charset on Windows. NativeAOT direct pinvoke support handles pinvoke charset on Windows, this commit adds the same logic to Mono when targeting Windows, so it will follow the same charset rules as NativeAOT. Direct pinvoke wrappers on none full AOT builds. Library mode builds will have option to create a self contained static or shared library, including all needed resources, embedding assemblies and static link all external dependencies (using direct pinvoke). Library mode also exports UnamangedCallersOnly methods that can be called by application loading the library. Currently the wrappers needed for UnmanagedCallersOnly methods will be generated when doing none full AOT builds, but not pinvoke wrappers. This PR adds support to generate the pinvoke wrappers, but only for the methods described by direct pinvoke AOT compiler arguments, so for none full AOT builds not using direct pinvoke arguments, no pinvoke wrappers will be generated, inline with current none full AOT behavior. Direct pinvoke wrappers on profiled AOT builds. Enhanced the profile-only option doing profile AOT to emit managed-to-native and native-to-managed wrappers. Needed in order for library build to work together with profiled AOT builds. Wrappers-only AOT option. On platforms like Android, we still run majority of code using JIT. Since library mode should produce a self contained library, including pinvokes (for all direct pinvoked functions) as well as UnmanagedCallersOnly wrappers, Android would need to at least run none full AOT build of all used assemblies. By default, that will AOT a lot more methods that is really needed and there is no way to reduce the AOT:ed code and still run as much as possible using JIT. The profile-only option opens up ability to reduce what managed methods that will be AOT:ed, but still generates a number of inflated methods not needed by UnmanagedCallersOnly and direct pinvoke wrappers and piggy back on an existing option with additional functionality is not optimal. This PR adds an undocumented AOT option intended to be used by library builder, wrappers-only, and that will only include wrappers in AOT object giving library builder the ability to build a self contained library on Android that still runs majority of managed code using JIT.
-
由 Fan Yang 提交于
* Support get_Count and get_AllBitsSet * nint and nuint are 8 bytes on arm64 as well. * Fix syntax
-
由 Vitek Karas 提交于
This brings the NativeAOT behavior around static cctor analysis on part with illink. Main change is to add checks for RUC/RAF/RDC on static cctor and produces a warning if there is one (as these are not allowed on static cctor). The rest of the changes are just minor fixes and adjusting tests to the new behavior. Contributes to https://github.com/dotnet/runtime/issues/82447.
-
由 Tomáš Rylek 提交于
* Add issues.targets entry for known issue #84007 * Add handling for NEW_MDARR_RARE --------- Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
-
由 Jakob Botsch Nielsen 提交于
Move the accounting of the outgoing arg space size from simple lowering to lowering and start accounting for the fact that some block ops may turn into helper calls. Fix #80140
-
由 Ilona Tomkowicz 提交于
* Enabled `HybridGlobalization` mode. * Enabled non-icu change case. * Tests. * Revert not connected changes. * Fix: Add the new file to the project. * Fix: this PR is for Browser, so add it to condition. * Fixed calls to js. * Trying to fix CI. * False is default, redundant lines. * Trying to fix the CI. * Remove redundant code. * This PR is partial solution, this file will be added in a follow-up. * Fix for EAT lib tests. * We do not trim anything for Hybrid currently. * Check if functions invoked only in specific modes. * Change confusing name + move the common property to the main part of the class. * Applied @mkhamoyan's suggestion. * Fix previous commit: missing directive. * Fix previous commit: missing directive. * It's not IOS-connected. * Move hybrid tests to correct dir + separate ios and wasm + update sln. * Invariant and hybrid cannot be both true. * Remove old version of hybrid tests proj. * Applied @kg's review.
-
由 Michal Strehovský 提交于
The file format that mapped reflection metadata to runtime artifacts had a limitation that required generic methods to be always instantiated over concrete types - we could not place canonical method bodies there. The limitation stemmed from the fact that the mapping table was placing a generic dictionary in it. This switches the table to use NameAndSignature + an array of instantiation arguments. The rest of this change is just deleting code that was working around the problem. The fixes in NativeLayoutVertexNode and NodeFactory.NativeLayout are fixing analysis holes that were exposed by our ability to be more lazy. Also saves 0.4% on BasicWebApi, which is always nice.
-
由 Vladimir Sadov 提交于
* Introduce a diagnostic switch to turn off use of file mapping in PE loader. * change default to off * fix condition on Unix
-
由 Kunal Pathak 提交于
Arm64: Implement VectorTableLookup/VectorTableLookupExtension intrinsinsic + Consecutive registers support (#80297) * Add VectorTableLookup 2/3/4 in hwinstrinsiclistarm64.h * Add VectorTableLookup * fixes to libraries * Prototype of simple tbl * Some progress * Some more updates * working model * Vector64<byte> support * Add VectorTableLookup_3 * Add VectorTableLookup_4 * cleanup * Remove regCount from LclVarDsc * Some more cleanup Some more cleanup * setNextConsecutiveRegisterAssignment * Some more cleanup * TARGET_ARM64 * Use getNextConsecutiveRefPositions instead of nextConsecutiveRefPosition field * jit format * Move getNextConsecutiveRefPosition * SA1141: Use tuple syntax * Remove the unwanted field list code * revert the flag that was mistakenly changed * Add test cases * FIELD_LIST * Use FIELD_LIST approach * jit format and fix arm build * fix assert failure * Add summary docs Add summary docs in all the required files. * Make APIs public again * cleanup * Handle case for reg mod 32 * Remove references from ref until API is approved * Use generic getFreeCandidates() * Add entries in ExtraAPis * Set CLSCompliant=false * Move in inner class * Remove CLSCompliant flag * Add a suppression file for System.Runtime.Intrinsics on the new APIs until it they go through API review * Review feedback * Add workaround for building tests * review feedback * TP: remove needsConsecutive parameter from BuildUse() * TP: Remove pseudo intrinsic entries * More fixes * Add the missing csproj * Fix test cases * Add fake lib for AdvSimd.Arm64* as well * Remove the workaround * Use template to control if consecutive registers is needed or not * jit format * fix the workaround * Revert "fix the workaround" This reverts commit 1cb22d00d7159f40d33538ea29008e6764d52e45. * Revert "Remove the workaround" This reverts commit b0b6a5e9abea195bd6dc35c5a638d280f20d6ed2. * Add VectorTableLookupExtensions in libraries * Add support for VectorTableLookupExtension * WIP: available regs * WIP: Remove test hacks * Update getFreeCandidates() for consecutive registers * Add missing resetRegState() * Do not assume the current assigned register for consecutiveRegisters refposition is good. If a refposition is marked as needConsecutive, then do not just assume that the existing register assigned is good. We still go through the allocation for it to make sure that we allocate it a register such that the consecutive registers are also free. * Handle case for copyReg For copyReg, if we assigned a different register, do not forget to free the existing register it was holding * Update setNextConsecutiveRegister() with UPPER_VECTOR_RESTORE * Update code around copyReg Updated code such that if the refPosition is already assigned a register, then check if assignedRegister satisfies are needs (for first / non-first refposition). If not, performs copyReg. TODO: Extract the code surrounding and including copyReg until where we `continue`. * Create the VectorTableLookup fake CoreLib as a reference assembly Make the AdvSimd.Arm64 tests reference the VectorTableLookup fake CoreLib as reference assembly; and ensure that it is not included as a ProjectReference by the toplevel HardwareIntrinsics merged test runners. The upshot is that the AdvSimd.Arm64 tests can call the extra APIs via a direct reference to CoreLib (instead of through System.Runtime), but the fake library is not copied into any test artifact directories, and the Mono AOT compiler never sees it. That said, after applying this, the test fails during AOT compilation of the *real* CoreLib ``` Mono Ahead of Time compiler - compiling assembly /Users/alklig/work/dotnet-runtime/runtime-bugs2/artifacts/tests/coreclr/osx.arm64.Release/Tests/Core_Root/System.Private.CoreLib.dll AOTID EA8D702E-9736-3BD5-435B-A9D5EEADCC78 %"System.ValueTuple`2<System.Runtime.Intrinsics.Vector128`1<byte>, System.Runtime.Intrinsics.Vector128`1<byte>>"* %arg_table <16 x i8> * Assertion: should not be reached at /Users/alklig/work/dotnet-runtime/runtime-bugs2/src/mono/mono/mini/mini-llvm.c:1455 ``` * Rename VectorTableLookup to VectorTableLookup.RefOnly * Start consecutive refpositions with RefTypeUse and never with RefTypeUpperVectorSave * Add test cases for VectorTableLookupExtension * Pass the missing defaultValues * Use platform neutral BitScanForward * jit format * Remove the fake testlib workaround * Fix mono failures * Fix x64 TP regression * Fix test cases * fix some more tp regression * Fix test build * misc. changes * Fix the bug where we were not freeing copyReg causing an assert in tier0 * Refactor little bit to reduce checks for VectorTableLookup * Add template parameter for allocateReg/copyReg/select * Comments * Fix mono failures * Added some more comments * Call allocateReg/assignCopyReg/select methods only for refpositions that need consecutive registers * Add heuristics to pick best possible set of registers which will need less spilling * setNextConsecutiveRegisterAssignment() no longer checks for areNextConsecutiveRegistersFree() * Rename getFreeCandidates() -> getConsecutiveCandidates() * fix parameters to areNextConsecutiveRegistersFree() * Rename and update canAssignNextConsecutiveRegisters() * Add the missing setNextConsecutiveRegisterAssignment() calls * Fix a condition for upperVector * Update spill heurisitic to handle cases for jitstressregs * Misc. remove popcount() check from getConsecutiveRegisters() * jit format * Fix a bug in canAssignNextConsecutiveRegisters() * Add filterConsecutiveCandidates() and perform free/busy candidates scan * Consume the new free/busy consecutive candidates method * Handle case where 'copyReg == assignedReg' * Misc. cleanup * Include LsraExtraFPSetForConsecutive for stress regs * handle case where 'assignedInterval == nullptr' for try_SPILL_COST() * fix build error * Call consecutiveCandidates() only for first refposition * Only perform special handling for non-uppervectorrestore * jit format * Add impVectorTableLookup/impVectorTableLookupExtension * Add the missing break * Update assert * Move definitions in GenTree, fix assert * fix arm issue * Remove common functions * Rename info.needsConsecutiveRegisters to info.compNeedsConsecutiveRegisters * Use needsConsecutiveRegisters template parameter for all configurations * Handle case of round-robin in getConsecutiveRegisters() * Disable tests for Mono * Initialize outArray in test * Add IsSupported checks for VectorLookup/VectorLookupExtension * Fix the test cases for RunReflectionScenario_UnsafeRead() * Review feedback * wip * fix a typo in test case * Add filterConsecutiveCandidatesForSpill() to select range that needs fewer register spilling * Add mono support. * Delay free the registers for VectorTableLookupExtension * fix mono build error --------- Co-authored-by: NTanner Gooding <tagoo@outlook.com> Co-authored-by: NAleksey Kliger <alklig@microsoft.com> Co-authored-by: NZoltan Varga <vargaz@gmail.com>
-
由 Lee Culver 提交于
In the debugger we do not have in-memory pointers to the context record. Stack unwinds are all concrete, and update pCurrentContext instead. Due to this, this change https://github.com/dotnet/runtime/commit/60adacb2b7a4ab9dc1e5af6c71fdfce7ad87fac0 zeroed out the m_Ptrs variable for all callee saved registers. This change wasn't sufficient, however, because we actually try to use pCurrentContextPointers in a variety of places while dealing with reporting GC references, leading to an AV when GcInfoDecoder::GetStackSlot attempts to report an offset to RBP for certain kinds of coreclr!Frames. This change updates pCurrentContextPointers to point to pCurrentContext in the dac. (This issue/change only applies to AMD64.)
-
由 xtqqczze 提交于
-
由 Jeremy Koritzinsky 提交于
-
由 Cameron Aavik 提交于
* Add perf run for cloud VMs * Ensure x64 is built * Use non-open queue for internal runs
-
由 Aleksey Kliger (λgeek) 提交于
-
由 VincentWu 提交于
* support abi lp64d for RISC-V 64 * format
-
由 SingleAccretion 提交于
* Delete GT_LCL_VAR_ADDR The node is exactly equivalent to LCL_FLD_ADDR at offset zero. There is no reason to have two representations for the same thing. * Delete OperIsLocalAddr No longer needed. * GT_LCL_FLD_ADDR -> GT_LCL_ADDR The generalized "local address" node. * Help MSVC Turns a 0.05% TP regression into a 0.05% TP win. * gtNewLclFldAddrNode -> gtNewLclAddrNode * Fix formatting
-
由 Zoltan Varga 提交于
The runtime creates a dummy version of it internally.
-
由 Zoltan Varga 提交于
-
由 Katelyn Gadd 提交于
* Generate a bitset in the interpreter's codegen that identifies which spaces in the stack have had their address taken * Use the interpreter bitset for jiterpreter null check optimization * Enable null check optimization for all traces
-
由 Elinor Fung 提交于
-
由 dotnet bot 提交于
* Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2147000 * Localized file check-in by OneLocBuild Task: Build definition ID 679: Build ID 2147850
-
由 Michal Strehovský 提交于
MdArray rank1 with all-zero lower bounds gets actually allocated as an SzArray. On Native AOT this means we need to spin up to the type loader to potentially load the new type. Split this expensive (and impossible-to-express-in-C#) thing into a separate helper so we can trim the type loader. https://github.com/dotnet/runtime/pull/84156#issuecomment-1491402863
-
- 03 4月, 2023 9 次提交
-
-
由 Zoltan Varga 提交于
* [mono][llvm] Add a fastpath to calling mini_init_method_rgctx (). * Add arm64 JIT support.
-
由 Zoltan Varga 提交于
* [mono] Cache delegate->method_ptr in MonoDelegateTrampInfo instead of in delegate->method_code. Repurpose the method_code field to store the MonoDelegateTrampInfo pointer for future optimizations. * Remove now unused MONO_PATCH_INFO_METHOD_CODE_SLOT. * Remove unused mono_runtime_create_delegate_trampoline (). * Reduce handle usage in mini_init_delegate (). * Small cleanups to mono_delegate_trampoline (). * Use the MonoDelegateTrampInfo from the delegate if possible.
-
由 dotnet-maestro[bot] 提交于
* Update dependencies from https://github.com/dotnet/arcade build 20230323.3 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23172.2 -> To Version 8.0.0-beta.23173.3 * Update dependencies from https://github.com/dotnet/arcade build 20230324.1 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23172.2 -> To Version 8.0.0-beta.23174.1 * Update dependencies from https://github.com/dotnet/arcade build 20230327.4 Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 8.0.0-beta.23172.2 -> To Version 8.0.0-beta.23177.4 --------- Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: NLarry Ewing <lewing@microsoft.com>
-
由 dotnet-maestro[bot] 提交于
* Update dependencies from https://github.com/dotnet/roslyn build 20230328.1 Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.6.0-3.23175.1 -> To Version 4.6.0-3.23178.1 * Update dependencies from https://github.com/dotnet/roslyn build 20230328.17 Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.6.0-3.23175.1 -> To Version 4.7.0-1.23178.17 * Update dependencies from https://github.com/dotnet/roslyn build 20230329.16 Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset From Version 4.6.0-3.23175.1 -> To Version 4.7.0-1.23179.16 --------- Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-
由 Anton Firszov 提交于
* SendRecv_Stream_TCP_LargeMultiBufferSends, TcpPeerReceivesFinOnShutdownWithPendingData * use PortBlocker in SendRecv_Stream_TCP_LargeMultiBufferSends
-
由 Michal Strehovský 提交于
* Add constprop handling for `typeof(T) == typeof(Foo)` The pattern `typeof(T) == typeof(Foo)` is a common way to do generic specialization in C#. Since we operate on instantiated code, we should be able to optimize this in many situations. Adding support for this in constprop. RyuJIT would already handle this, but the problem is that if we don't handle this in IL scanning, we might have expanded the whole program view graph too much and it's hard to get rid of side effects of that. The added test shows one of such examples (we introduce an extra "used" virtual slot that is impossible to get rid of after the fact). Saves 0.5% on BasicMinimalApi. * We can optimize more now - update the test
-
由 SingleAccretion 提交于
These struct ASG-specific flags are as legacy leftover from GT_COPYBLK days, inconsistent with how non-struct stores are handled.
-
由 Chet Husk 提交于
-
由 Andrii Kurdiumov 提交于
-