* 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.
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.
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]>
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]>
* 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
* 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
* 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
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.
* 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.
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.
* 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).
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.
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.
* 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
* 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]>
* Support the Encoding enumeration in the Encoding Providers
* Fix build
* Fix netstandard build
* Address the feedback
* More Feedback
* More Feedback
* 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
* 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
* 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.
<!--
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]>
* 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]>
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
* 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>