Commit Graph
104511 Commits
Author SHA1 Message Date
Tomas WeinfurtandTomas Weinfurt 5bb755d65e remove ClientAsyncAuthenticate_SslStreamClientServerNone_UseStrongCryptoSet (#37692)
Co-authored-by: Tomas Weinfurt <[email protected]>
2020-06-10 05:43:44 -04:00
Layomi Akinrinade e2ed3631b9 Use [SkipLocalsInit] & remove code for ILLink to strip locals init (#37541)
* Use [SkipLocalsInit] & remove code for ILLink to strip locals init

* Address review feedback

* Simply condition

* Clean up

* Fix condition
2020-06-09 19:18:49 -07:00
Zoltan Varga 584c9b58ed [wasm] Testing improvements. (#37662)
* Add System.Security.Cryptography.Algorithms to the pinvoke generator.

* Fix a stack overflow in WasmAppBuilder.

* [wasm] Unset MONO_LOG_MASK when running tests.

Its set to 'gc' by default which causes extra log messages to be added to the testResult.xml file.

* Turn off GC logging by default.
2020-06-09 21:00:47 -04:00
Layomi Akinrinade d218662afb Strip the ILLinkTrim.xml from the System.Diagnostics.StackTrace assembly (#37659) 2020-06-09 15:49:49 -07:00
Anirudh Agnihotry 090c8c0b71 adding the new version to avoid build failure (#37663)
* adding the new version to avoid build failure

* update the assemblyin Pakcage version
2020-06-09 15:13:51 -07:00
Santiago Fernandez Madero 19bb2a5131 Fix global-build official build arg evaluation (#37665) 2020-06-09 13:59:26 -07:00
Eugene Rozenfeld ee17aa6e6c Track promoted fields when struct local is no longer referenced. (#37280)
This is a follow-up to #36918. It addresses one of the examples in #1007
where we remove a struct zero initialization but fail to clean up a dead
field assignment.

The change is not to mark a dependently promoted field as untracked
if we know that the struct local is no longer referenced.

I also addressed a couple of late cosmetic review comments from #36918.

No diffs in framework and benchmarks.
2020-06-09 13:17:01 -07:00
Zoltan Varga 7ced31ce78 Preserve PlatformNotSupportedException in the linker. (#37657) 2020-06-09 15:31:36 -04:00
Kunal Pathak 7bf37b043e ARM64: fix the alignment for Vector64 to 8 bytes (#37649) 2020-06-09 12:02:51 -07:00
monojenkinsandBrzVlad db089c3e20 [interp] Don't save ip twice in InterpFrame (#37416)
We had frame->ip used by EH and debugger and frame->state.ip used to save the ip of the next instruction to be executed when we return from the call. Since both represent more or less the same thing, unify them and avoid duplicate storing inside InterpFrame for each call. Because we use this ip with exception handling, we need to subtract 1 (similar to the jit) so the ip ends up being in the call instruction and not the next.

Co-authored-by: BrzVlad <[email protected]>
2020-06-09 22:00:58 +03:00
Mitchell HwangandMitchell Hwang 5862edeb12 [libraries] Skip GetOpenSslVersion on Apple OS (#37646)
Extend the `PlatformNotSupportedException` for `OpenSslVersion` from `OSX` to `OSX, iOS, and tvOS`, as none of these Apple OS support OpenSsl.

Co-authored-by: Mitchell Hwang <[email protected]>
2020-06-09 19:41:46 +02:00
Alexander Köplinger ec3438e0f6 [mono] Add back sys/types.h include for clockid_t (#37653)
Looks like it was accidentally removed in https://github.com/dotnet/runtime/pull/37457
2020-06-09 19:06:46 +02:00
John Kelly b8e1a49266 Optimise MathF.CopySign and Math.CopySign using SSE intrinsics (#35456)
* Optimise MathF.CopySign and Math.CopySign

* Fix namespace error

* Clear up constant

* Remove x64 dependency for MathF method

* Remove unnecessary constant and unsafe from Math

* Remove unnecessary constant and unsafe from MathF

* Add ARM32/64 paths, and SSE41 path. Change integral constant to FP for perf and add integral constant for fallback

* Move conditional select to seperate helper methods, remove incorrect use of blendv

* Inline mask constants

* Correctly handle ISA not supported

* Remove old comment

* Fix syntax error

* Var -> explicit type

* Move helper method to sep class

As discussed w tanner

* move helper method

* Remove locals

* Fix namespace

* namespace

* Inline locals

* Change helper method to only accept float/double

* fix formatting

* fix sybntax
2020-06-09 09:08:21 -07:00
Fan Yang 0b416bc420 Check the existence of clocked_t (#37457)
* Use a macro more widely used by unix platforms

* If time.h exists, clock_it must have been defined

* Check the existence of clockit_t

* Move type check to the location near other time checks
2020-06-09 11:08:25 -04:00
Kenneth Pouncey 2c3cd0d3c7 [browser][wasm] Find the correct CoreLib (#37644)
Need to load `System.Private.Corlib`

closes: https://github.com/dotnet/runtime/issues/37636
2020-06-09 16:26:05 +02:00
Tom Deseyn 8558ca7871 SocketAsyncContext.Unix: remove Lock from IsReady (#36705)
* SocketAsyncContext.Unix: remove Lock from IsReady

* Make QueueState an int

* Update comment

* cleanup comment

* Update for rebase

* Decrement sequenceNumber instead of using nullable int

* PR feedback
2020-06-09 09:27:27 -04:00
Alexander Nikolaev db70edd145 Disable GetAsync_UnicodeHostName_SuccessStatusCodeInResponse (#37487)
SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.GetAsync_UnicodeHostName_SuccessStatusCodeInResponse is periodically failing with TimeoutException. It seems to be caused by the target server unavailability, this PR disables the test until a new unicode test host is found.
2020-06-09 13:57:23 +02:00
Stephen Toub 8d3e71889c Fix TestExited_SynchronizingObject test (#37639)
Fix race condition.
2020-06-09 07:54:17 -04:00
Sean Hall 3b5a51a297 Enable calling get_runtime_delegate from app context (#37473)
* Add ability for hostfxr_get_runtime_delegate to block on invalid delegate types.

This is required so that the runtime isn't loaded if the request has no chance of succeeding.

Fix spelling of initialization_options_t.

Add context_contract_version_set flag to initialization_options_t.

This allows hostpolicy to know whether it can rely on the version field of corehost_context_contract to be valid.
Also always initialize corehost_context_contract to {}.

* Allow app-based context to call hostfxr_get_runtime_delegate.

Currently, it may only request the load_assembly_and_get_function_pointer delegate.

Fix discrepancy in design doc.

Add error code HostApiUnsupportedScenario for blocks that might be removed. This gives the native host better information on why the request failed.

Add tests for running a component from an app context.
2020-06-09 04:48:19 -07:00
Marek Safar 9ce5e481ca More cleanups and optimizations for System.Runtime.InteropServices.JavaScript (#37613) 2020-06-09 13:03:18 +02:00
Alexander Köplinger da10ba8ca7 Use ConditionalFact/Theory for skipping RemoteExecutor on unsupported platforms (#37479)
RemoteExecutor doesn't work on platforms that can't spawn processes like iOS/Android/WebAssembly.
2020-06-09 12:40:44 +02:00
Stephen Toub 222d16386e Annotate System.ServiceProcess.ServiceController for nullable reference types (#37595)
* Annotate System.ServiceProcess.ServiceController for nullable reference types

* Address PR feedback
2020-06-09 06:40:01 -04:00
Aleksey Kliger (λgeek) 738066c535 [mono] Delete culture/ directory files (#37565)
Related to #37437 - we use libICU for culture information in`dotnet/runtime`, and now we don't sync `src/mono/mono/culture` back to the mono/mono repository, so we can delete all these files.
2020-06-09 12:19:16 +02:00
Viktor Hofer 2b7852b3d0 Create Microsoft.NetCore.App.Ref targeting pack for NetCoreAppCurrent in libraries (#37600)
* Create Microsoft.NetCore.App.Ref

Binplace reference assemblies into a Microsoft.NetCore.App.Ref folder
and also copy data files like the RuntimeList.xml and the
PlatformManifest.txt there.

Rename the runtime pack to microsoft.netcore.app.runtime.$(RID)

Fixing a restore issue in the wasm builder (restore and build should
not happen in the same msbuild invocation).
2020-06-09 12:10:33 +02:00
Stephen Toub 8d9c940e2f Enable nullable reference types for full facades (#37589)
Some of our full facades are missing `<Nullable>enable</Nullable>`.  I don't think the lack of these causes any issues, but having them makes it easy to confirm what ref assemblies remain to be annotated.
2020-06-09 06:00:01 -04:00
Michal Strehovský 29c4895d13 Add linker annotations to some of CoreLib (#36532)
Some of these are handled as linker intrinsics, so they'll actually keep less than what the annotation declares. The annotation mostly serves to suppress warnings when linker analyzes the body of the method itself.
2020-06-09 11:39:28 +02:00
Stephen Toub 5f43e51d13 Use [MemberNotNull] to reduce use of = null!; (#37490)
* Exclude MemberNotNull from various tools

* Use [MemberNotNull] to reduce use of `= null!;`
2020-06-09 05:28:21 -04:00
Michal Strehovský 0f97c7af66 Reflection annotate more of CoreLib (#37418) 2020-06-09 09:30:54 +02:00
Tomas Weinfurt ecc310bfc4 allow access to crypto props from RemoteCertificateValidationCallback (#37580) 2020-06-08 23:56:41 -07:00
Levi Broderick f929bed41a Obsolete RuntimeHelpers.OffsetToStringData (#35722) 2020-06-09 04:43:59 +00:00
Jeremy Barton b772f61807 Make System.Formats.Asn1 library public
* Move current ASN src and tests into new tree with no modifications

AsnReader partials are named AsnDecoder to better match the final name
for the core logic they contain.

* Make System.Formats.Asn1 package

* Apply changes from API review

Some additional tests were written to increase code coverage after the changes

* Move AsnReader consumers to public API
2020-06-08 21:33:48 -07:00
Aaron Robinson d6f1c6d0d4 Accept NativeCallableInternalAttribute to support legacy scenario (#37621)
* Accept NativeCallableInternalAttribute to support legacy scenario

* Feedback
2020-06-09 04:21:21 +00:00
Stephen ToubandSantiago Fernandez Madero ed3d384706 Revert "Update "LICENSE.txt" so that it's recognized as MIT" (#37626)
* Revert "Update "LICENSE.txt" so that it's recognized as MIT"

* Add LICENSE.TXT to global build

Co-authored-by: Santiago Fernandez Madero <[email protected]>
2020-06-08 22:22:27 -04:00
Tarek Mahmoud Sayed efe9663636 Support the Encoding enumeration in the Encoding Providers (#37528)
* Support the Encoding enumeration in the Encoding Providers

* Fix build

* Fix netstandard build

* Address the feedback

* More Feedback

* More Feedback
2020-06-08 19:21:01 -07:00
Santiago Fernandez Madero ed075a7ec4 Don't produce windows runtime packs for mono (#37627) 2020-06-08 18:58:42 -07:00
Ivan Diaz Sanchez da97f17219 Make build scripts' -help information more helpful (#37377)
* Sorted the build scripts' help alphabetically, and made the subset error
message softer and without metrics.

* Added simple examples to the scripts' helps.

* Moved short flags to the flag column and rephrased a bit.

* Removed remains of old code.

* Added more examples and rephrased some things for better clarity.

* Added gcc example to build.sh.

* Corrected definition of the Checked configuration.

* Added --clangx to build.sh
2020-06-08 17:58:50 -07:00
Tanner Gooding f833ffd502 Fix the remaining jitstress-isas-x86 failures (#37459)
* Ensure the right SIMD size is used for the AsVector256 AVX code

* Don't create GT_SIMD nodes if the baseline ISAs are not supported.
2020-06-08 17:32:54 -07:00
Stephen Toub d3d9a911e3 Respect Process.SynchronizingObject in Process events (#37308)
* Respect Process.SynchronizingObject in Process events

* Address PR feedback
2020-06-08 20:14:18 -04:00
Stephen Toub 1d4f3642ce Initialize AsnEncodedData.RawData to empty array (#37598)
Maintains nullable annotation on RawData.
2020-06-08 20:11:32 -04:00
Stephen Toub 00526841d2 Annotate System.Net.WebSockets.WebSocketProtocol for nullable reference types (#37593)
* Annotate System.Net.WebSockets.WebSocketProtocol for nullable reference types

This also helped find that the annotation of WebSocketReceiveResult(..., string closeDescription) was wrong in the ref (it was correct in the src), so I fixed that.

* Address PR feedback and suppress netcoreapp2.1 warnings
2020-06-08 20:07:51 -04:00
Sergey Andreenko a3bb3c06fd No retyping arm/arm64. (#36866)
* Enable for arm/arm64.

* Add more test cases specific to SIMD* handling.

* Support !compDoOldStructRetyping for arm/arm64.

* Review feedback.

* Return `JitDoOldStructRetyping`.

and disable failung tests with old retyping.

* a small workaround for default arm64 behaviour.
2020-06-08 16:45:48 -07:00
monojenkinsandvargaz 3e56795ae9 [wasm] Throw PlatformNotSupportedException instead of NotSupportedException when starting threads/waiting on monitors. (#37604)
<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->

Co-authored-by: vargaz <[email protected]>
2020-06-08 19:41:10 -04:00
Rich Lander b4a521d8ef Merge pull request #36744 from teo-tsirpanis/patch-1
Update "LICENSE.txt" so that it's recognized as MIT
2020-06-08 16:22:06 -07:00
Alexis Christoforides 6649dc781c Implement ModuleBuilder.GetFieldToken (#37497)
Contributes to https://github.com/mono/mono/issues/14788
2020-06-08 18:08:08 -04:00
Zoltan Varga d7b32dcf3a [wasm] Pass more assemblies to the pinvoke table generator. (#37608) 2020-06-08 17:46:50 -04:00
John Salem 07db02719c [Test] don't use process var in async readers (#37259)
* don't use process var in async readers

* Add comment
2020-06-08 16:59:24 -04:00
Stephen Toub ad3b8ed1e8 Update comments on GetCursorPosition (#37609) 2020-06-08 16:52:19 -04:00
Tomas WeinfurtandTomas Weinfurt 80553e8d49 Allow MemoryMappedFile to work on character device (#2183)
* allow MemoryMeppedFile to work on character device

* feedback from review

* feedback from review

* feedback from review

* roll-back write only access

* feedback from review

* fix windows

* avoid exception reordering

* feedback from review

Co-authored-by: Tomas Weinfurt <[email protected]>
2020-06-08 13:32:59 -07:00
Eric Erhardt 84abb55039 Allow individual projects to override LangVersion (#37512)
Setting LangVersion in a .targets file makes it hard to override LangVersion in individual projects. Instead, move the default project setting back to the .props file and condition VB based on $(MSBuildProjectExtension), which is available in the .props file.

ILCompiler.Reflection.ReadyToRun needs to set LangVersion to 7.3 so it doesn't break ILSpy.

Fix #37498
2020-06-08 16:20:53 -04:00
dotnet-maestro[bot]anddotnet-maestro[bot] 3218c668b6 [master] Update dependencies from mono/linker Microsoft/vstest (#37562)
* Update dependencies from https://github.com/mono/linker build 20200606.1

Microsoft.NET.ILLink.Tasks
 From Version 5.0.0-preview.3.20305.2 -> To Version 5.0.0-preview.3.20306.1

* Update dependencies from https://github.com/microsoft/vstest build 20200608-10

Microsoft.NET.Test.Sdk
 From Version 16.7.0-preview-20200605-01 -> To Version 16.7.0-preview-20200608-10

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-06-08 20:10:46 +00:00