Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-06[sdks] Fix wasm order-only dependency on .PHONY target (#11009)Ludovic Henry
2018-10-05[icalls] Replace gboolean and mono_bool by MonoBoolean. (#10948)Jay Krell
Though one of these is an enum, use gint32. The enums MonoResolveTokenError and MonoProtocolType are also used in icalls, but that is left alone.
2018-10-05ifdef HAVE_ARRAY_ELEM_INIT is not actually guarding code that uses C99 array ↵Jay Krell
(#10996) initialization, but rather code that is portable to C89 and C++98. The alternative is also ok, just costs typically a pointer and a relocation per array element, things most people wouldn't notice but was presumably the point here.
2018-10-05Bump corefxAlexander Köplinger
2018-10-05[corlib] Fixup for System.IO.MemoryStream CoreFX importAlexis Christoforides
2018-10-05Bump to llvm/release_60/117a508c (#10983)Ludovic Henry
2018-10-05Merge pull request #10962 from kumpera/another_vtable_bugRodrigo Kumpera
[runtime] Properly inflate cmods of (m)var.
2018-10-05[bcl] Update BCL Linked Sizemonojenkins
2018-10-05Bump msbuild to track xplat-master (#10339)Ankit Jain
2018-10-05[crash] Make stub for rethrow_preserve_exception on aarch64Alexander Kyte
2018-10-05[crash] Fixup field name typo on untested arches (#10990)Alexander Kyte
2018-10-05[aot] Add clangxx option to --aot (#10779)Rodrigo Kumpera
* [aot] Add clangxx option to --aot that removes the hardcoded clang++ in our aot compiler. * [mini] Make --aot addictive. * Update CI script for bitcode.
2018-10-04[runtime] Fix malformed string selection in exceptions-ppc.c (#10987)Alexander Kyte
2018-10-04Bump corertMaxim Lipnin
2018-10-04Bump corertMaxim Lipnin
2018-10-04Extract case for verifying several object array parameters to separate test ↵Maxim Lipnin
method.
2018-10-04Add unit tests to verify custom attribute ctor with object array as parameterMaxim Lipnin
2018-10-04Fix corefx submodule refAlexander Köplinger
2018-10-04[csproj] Update project filesmonojenkins
2018-10-04Bump API snapshot submodulemonojenkins
2018-10-04[corlib] Import System.IO.MemoryStream from CoreFXAlexis Christoforides
2018-10-04Make a bunch of classes optional to the runtime. (#10804)Rodrigo Kumpera
The makes the following classes optional to the runtime: System.Reflection.CustomAttributeData System.Text.StringBuilder System.Math System.Console System.Diagnostics.StackTrace Those are all types that can be clearly made optional. There are a lot of other types we could, but there are deeper dependencies in places as threadpool or marshal. * [runtime] Kill mono_defaults.console_class. * [runtime] Kill mono_defaults.asyncresult_class. Doesn't help much as it's still needed by the TP. * [runtime] Remove mono_defaults.stack_trace_class. * [runtime] Remove dead field. * [runtime] Remove mono_defaults.math_class * [runtime] Cleanup handleref resolution to use the access macros. * [runtime] Remove mono_defaults.stribuilder_class. * [runtime] Remove System.Reflection.CustomAttributeData * [corlib] Update linker description. * [runtime] Fix compilation of the iOS SDK.
2018-10-04[tests] Remove magic which prepends MonoTests to NUnit test selection (#10977)Alexander Köplinger
When passing FIXTURE or TESTNAME to "make run-test" we automatically prepended `MonoTests.` to the value since all of our NUnit tests start with that to save you from typing a few chars. Now that we have xUnit tests as well this is confusing since it doesn't happen there. Better to remove it for consistency.
2018-10-04[corlib] Simplify confusing "SSPI" error message and align with corefx (#10976)Alexander Köplinger
Right now if anything goes wrong in the security stack you get a message like this: ``` System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED ``` This is confusing since SSPI is a Windows-only thing and is not used on Mono. We inherited this error message string from referencesource. Change the string to something more generic which also aligns us with CoreFX: https://github.com/dotnet/corefx/blob/a10890f4ffe0fadf090c922578ba0e606ebdd16c/src/System.Net.Security/src/Resources/Strings.resx#L210-L212
2018-10-04[ci] Always pass sha1 from Mac to Windows packaging buildAlexander Köplinger
Before we only did this for PR builds but it turns out it's needed for normal master/branch builds too. In situations where there are two Mac builds at roughly the same time the downstream Windows builds would otherwise both refer to the same/latest commit since they just checkout the latest ref on the branch. Now we reset the Windows build to the sha1 which is passed to it.
2018-10-04[wasm][bindings] Add support for strongly typed marshalling of C# enums. ↵Kenneth Pouncey
(#10958) * Add support for strongly typed marshalling of C# enums. JavaScript does not have the concept of Enums like TypeScript. Strings are used to represent enums. This PR allows a strongly type contract between C# values and the string representations used by a lot of the JavaScript API's. Example: DOM InputElement type -> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-type#Form_<input>_types The InputElement types are represented by strings. button, checkbox, color, date, datetime-local etc.... These string can be represented and marshalled back and forth by defining an enum as shown below with an `Export` data contract attribute. ``` public enum InputElementType { [Export(EnumValue = ConvertEnum.ToLower)] Button, [Export(EnumValue = ConvertEnum.ToLower)] CheckBox, [Export(EnumValue = ConvertEnum.ToLower)] Color, [Export(EnumValue = ConvertEnum.ToLower)] Date, [Export("datetime-local")] DateTimeLocal, } ``` The enum conversion allows controlling the marshalling: - Default - Marshals the enum name as is - ToLower - Marshals the enum name to lower case string - ToUpper - Marshals the enum name to upper case string - Numeric - Marshals the enum numeric values. Marshalling from C# to JavaScript using the SDK Bindings should be made as easy and pain free as possible. Marshalling the string values from JavaScript to C# will need a little help. The SDK Bindings Runtime provides a method to transport the string value to a strongly typed enum. ``` WebAssembly.Runtime.EnumFromExportContract(typeof(InputElementType), inputElementType); ``` * Add marshalling of C# Enums to method calls. * Add tests to bindings-test harness for testing marshalling of C# enum values. * Modify test for marshalling enum value without Export contract.
2018-10-04Merge pull request #10749 from lewurm/interp-fixes-for-native-typemonojenkins
[interp] fixes for native types please look at single commits. ------------------------ [interp] fix op_implicit/op_explicit conversions for native types Conversion operators have been mostly broken in the interpreter, for example conversion from nint to float didn't work. While some conversions are easy to intrinsify (like nint -> I8), there are harder cases like nint -> decimal. The JIT actually falls back to the managed implementation, so let's do this in the interpreter as well. However the managed implementation expects a pointer to the value type, i.e. the container type System.nfloat instead of float/double primitives. In such cases the value is going to be stored in a local and then the address of its storage is pushed on the stack before invoking the managed implementation of the conversion. Added test cases for scenarios observed in Xamarin.iOS. ----------------------- [interp] support ntype.CompareTo () ----------------------- [interp] support ntype.Equals () ----------------------- [interp] support nfloat.*Infinity ----------------------- [interp] support ntype.ToString () ----------------------- The conversion issue creeped everywhere in Xamarin.iOS since it heavily relies on nint/nuint/nfloat. With this PR we are getting close to a green monotouch tests 😁 <img width="874" alt="screen shot 2018-09-21 at 23 24 36" src="https://user-images.githubusercontent.com/75403/45907566-b457eb80-bdf8-11e8-9cc7-b8cf311dd269.png"> needs backporting to 2018-06 and 2018-08
2018-10-04Fix default colors for DataGridView (#10944)HebaruSan
* Fix default colors for DataGridView * Update tests
2018-10-04Use Mono.Android as a reference for netstandard facade (#10849)Egor Bogatov
* bump external/binary-reference-assemblies * use Mono.Android for netstandard * use API_BIN_REFS * move ifeq monodroid upper * use Mono.Android in System.Drawing.Primitives instead of ns * fix typo * Add Mono.Android back to ns as API_BIN_REFS * Bump API snapshot submodule * [csproj] Update project files
2018-10-04[bcl] Update BCL Linked Sizemonojenkins
2018-10-04Merge pull request #10468 from alexanderkyte/fix_stacktraceAlexander Kyte
[runtime] Fix stored exception throws
2018-10-04[crash] Fix trampoline rethrows to set caught_in_unmanagedAlexander Kyte
2018-10-03[mini] Add regression test for #10834.Rodrigo Kumpera
2018-10-03[metadata] Make type dup used by inflate_generic_type be cmod aware. Fixes ↵Rodrigo Kumpera
#10834 We didn't include cmods when inflating var/mvar cuz we'd mono_metadata_type_dup' the inflated type and not the (m)var MonoType. The solution is to add a variant of mono_metadata_type_dup that takes the source of cmods to use.
2018-10-03[metadata] Improve --print-vtable when dealing with broken types or abstract ↵Rodrigo Kumpera
methods.
2018-10-03[interp] introduce float R4 stack typeBernhard Urban
2018-10-03[interp] support ntype.ToString ()Bernhard Urban
2018-10-03[interp] support nfloat.*InfinityBernhard Urban
2018-10-03[interp] support ntype.Equals ()Bernhard Urban
2018-10-03[interp] support ntype.CompareTo ()Bernhard Urban
2018-10-03[interp] fix op_implicit/op_explicit conversions for native typesBernhard Urban
Conversion operators have been mostly broken in the interpreter, for example conversion from nint to float didn't work. While some conversions are easy to intrinsify (like nint -> I8), there are harder cases like nint -> decimal. The JIT actually falls back to the managed implementation, so let's do this in the interpreter as well. However the managed implementation expects a pointer to the value type, i.e. the container type System.nfloat instead of float/double primitives. In such cases the value is going to be stored in a local and then the address of its storage is pushed on the stack before invoking the managed implementation of the conversion. Added test cases for scenarios observed in Xamarin.iOS.
2018-10-03[interp] Avoid emitting some unnecessary opcodes (#10894)Vlad Brezae
2018-10-03[sdks/ios] Build libMonoPosixHelper for device architectures, so that ↵Rolf Bjarne Kvinge
zlib-helper.o is created. (#10921) xamarin-macios currently builds zlib-helper.o using mono's source code. It would be preferrable to use a version built by mono, and since zlib-helper.o is a byproduct of building libMonoPosixHelper, we need to build libMonoPosixHelper (we already build it for simulator architectures), even though we don't need/use libMonoPosixHelper itself.
2018-10-03Merge pull request #10672 from jaykrell/fault-addr-wasm.3monojenkins
Get fault_addr in debugger stacks. This time w/o breaking WebAssembly and w/ working on Mac.
2018-10-03[bcl] Put xunit tests in mcs/class/lib/PROFILE/tests too (#10928)Alexander Köplinger
So they are next to their NUnit counterparts. Move xunit remote executor app to tests dir too and compile it when compiling the test assembly instead of doing it before running the test. We need to use an absolute path for the xunit remote executor and it needs to be in Windows format on Windows since we pass it as an env var to the xunit tests.
2018-10-03[linker] Bump to mono/linker@e6760e6fAleksey Kliger
Includes mono/linker@4dde7af5c84cc6bc7dbb9e8f5995c4f36e7ef929 to fix permissions of files created by OutputStep. Fixes https://github.com/mono/mono/issues/10743
2018-10-03[Reflection] Fix issue with finding types in module using an asterisk as ↵Maxim Lipnin
filter criteria
2018-10-03Paint ToolStrip background with ToolStrip.BackColorPaul Hebble
2018-10-03[csproj] Update project filesmonojenkins
2018-10-03Bump API snapshot submodulemonojenkins