platform/upstream/dotnet/runtime.git
3 years agoAdd files need for wasm executable relinking/aot to the wasm runtime pack. (#43785)
Zoltan Varga [Mon, 9 Nov 2020 15:39:01 +0000 (10:39 -0500)]
Add files need for wasm executable relinking/aot to the wasm runtime pack. (#43785)

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
3 years agoUpdate glossary (#44274)
Jan Kotas [Mon, 9 Nov 2020 13:49:53 +0000 (05:49 -0800)]
Update glossary (#44274)

Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Günther Foidl <gue@korporal.at>
3 years agoFix/remove TODO-NULLABLEs (#44300)
Krzysztof Wicher [Mon, 9 Nov 2020 12:07:15 +0000 (13:07 +0100)]
Fix/remove TODO-NULLABLEs (#44300)

* Fix/remove TODO-NULLABLEs

* remove redundant !

* apply Jozkee's feedback

* address feedback

3 years agoDelete stale comment about dotnet/roslyn#30797
Stephen Toub [Mon, 9 Nov 2020 02:17:20 +0000 (21:17 -0500)]
Delete stale comment about dotnet/roslyn#30797

3 years agoUpdate dotnet/roslyn issue link
Stephen Toub [Mon, 9 Nov 2020 02:15:24 +0000 (21:15 -0500)]
Update dotnet/roslyn issue link

3 years agoClean up the samples (#44293)
Egor Bogatov [Sun, 8 Nov 2020 21:21:37 +0000 (00:21 +0300)]
Clean up the samples (#44293)

3 years agochange using in ConnectCallback_UseUnixDomainSocket_Success (#44366)
Tomas Weinfurt [Sun, 8 Nov 2020 15:14:14 +0000 (07:14 -0800)]
change using in ConnectCallback_UseUnixDomainSocket_Success (#44366)

3 years agoadd missing constructor overloads (#44380)
Geoff Kizer [Sun, 8 Nov 2020 15:12:08 +0000 (07:12 -0800)]
add missing constructor overloads (#44380)

Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
3 years agoLongProcessNamesAreSupported: make test work on distros where sleep is a symlink...
Tom Deseyn [Sun, 8 Nov 2020 14:29:46 +0000 (15:29 +0100)]
LongProcessNamesAreSupported: make test work on distros where sleep is a symlink/script (#44299)

* LongProcessNamesAreSupported: make test work on distros where sleep is a symlink/script

* PR feedback

Co-authored-by: Stephen Toub <stoub@microsoft.com>
* fix compilation

Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years agoDisable RunThreadLocalTest8_Values on Mono (#44357)
Aleksey Kliger (λgeek) [Sun, 8 Nov 2020 10:37:43 +0000 (05:37 -0500)]
Disable RunThreadLocalTest8_Values on Mono (#44357)

* Disable RunThreadLocalTest8_Values on Mono

It's failing on SLES

* fix typo

3 years agoUpdate dependencies from https://github.com/mono/linker build 20201106.1 (#44367)
dotnet-maestro[bot] [Sun, 8 Nov 2020 10:36:15 +0000 (05:36 -0500)]
Update dependencies from https://github.com/mono/linker build 20201106.1 (#44367)

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20555.2 -> To Version 6.0.0-alpha.1.20556.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
3 years agoclarify http version test (#44379)
Geoff Kizer [Sun, 8 Nov 2020 02:59:14 +0000 (18:59 -0800)]
clarify http version test (#44379)

Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
3 years agoImprove performance of Enum's generic IsDefined / GetName / GetNames (#44355)
Stephen Toub [Sat, 7 Nov 2020 14:06:22 +0000 (09:06 -0500)]
Improve performance of Enum's generic IsDefined / GetName / GetNames (#44355)

Eliminates the boxing in IsDefined/GetName/GetValues, and in GetNames avoids having to go through RuntimeType's GetEnumNames override.

3 years agoBootstrapping a test for R2RDump (#42150)
Andrew Au [Sat, 7 Nov 2020 01:41:16 +0000 (17:41 -0800)]
Bootstrapping a test for R2RDump (#42150)

3 years agoReflect test path changes in .gitattributes; remove nonexistent files (#44371)
Tomáš Rylek [Sat, 7 Nov 2020 01:29:05 +0000 (02:29 +0100)]
Reflect test path changes in .gitattributes; remove nonexistent files (#44371)

3 years agoAdd slash in Windows SoD tool build (#44359)
Drew Scoggins [Sat, 7 Nov 2020 01:17:10 +0000 (17:17 -0800)]
Add slash in Windows SoD tool build (#44359)

* Add slash in Windows SoD tool build

* Update SoD search path to match output dir

* Fixup dotnet version

* Remove merge commit headers

* Disable PRs

Co-authored-by: Drew Scoggins <andrew.g.scoggins@gmail>
3 years agoMatch CoreCLR behaviour on thread start failure (#44124)
Marek Safar [Fri, 6 Nov 2020 22:28:06 +0000 (23:28 +0100)]
Match CoreCLR behaviour on thread start failure (#44124)

Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
3 years agoFix Send_TimeoutResponseContent_Throws (#44356)
Stephen Toub [Fri, 6 Nov 2020 21:51:41 +0000 (16:51 -0500)]
Fix Send_TimeoutResponseContent_Throws (#44356)

If the client times out too quickly, the server may never have a connection to accept and will hang forever.

3 years ago[master] Update dependencies from dotnet/arcade dotnet/llvm-project dotnet/icu (...
dotnet-maestro[bot] [Fri, 6 Nov 2020 20:53:39 +0000 (20:53 +0000)]
[master] Update dependencies from dotnet/arcade dotnet/llvm-project dotnet/icu (#44336)

[master] Update dependencies from dotnet/arcade dotnet/llvm-project dotnet/icu

 - Merge branch 'master' into darc-master-2211df94-2a02-4c3c-abe1-e3534e896267

3 years agoFix ELT profiler tests (#44285)
David Mason [Fri, 6 Nov 2020 18:58:00 +0000 (10:58 -0800)]
Fix ELT profiler tests (#44285)

3 years agoAdd threshold on number of files / partition in SPMI collection (#44180)
Kunal Pathak [Fri, 6 Nov 2020 18:06:26 +0000 (10:06 -0800)]
Add threshold on number of files / partition in SPMI collection (#44180)

* Add check for files count

* Fix the OS check

* decrese file limit to 1500:

* misc fix

* Do not upload to azure if mch files are zero size

3 years agoTighten argument validation in StreamConformanceTests (#44326)
Stephen Toub [Fri, 6 Nov 2020 17:56:07 +0000 (12:56 -0500)]
Tighten argument validation in StreamConformanceTests (#44326)

3 years ago[master] Update dependencies from mono/linker (#44322)
dotnet-maestro[bot] [Fri, 6 Nov 2020 16:55:42 +0000 (11:55 -0500)]
[master] Update dependencies from mono/linker (#44322)

* Update dependencies from https://github.com/mono/linker build 20201105.1

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20527.2 -> To Version 6.0.0-alpha.1.20555.1

* Update dependencies from https://github.com/mono/linker build 20201105.2

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.20527.2 -> To Version 6.0.0-alpha.1.20555.2

* Disable new optimization for libraries mode (it cannot work in this mode)

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Marek Safar <marek.safar@gmail.com>
3 years agoSimple GT_NEG optimization for #13837 (#43921)
Julie Lee [Fri, 6 Nov 2020 15:04:07 +0000 (07:04 -0800)]
Simple GT_NEG optimization for #13837 (#43921)

* Simple arithmetic optimization with GT_NEG

* Skip GT_NEG optimization when an operand is constant. Revert bitwise rotation pattern

* Fixed Value Numbering assert

* Cleaned up code and comments for simple GT_NEG optimization

* Formatting

Co-authored-by: Julie Lee <jeonlee@microsoft.com>
3 years agoSimplify catch-rethrow logic in NetworkStream (#44246)
Anton Firszov [Fri, 6 Nov 2020 13:52:49 +0000 (14:52 +0100)]
Simplify catch-rethrow logic in NetworkStream (#44246)

A follow-up on #40772 (comment), simplifies and harmonizes the way we wrap exceptions into IOException. Having one catch block working with System.Exception seems to be enough here, no need for specific handling of SocketException.

3 years agoUse Dictionary for underlying cache of ResourceSet (#44104)
Marek Safar [Fri, 6 Nov 2020 10:39:36 +0000 (11:39 +0100)]
Use Dictionary for underlying cache of ResourceSet (#44104)

3 years agoTweak StreamConformanceTests for cancellation (#44342)
Stephen Toub [Fri, 6 Nov 2020 10:33:25 +0000 (05:33 -0500)]
Tweak StreamConformanceTests for cancellation (#44342)

- Avoid unnecessary timers
- Separate tests for precancellation, ReadAsync(byte[], ...) cancellation, and ReadAsync(Memory, ...) cancellation

3 years ago[mono] Change CMakelists.txt "python" -> Python3_EXECUTABLE (#44340)
Aleksey Kliger (λgeek) [Fri, 6 Nov 2020 08:15:38 +0000 (03:15 -0500)]
[mono] Change CMakelists.txt "python" -> Python3_EXECUTABLE (#44340)

Debian doesn't install a "python" binary for python3.

3 years agoAdd an implicit argument coercion check. (#43386)
Sergey Andreenko [Fri, 6 Nov 2020 05:32:40 +0000 (19:32 -1000)]
Add an implicit argument coercion check. (#43386)

* Add `impCheckImplicitArgumentCoercion`.

* Fix tests with type mismatch.

* Try to fix VM signature.

* Allow to pass byref as native int.

* another fix.

* Fix another IL test.

3 years ago[tests] Re-enable tests fixed by #44081 (#44212)
Aleksey Kliger (λgeek) [Fri, 6 Nov 2020 04:19:11 +0000 (23:19 -0500)]
[tests] Re-enable tests fixed by #44081 (#44212)

Fixes
https://github.com/mono/mono/issues/15030 and
fixes https://github.com/mono/mono/issues/15031 and
fixes https://github.com/mono/mono/issues/15032

3 years ago[sgen] Add Ward annotations to sgen_get_total_allocated_bytes (#43833)
monojenkins [Fri, 6 Nov 2020 04:18:21 +0000 (23:18 -0500)]
[sgen] Add Ward annotations to sgen_get_total_allocated_bytes (#43833)

Attempt to fix https://jenkins.mono-project.com/job/test-mono-mainline-staticanalysis/

Co-authored-by: lambdageek <lambdageek@users.noreply.github.com>
3 years agoUse targetPlatformMoniker for net5.0 and newer tfms (#43965)
Anirudh Agnihotry [Fri, 6 Nov 2020 03:54:19 +0000 (19:54 -0800)]
Use targetPlatformMoniker for net5.0 and newer tfms (#43965)

* Use targetPlatformMoniker for net5.0 and newer tfms

* disabling analyzer, update version to 0.0, and use new format.

* update the targetFramework.sdk

* removing supportedOS assembly level attribute

* fix linker errors and addressing feedback

* making _TargetFrameworkWithoutPlatform as private

3 years agoRemove silly ToString in GetCLRInstanceString (#44335)
Stephen Toub [Fri, 6 Nov 2020 01:18:06 +0000 (20:18 -0500)]
Remove silly ToString in GetCLRInstanceString (#44335)

3 years agoUpdate SharedPerformanceCounter assert (#44333)
Stephen Toub [Fri, 6 Nov 2020 01:07:37 +0000 (20:07 -0500)]
Update SharedPerformanceCounter assert (#44333)

3 years agoPick libmonosgen-2.0.so from cmake install directory instead of .libs (#44291)
Alexander Köplinger [Fri, 6 Nov 2020 00:34:26 +0000 (01:34 +0100)]
Pick libmonosgen-2.0.so from cmake install directory instead of .libs (#44291)

This aligns Linux with what we already do for all the other platforms.

3 years agoForbid `- byref cnst` -> `+ (byref -cnst)` transformation. (#44266)
Sergey Andreenko [Fri, 6 Nov 2020 00:17:58 +0000 (14:17 -1000)]
Forbid `- byref cnst` -> `+ (byref -cnst)` transformation. (#44266)

* Add a repro test.

* Forbid the transformation for byrefs.

* Update src/coreclr/src/jit/morph.cpp

Co-authored-by: Andy Ayers <andya@microsoft.com>
* Update src/coreclr/src/jit/morph.cpp

* Fix the test return value.

WriteLine is just to make sure we don't delete the value.

* improve the test.

avoid a possible overflow and don't waste time on printing.

Co-authored-by: Andy Ayers <andya@microsoft.com>
3 years agoUse the new async Run method from xharness and implement a test (#44046)
Larry Ewing [Thu, 5 Nov 2020 23:22:07 +0000 (17:22 -0600)]
Use the new async Run method from xharness and implement a test (#44046)

* Use the new async Run method from xharness and implement a test

* Remove PumpThreadPool as it is no longer used

* Update xharness for async support

3 years agoSet fgOptimizedFinally flag correctly (#44268)
David Wrighton [Thu, 5 Nov 2020 22:55:36 +0000 (14:55 -0800)]
Set fgOptimizedFinally flag correctly (#44268)

- Initialize to 0 at compiler startup
- Set flag when finally cloning optimization kicks in

Fixes non-deterministic generation of nop opcodes into ARM32 code

3 years agoImplementing support to Debugger::Break. (#44305)
Thays Grazia [Thu, 5 Nov 2020 22:06:58 +0000 (19:06 -0300)]
Implementing support to Debugger::Break. (#44305)

3 years ago[master][watchOS] Add simwatch64 support (#44303)
monojenkins [Thu, 5 Nov 2020 20:59:07 +0000 (15:59 -0500)]
[master][watchOS] Add simwatch64 support (#44303)

Xcode 12.2 removed 32 bits support for watchOS simulators, this PR helps to fix https://github.com/xamarin/xamarin-macios/issues/9949, we have tested the new binaries and they are working as expected

![unknown](https://user-images.githubusercontent.com/204671/98253709-64413200-1f49-11eb-9774-8c5aa416fc57.png)

Co-authored-by: dalexsoto <dalexsoto@users.noreply.github.com>
3 years agoFile.Exists() is not null when true (#44310)
Ilya [Thu, 5 Nov 2020 20:57:46 +0000 (01:57 +0500)]
File.Exists() is not null when true (#44310)

* File.Exists() is not null when true

* Fix compile

* Fix compile 2

3 years agoConcurrentQueueSegment allows spinning threads to sleep. (#44265)
Alex Covington [Thu, 5 Nov 2020 20:50:35 +0000 (12:50 -0800)]
ConcurrentQueueSegment allows spinning threads to sleep. (#44265)

* Allow threads to sleep when ConcurrentQueue has many enqueuers/dequeuers.

* Update src/libraries/System.Private.CoreLib/src/System/Collections/Concurrent/ConcurrentQueueSegment.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
* Apply suggestions from code review

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: AMD DAYTONA EPYC <amd@amd-DAYTONA-X0.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years agoRemove unused QCall for WinRTSupported (#44278)
Elinor Fung [Thu, 5 Nov 2020 19:41:29 +0000 (11:41 -0800)]
Remove unused QCall for WinRTSupported (#44278)

3 years agoJIT: minor inliner refactoring (#44215)
Andy Ayers [Thu, 5 Nov 2020 18:37:09 +0000 (10:37 -0800)]
JIT: minor inliner refactoring (#44215)

Extract out the budget check logic so it can vary by inlining policy.
Use this to exempt the FullPolicy from budget checking.

Fix inline xml to dump the proper (full name) hash for inlinees.

Update range dumper to dump ranges in hex.

3 years agoAdd stream conformance tests for TranscodingStream (#44248)
Stephen Toub [Thu, 5 Nov 2020 18:32:44 +0000 (13:32 -0500)]
Add stream conformance tests for TranscodingStream (#44248)

* Add stream conformance tests for TranscodingStream

* Special-case 0-length input buffers to TranscodingStream.Write{Async}

The base implementation of Encoder.Convert doesn't like empty inputs.  Regardless, if the input is empty, we can avoid a whole bunch of unnecessary work.

3 years agoBump xharness workitem timeout for Android as well (#44301)
Alexander Köplinger [Thu, 5 Nov 2020 17:12:50 +0000 (18:12 +0100)]
Bump xharness workitem timeout for Android as well (#44301)

Previously we only did it for iOS/tvOS

3 years agoFix illumos native build (#44251)
Adeel Mujahid [Thu, 5 Nov 2020 16:33:32 +0000 (18:33 +0200)]
Fix illumos native build (#44251)

* Fix illumos native build

* Address PR feedback

3 years agoHttp version test cleanup (#44283)
Geoff Kizer [Thu, 5 Nov 2020 16:22:57 +0000 (08:22 -0800)]
Http version test cleanup (#44283)

* remove dead code

* simplification

* more

* fix to still use stream wrapper

* combine tests

* more

* get rid of ClientDisconnectOk overload

* fix

* simplify DribbleStream

Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
3 years agoCtor_SafeHandle_BasicPropertiesPropagate_Success: improve raw packet case. (#44294)
Tom Deseyn [Thu, 5 Nov 2020 16:21:53 +0000 (17:21 +0100)]
Ctor_SafeHandle_BasicPropertiesPropagate_Success: improve raw packet case. (#44294)

Fix expected value for ProtocolType when a new Socket is created from
an existing raw packet socket Handle. This assert isn't checked unless
the test runs as root.

And use a proper value for the ProtocolType when the Socket is created.

3 years agoWorkaround xunit bug for disabling FileStreamStandaloneConformanceTests (#44295)
Stephen Toub [Thu, 5 Nov 2020 16:20:50 +0000 (11:20 -0500)]
Workaround xunit bug for disabling FileStreamStandaloneConformanceTests (#44295)

3 years agoUncomment `pr: none` in perf.yml (#44302)
Stephen Toub [Thu, 5 Nov 2020 15:28:41 +0000 (10:28 -0500)]
Uncomment `pr: none` in perf.yml (#44302)

3 years agoCorrectly set dylib version for libmonosgen-2.0.dylib (#44290)
Alexander Köplinger [Thu, 5 Nov 2020 15:27:45 +0000 (16:27 +0100)]
Correctly set dylib version for libmonosgen-2.0.dylib (#44290)

Fixes https://github.com/dotnet/runtime/issues/44284

3 years agofix stream conformance tests for mock provider (#44282)
Geoff Kizer [Thu, 5 Nov 2020 14:16:09 +0000 (06:16 -0800)]
fix stream conformance tests for mock provider (#44282)

Co-authored-by: Geoffrey Kizer <geoffrek@windows.microsoft.com>
3 years agoMore consistent cache key validation in Remove (#44286)
Jody Donetti [Thu, 5 Nov 2020 14:05:43 +0000 (15:05 +0100)]
More consistent cache key validation in Remove (#44286)

3 years agoAdd R2RDump support for lazy GC info (#44261)
Tomáš Rylek [Thu, 5 Nov 2020 12:21:20 +0000 (13:21 +0100)]
Add R2RDump support for lazy GC info (#44261)

This change makes it such that GC info is not automatically parsed
for each method, we only store a delegate performing the parsing
that gets called on demand. In practice this also helps us with
working around a bug in GC info previously crashing R2RDump when
emitting PDB in ARM release build mode.

Thanks

Tomas

3 years agoOmit ErrorInformation from ManagementException binary serialization (#44112)
Fagner Nunes Carvalho [Thu, 5 Nov 2020 04:36:05 +0000 (01:36 -0300)]
Omit ErrorInformation from ManagementException binary serialization (#44112)

* Omit ErrorInformation from ManagementException binary serialization
Fixes #2116

* Serialize MgmtException.errorObject as NULL for .NET Framework compat

3 years agoAllow embedded nulls in the result of mono_wasm_invoke_js (). (#44237)
Zoltan Varga [Thu, 5 Nov 2020 02:01:37 +0000 (21:01 -0500)]
Allow embedded nulls in the result of mono_wasm_invoke_js (). (#44237)

Fixes https://github.com/dotnet/runtime/issues/42693.

3 years agoSplit SslStream stream conformance tests for TLS1.2/1.3 (#44245)
Stephen Toub [Thu, 5 Nov 2020 01:33:18 +0000 (20:33 -0500)]
Split SslStream stream conformance tests for TLS1.2/1.3 (#44245)

3 years agoMove dotnet version to hardcoded version to workaround TFM change (#44224)
Drew Scoggins [Thu, 5 Nov 2020 01:32:14 +0000 (17:32 -0800)]
Move dotnet version to hardcoded version to workaround TFM change (#44224)

* Move dotnet version to hardcoded version to workaround TFM change

* Change 'windows' -> 'Windows_NT'

* Move osGroup checks back to 'windows'

* Update scenario yml

* Add crossgen path for SoD tests

3 years agoDisable DOUBLY_LINKED_FL (#44262)
Jan Kotas [Thu, 5 Nov 2020 01:17:28 +0000 (17:17 -0800)]
Disable DOUBLY_LINKED_FL (#44262)

Fixes #44250

3 years ago Use shared lock for files opened without FileAccess.Write on Linux (#44185)
David Cantú [Thu, 5 Nov 2020 00:32:38 +0000 (16:32 -0800)]
 Use shared lock for files opened without FileAccess.Write on Linux (#44185)

* Use shared lock for readonly files on Linux

* Add suggested tests

* Exclude test from OSX

* Add RemoteExecutor.IsSupported condition to tests

3 years agoUpdate IpcStreamFactory state machine to handle being started on a thread that ends...
John Salem [Thu, 5 Nov 2020 00:21:59 +0000 (16:21 -0800)]
Update IpcStreamFactory state machine to handle being started on a thread that ends (#43711)

Handles the case on Windows where Async IO is cancelled due to the thread coreclr started on ending.

3 years agoRemove MNADeprecationWorkaround in host test assets (#44259)
Elinor Fung [Wed, 4 Nov 2020 23:36:35 +0000 (15:36 -0800)]
Remove MNADeprecationWorkaround in host test assets (#44259)

3 years agoJIT: simple redundant compare optimization (#43811)
Andy Ayers [Wed, 4 Nov 2020 22:57:15 +0000 (14:57 -0800)]
JIT: simple redundant compare optimization (#43811)

For a relop, walk up the dominator tree to see if any dominating
block has a similar compare. If so, and there's just one path from
that block to the relop, the relop's value is known.

Closes #11909.

3 years agoUse SetFileInformationByHandle on FileStream.SetLength (#44170)
David Cantú [Wed, 4 Nov 2020 22:27:24 +0000 (14:27 -0800)]
Use SetFileInformationByHandle on FileStream.SetLength (#44170)

* Use SetFileInformationByHandle on FileStream.SetLength

* Remove Interop.SetEndOfFile since is no longer used

* Add manual test

* Address feedback

3 years agoAdd debugging a ci dump documentation template and script to fill info and include...
Santiago Fernandez Madero [Wed, 4 Nov 2020 20:28:33 +0000 (12:28 -0800)]
Add debugging a ci dump documentation template and script to fill info and include it on azdo test tab (#43937)

* Add debugging a ci dump documentation template and script to generate it on helix

* PR Feedback and fix helix workitems

* Fix python script and -buildid argument

* Upload doc only if dumps were found

* Pass down templatedir

* PR feedback

3 years agoUpdate buildtriage.md (#44196)
Viktor Hofer [Wed, 4 Nov 2020 19:22:34 +0000 (20:22 +0100)]
Update buildtriage.md (#44196)

* Update buildtriage.md

3 years agoFix inject_debug_resources target (#44238)
Juan Hoyos [Wed, 4 Nov 2020 17:20:24 +0000 (09:20 -0800)]
Fix inject_debug_resources target (#44238)

3 years agoRespect DOTNET_SHUTDOWNTIMEOUTSECONDS in HostOptions (#44080)
Vadim Galaktionov [Wed, 4 Nov 2020 13:55:35 +0000 (16:55 +0300)]
Respect DOTNET_SHUTDOWNTIMEOUTSECONDS in HostOptions (#44080)

* Respect DOTNET_SHUTDOWNTIMEOUTSECONDS in HostOptions

* Add Initialize to HostOptions, add HostOptions configure

* Add test

3 years agoAdd stream conformance tests for SocketsHttpHandler HTTP/1.1 streams (#44204)
Stephen Toub [Wed, 4 Nov 2020 13:52:08 +0000 (08:52 -0500)]
Add stream conformance tests for SocketsHttpHandler HTTP/1.1 streams (#44204)

* Add stream conformance tests for SocketsHttpHandler HTTP/1.1 streams

* Address PR feedback

3 years agoReenable dllmap for iOS/Android (#44243)
Alexander Köplinger [Wed, 4 Nov 2020 13:26:59 +0000 (14:26 +0100)]
Reenable dllmap for iOS/Android (#44243)

This got lost as part of the CMake conversion but we still need it for these platforms.

Fixes https://github.com/dotnet/runtime/issues/44242

3 years agoFix: NetworkStream throwing inconsistent exceptions (#40772)
Anton Firszov [Wed, 4 Nov 2020 12:45:51 +0000 (13:45 +0100)]
Fix: NetworkStream throwing inconsistent exceptions (#40772)

Fix a bug: Span<byte> overloads of NetworkStream throwing ObjectDisposedException instead of NetworkException, when not using derived NetworkStream.

3 years agoSocket.Tests: remove TestSettings.UDPRedundancy (#44202)
Anton Firszov [Wed, 4 Nov 2020 12:36:42 +0000 (13:36 +0100)]
Socket.Tests: remove TestSettings.UDPRedundancy  (#44202)

dotnet/corefx#15697 changed this value to 1, and no-one touched it since then.

As the comment in that PR points out, the root cause of the UDP test failures wasn't packet loss, but IPv4 / IPv6 port collision on Unix in dual-mode cases.

The value and the for loops are complicating Socket test code unnecessarily, simplification seems reasonable.

3 years agoAdd 'condition: always()' to Disk Usage after Build (#44209)
Matt Galbraith [Wed, 4 Nov 2020 12:24:21 +0000 (04:24 -0800)]
Add 'condition: always()' to Disk Usage after Build (#44209)

Looking at builds like this: https://dev.azure.com/dnceng/public/_build/results?buildId=873478&view=logs&j=1f8f000c-1adc-5434-677a-95dd9e006aba&t=30ef7da5-6e59-540d-0dbe-fa78537a8165&s=d654deb9-056d-50a2-1717-90c08683d50a, the other legs are failing left and right filling the agents' disks.  We need to know the disk usage after a build to see if this is relevant to build failures.

3 years agoDoubly linked freelist fixes (#43636)
Peter Sollich [Wed, 4 Nov 2020 09:02:04 +0000 (10:02 +0100)]
Doubly linked freelist fixes (#43636)

* Fix bugs in the doubly linked free list logic and enable it.

Details:

 - #define DOUBLY_LINKED_FL to enable

 - Fix issue in adjust_limit with accidentally setting MAKE_FREE_OBJ_IN_COMPACT bit in the plug_and_gap structure that gets put before a pinned plug - this overwrites any object that used to be there (after it has been saved elsewhere), so added logic to detect the situation and set MAKE_FREE_OBJ_IN_COMPACT in the saved object instead. To make this work, added new field "saved_pinned_plug_index" to remember which pinned plug to look at.

- In connection with the previous issue in adjust_limit, fix case of a 3 pointer size plug in from of a pinned plug - for this we need a range test to catch the case, plus add this offset to the beginning of saved_pre_plug_reloc. On the other hand, 3 pointers is the minimum size object, so added an assert to that effect as suggested in code review.

- Changed several comparisons because an object <= min_free_item_no_prev cannot be on the free list.

- Fixed issue in should_set_bgc_mark_bit where an assert fired because current_sweep_seg was null because the background gc thread was about to sweep, but hadn't set current_sweep_seg just yet. Fix is to set current_sweep_seg and current_sweep_pos early.

3 years ago[interp] Simplify GetRawData (#44217)
Vlad Brezae [Wed, 4 Nov 2020 07:09:25 +0000 (09:09 +0200)]
[interp] Simplify GetRawData (#44217)

Generate also better code.

3 years agoWasm async entrypoint (#44045)
Larry Ewing [Wed, 4 Nov 2020 05:59:21 +0000 (23:59 -0600)]
Wasm async entrypoint (#44045)

* [browser][bindings] Add support for calling the async Task entry point.

- When the entry point of an assembly is async we need to execute that method and return the Task object
- The Task object that is return from the execution of the async entry point will be marshaled to a JavaScript Promise.

Co-authored-by: Kenneth Pouncey <kjpou@pt.lu>
3 years agoTolerate missing tests (#44168)
Bruce Forstall [Wed, 4 Nov 2020 01:47:53 +0000 (17:47 -0800)]
Tolerate missing tests (#44168)

* Remove trailing whitespace

* Tolerate missing test file when analyzing results

Before, we'd hit an assert.

3 years agoAdd assert to SharedPerformanceCounter to debug test failures in CI (#44225)
Stephen Toub [Wed, 4 Nov 2020 01:00:59 +0000 (20:00 -0500)]
Add assert to SharedPerformanceCounter to debug test failures in CI (#44225)

3 years agoAdd wiggle room to MonitoringIsEnabled test (#44228)
Stephen Toub [Wed, 4 Nov 2020 01:00:30 +0000 (20:00 -0500)]
Add wiggle room to MonitoringIsEnabled test (#44228)

3 years agoAdd a PNSE configuration for System.Net.Quic (#44223)
Viktor Hofer [Wed, 4 Nov 2020 00:07:00 +0000 (01:07 +0100)]
Add a PNSE configuration for System.Net.Quic (#44223)

Systme.Net.Quic is part of the shared framework but dosn't have a
configuration that applies to Browser. Adding a non-rid configuration so
that this applies for all future configurations that aren't explicitely
listed as well.

Changing some throw null lambdas in the reference source file to work
around a bug in the GenFacades not supported assembly creation logic:
https://github.com/dotnet/arcade/issues/6509.

3 years agoRemove the old mono timezone icall implementation from driver.c (#44171)
Larry Ewing [Tue, 3 Nov 2020 23:37:30 +0000 (17:37 -0600)]
Remove the old mono timezone icall implementation from driver.c (#44171)

* Remove unused on netcore icall and set TZ in the startup js

3 years ago[interp] Reinitialize error in a few places (#44188)
Vlad Brezae [Tue, 3 Nov 2020 23:14:49 +0000 (01:14 +0200)]
[interp] Reinitialize error in a few places (#44188)

Otherwise we can assert when attempting to use the error.

3 years agoCheck that we don't create null checks on an address that is not null. (#44059)
Sergey Andreenko [Tue, 3 Nov 2020 22:42:20 +0000 (12:42 -1000)]
Check that we don't create null checks on an address that is not null. (#44059)

* Check that we don't create null checks on an address that is not null.

* Egor's request

3 years agoTry a different attribute for disabling stream conformance tests on browser (#44218)
Stephen Toub [Tue, 3 Nov 2020 22:09:20 +0000 (17:09 -0500)]
Try a different attribute for disabling stream conformance tests on browser (#44218)

3 years agoRemove several volatiles from Timer (#44199)
Stephen Toub [Tue, 3 Nov 2020 21:33:57 +0000 (16:33 -0500)]
Remove several volatiles from Timer (#44199)

TimerQueueTimer._canceled is only ever used when _associatedTimerQueue is held.

TimerQueueTimer._notifyWhenNoCallbacksRunning only ever transitions from null to non-null, always under a lock, and the only time it's used outside of a lock is just after that same thread validated the field was non-null while holding the lock.

3 years agoDon't expect LIST nodes in CALL args. (#44089)
Sergey Andreenko [Tue, 3 Nov 2020 21:01:34 +0000 (11:01 -1000)]
Don't expect LIST nodes in CALL args. (#44089)

3 years agoCheck catch and throw non-Exception derived types (#43969)
Adeel Mujahid [Tue, 3 Nov 2020 20:28:21 +0000 (22:28 +0200)]
Check catch and throw non-Exception derived types (#43969)

Verifies:

* `X` is derived from `Exception` in `throw X`.
* `throw null` is valid.
* `X` is derived from `Exception` in `catch(X)`.

Contributes to #37390

3 years agoDon't create a wrapper for run-v8.sh (#44172)
Larry Ewing [Tue, 3 Nov 2020 19:58:47 +0000 (13:58 -0600)]
Don't create a wrapper for run-v8.sh (#44172)

3 years agoimprove accuracy of Expect100Continue_WaitsExpectedPeriodOfTimeBeforeSendingContent...
Tomas Weinfurt [Tue, 3 Nov 2020 19:35:01 +0000 (11:35 -0800)]
improve accuracy of Expect100Continue_WaitsExpectedPeriodOfTimeBeforeSendingContent test (#44053)

* improve accuracy of Expect100Continue_WaitsExpectedPeriodOfTimeBeforeSendingContent test

* feedback from review

3 years agoExtend SendAsync/ReceiveAsync cancellation tests (#44161)
Anton Firszov [Tue, 3 Nov 2020 19:10:18 +0000 (20:10 +0100)]
Extend SendAsync/ReceiveAsync cancellation tests (#44161)

- Rename CanceledDuringOperation_Throws to ReceiveAsync_CanceledDuringOperation_Throws and extend it to IPv6 sockets.
- Introduce cancellation test for Socket.SendAsync.

3 years agoTcpClient.ConnectAsync(EndPoint) (#44110)
Martin Vseticka [Tue, 3 Nov 2020 18:33:23 +0000 (19:33 +0100)]
TcpClient.ConnectAsync(EndPoint) (#44110)

Implement TcpClient.ConnectAsync(IPEndPoint)

3 years ago[mono] remove 2 extra members from System.Object (#44081)
Aleksey Kliger (λgeek) [Tue, 3 Nov 2020 17:44:08 +0000 (12:44 -0500)]
[mono] remove 2 extra members from System.Object (#44081)

1. move `GetRawData` to an extension method in RuntimeHelpers and fixup the intrinsics
2. replace `Object.CloneInternal` by `MarshalAsAttribute.CloneInternal` at its one use site
3. re-enable System.Reflection.Tests.TypeInfoTests.FindMembers and fix mono/mono#15029

3 years agoUse different variable in base-job.yml to avoid confusion (#44193)
Alexander Köplinger [Tue, 3 Nov 2020 17:34:26 +0000 (18:34 +0100)]
Use different variable in base-job.yml to avoid confusion (#44193)

`/p:RuntimeOS` and the `-os` args are not the same thing (see https://github.com/dotnet/runtime/issues/33419) so we shouldn't be using the same variable for them.

3 years agoClean up style of Random.cs (#44195)
Stephen Toub [Tue, 3 Nov 2020 17:19:00 +0000 (12:19 -0500)]
Clean up style of Random.cs (#44195)

No functional changes.

3 years agoAdd SYSLIB0013 into obsoletion list (#44203)
Jan Jahoda [Tue, 3 Nov 2020 16:51:46 +0000 (17:51 +0100)]
Add SYSLIB0013 into obsoletion list (#44203)

* Add SYSLIB0013 into obsoletion list

Add obsoletion of Uri.EscapeUriString to the list.

* Remove extra new line

3 years agoFix comment causing formatting leg in CI to fail (#44197)
Stephen Toub [Tue, 3 Nov 2020 15:23:03 +0000 (10:23 -0500)]
Fix comment causing formatting leg in CI to fail (#44197)

3 years agodisable MockQuicStreamConformanceTests.Parallel_ReadWriteMultipleStreamsConcurrently...
Tomas Weinfurt [Tue, 3 Nov 2020 13:25:02 +0000 (05:25 -0800)]
disable MockQuicStreamConformanceTests.Parallel_ReadWriteMultipleStreamsConcurrently (#44184)

* disable MockQuicStreamConformanceTests.Parallel_ReadWriteMultipleStreamsConcurrently

* Update QuicStreamConnectedStreamConformanceTests.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
3 years agoFix/remove TODO-NULLABLE in System.Private.Xml (#44149)
Krzysztof Wicher [Tue, 3 Nov 2020 13:18:46 +0000 (14:18 +0100)]
Fix/remove TODO-NULLABLE in System.Private.Xml (#44149)

* Fix/remove TODO-NULLABLE in System.Private.Xml

* update contract for System.Xml.ReaderWriter

* follow up changes

3 years agoFill out hardware intrinsics linker substitutions for unsupported platforms (#44156)
Eric Erhardt [Tue, 3 Nov 2020 11:36:45 +0000 (05:36 -0600)]
Fill out hardware intrinsics linker substitutions for unsupported platforms (#44156)

Fix #44146