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
path: root/mcs
AgeCommit message (Collapse)Author
2017-10-06[appletls] Trust SecTrustResult.Proceed as well. Fixes #58411.d15-4-2017-04Rolf Bjarne Kvinge
Apple states clearly in their documentation about SecTrustResult.Proceed [1]: The user explicitly chose to trust a certificate in the chain (usually by clicking a button in a certificate trust panel). Your app should trust the chain. This fixes bug #[58411][2], where SecTrustEvaluate returns SecTrustResult.Proceed starting with iOS 11. [1]: https://developer.apple.com/documentation/security/1394363-sectrustevaluate [2]: https://bugzilla.xamarin.com/show_bug.cgi?id=58411
2017-09-12[System]: Fix minor leaks in AppleTls. (#5369) (#5380)Martin Baulig
* [System]: Fix minor leaks in AppleTls. (#5369) These should be automatically collected by the GC, but explicitly disposing will keep memory usage more stable over time and keep pressure off the GC. (cherry picked from commit 093915cf834e7a3242529acae76d11d8a10c7c3d) (cherry picked from commit 9b8bb0edbef4f3e3f8dda52965c42307caf0f888) * Make it build.
2017-09-12[System]: Fix major AppleTls memory leak. Bug #56814. (#5370) (#5377)Martin Baulig
(cherry picked from commit c74f44126efe14f933ddc77dc0778f5142be0ec2)
2017-07-25[Marshal.IsComObject] Make this predicate return false instead of throwing ↵Miguel de Icaza
an exception which is what the calling code expects (#5246)
2017-07-19[System.Net.Http]: Close request stream when HttpClientHandler.SendAsync() ↵Martin Baulig
is done writing data. (#5226) (#5231) (cherry picked from commit d1555c7c72e280bcdc1b61ea42266042107dc749)
2017-06-24Require #if WIN_PLATFORM more strictly around some WinRT timezone functionsAndi McClure
This was breaking the hybrid AOT build.
2017-06-19[tests] Don't run SRE saved assembly in current processAleksey Kliger
Windows doesn't like deleting the file, and the original bug was a problem in SRE, not in the AssemblyBuilder.Save ()
2017-06-17[tests] Rework TypeBuilderTest SetUp/TearDownAleksey Kliger
- Create a unique temporary directory for each test in TypeBuilderTest and delete it on TearDown. - Change tests to use tempDir instead of Path.GetTempPath () - Change IsSerializable () test to how it was 11 years ago and have it write to a file with a simple name (but now in a directory where noone else is writing) - Change FieldsWithSameName (), FieldsWithSameNameAndType () and MethodsWithSameNameAndSig () to use the default temp assembly (now in a unique tempDir) instead of using the CreateTempAssembly () - Remove CreateTempAssembly function. It is dead code.
2017-06-09[test] Test SRE of a class with two methods with the same name.Aleksey Kliger
Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=57222 Although methods aren't affected by this bug, I added a regression test for this case anyway in case the implementation changes. Currently MethodBuilder.RuntimeResolve() goes through a different codepath - it calls RuntimeType.GetMethod (MethodInfo) which calls into an icall which looks for a method with a matching token rather than a matching name.
2017-06-09[sre] FieldBuilder:RuntimeResolve shouldn't lookup by name. (Fixes #57222)Aleksey Kliger
RuntimeType:GetField (FieldInfo) looks up the field by name and attributes, which doesn't work for SRE because it is legal to create multiple fields with the same name and type and attributes. So lookup using the RuntimeFieldHandle (aka MonoClassField*) instead.
2017-06-09[test] Test SRE of a class with two fields with same nameAleksey Kliger
Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=57222
2017-06-06Use correct path separator for satellite assemblies in cross builds (#4976)Marek Habersack
When creating a bundle on Windows to run on Android, macOS/iOS or Linux we need to use the target system's path separator when storing satellite assemblies in the bundle instead of the host system's one. Failing to do so will embed (on Windows) the satellite assemblies with paths like fr_FR\myassembly.resources.dll while at runtime Mono will try to look up the assembly by fr_FR/myassembly.resources.dll and fail to find it, obviously. The `--style` parameter is now consulted to see what path separator character should be used. Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=55603
2017-06-02Revert "[sdb] Add an API to make the contents of the 'State Machine Hoisted ↵Zoltan Varga
Local Scopes' table in ppdb files available in sdb. (#4961)" This reverts commit a88457ac21078aab675d8c2955caf55ed93bce4f.
2017-06-02[sdb] Add an API to make the contents of the 'State Machine Hoisted Local ↵Zoltan Varga
Scopes' table in ppdb files available in sdb. (#4961)
2017-06-01[mcs] Constant folding of enum constant and literal was using wrong ↵Marek Safar
operands. Fixes #53202
2017-05-31[System] Add missing configuration properties to the list of properties (#4954)Alexander Köplinger
After looking at https://github.com/mono/mono/pull/4949 I did a quick pass through the other config sections and found two more cases where we missed adding to the properties list. (cherry picked from commit cbd180afe66dbe3da18a22c5260e171a82dc207e)
2017-05-31[System] Add useDefaultCredentialsProp to the list of properties. (#4949)Cody Russell
(cherry picked from commit 45e66c5362ea37b5135269edc93c365304b85294)
2017-05-30Merge pull request #4947 from lambdageek/bug-54485-2017-04Aleksey Kliger (λgeek)
[2017-04][metadata] expand uninstantiated generic type definitions used as generic type args (Fixes #54485)
2017-05-30[S.R.I.RuntimeInformation] Fix FrameworkDescription on Android (#4946)Alexander Köplinger
* [S.R.I.RuntimeInformation] Fix FrameworkDescription on Android It turns out using `DllImport ["__Internal"]` doesn't work on XA (and other cases where Mono is embedded) because it searches for the method in the host which embeds Mono and doesn't find it, resulting in an EntryPointNotFoundException. We need to switch to an icall instead. However there's already an existing icall+BCL wrapper: Mono.Runtime.GetDisplayName(). Added IVT from corlib to S.R.I.RuntimeInformation so we can call it. * Update API snapshot (cherry picked from commit 37fe83f6eaf073ae7ecd470bf3d2541af5829652)
2017-05-30[tests] System.Type.MakeGenericType with a GTD as argumentAleksey Kliger
Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=54485
2017-05-30[mcs] Reset catch state variable after it has been checked. Fixes #54322Marek Safar
2017-05-29[System]: Don't call OnCompleted(this) twice in ↵Martin Baulig
SocketAsyncEventArgs.FinishWrapperConnectSuccess(). (#4894) (cherry picked from commit d62228e521645a00a653d3049b37b5dbd8b86486)
2017-05-29[Facades] Update to match latest contracts (#4939)Alexander Köplinger
* [Facades] Update to match latest contracts * Update API snapshot (cherry picked from commit 966d8f2a574bb81950bc577b4c8badfc287da496)
2017-05-29[System.Diagnostics.Tracing] Don't generate empty debyg symbolsMarek Safar
(cherry picked from commit a2c9df561740b035631f32c516e03bd5fcc03aa0)
2017-05-29[Facades] Don't build debug symbols for System.Net.SocketsMarek Safar
(cherry picked from commit 07b8eaa68fa48d57c04fdeb1a8a7472061280c05)
2017-05-29Remove unused facadeMarek Safar
(cherry picked from commit 08c7d3c1203827cc92ed0642d91e0652dd83550a)
2017-05-26[mcs] Codegen for optimized new with valuetype load and awaited arguments. ↵Marek Safar
Fixes #56081
2017-05-24Bug #56499: unreadable /etc/localtime should not cause an exception (#4881)Marcin Cieślak
* Bug #56499: unreadable /etc/localtime should not cause an exception * Fix build (cherry picked from commit 940944dcdefb56f7952cd35a43bcbd5f70ba78ef)
2017-05-23[mcs] Add expression bodied syntax for accessors. Fixes #54991Marek Safar
2017-05-19[bcl] Dispose Cecil AssemblyDefinition after usage (#4900)Alexander Köplinger
Follow-up to https://github.com/mono/mono/pull/4899. I audited all the places in BCL where we made use of Cecil's AssemblyDefinition and made sure we're properly disposing them and not keeping files unnecessarily open. I used InMemory=true in cases where tracking the lifetime would be complicated. There are also some tests in mcs/tests which I didn't bother to fix. (cherry picked from commit 3637f8cddf52608a6f7f865ab8e7419c8d98e851)
2017-05-18[pdb2mdb] Dispose Cecil AssemblyDefinition on pdb2mdb (#4899)Alexander Köplinger
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=56275 Recent Cecil 0.10 changed to not reading the assembly in memory but instead reads directly from the underlying stream [0]. This however means that the file handle is not freed until the AssemblyDefinition is disposed. Xamarin.Android is using the pdb2mdb source as part of Xamarin.Android.Build.Tasks.dll and hit an issue where the file would be locked inside of VS. [0] http://cecil.pe/post/149243207656/mono-cecil-010-beta-1 (cherry picked from commit 5077205a44a7dc97edf6b67072bea53f043cf815)
2017-05-17Fixes a file handle leak in mono_mmap_open_file() on Windows. (#4886)Niklas Therning
See https://bugzilla.xamarin.com/show_bug.cgi?id=56493. Backport of PR #4877.
2017-05-16[btls] Add MonoPInvokeCallback attribute on all full aot profiles (#4879)Alexander Köplinger
It was #ifdef'ed to only be available on monotouch before, but the testing_aot_full profile in CI runs into this test failure: ``` MESSAGE: System.ExecutionEngineException : Attempting to JIT compile method '(wrapper native-to-managed) Mono.Btls.MonoBtlsSslCtx:NativeVerifyCallback (intptr,int,intptr)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information. +++++++++++++++++++ STACK TRACE: at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_thread_interruption_checkpoint () at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:GetFunctionPointerForDelegateInternal (System.Delegate) at System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate[TDelegate] (TDelegate d) [0x00013] in <fa55a8c31ba0490383239e5850d81686>:0 at Mono.Btls.MonoBtlsSslCtx..ctor (Mono.Btls.MonoBtlsSslCtx+BoringSslCtxHandle handle) [0x00059] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Btls.MonoBtlsSslCtx..ctor () [0x0000b] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Btls.MonoBtlsContext.InitializeConnection () [0x00000] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Btls.MonoBtlsContext.StartHandshake () [0x00000] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncProtocolRequest asyncRequest, Mono.Net.Security.AsyncOperationStatus status) [0x00004] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (Mono.Net.Security.AsyncOperationStatus status) [0x0006b] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation () [0x0000d] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Net.Security.AsyncProtocolRequest.StartOperation () [0x0003c] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Net.Security.AsyncProtocolRequest.StartOperation (Mono.Net.Security.AsyncOperation operation) [0x00024] in <18810f39bffc41dcb0263eb2043cc10e>:0 at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Net.LazyAsyncResult lazyResult) [0x00057] in <18810f39bffc41dcb0263eb2043cc10e>:0 ``` The attribute itself is already conditional on MONOTOUCH and FULL_AOT_RUNTIME so simply removing the ifdef should fix the issue. (cherry picked from commit f4ce23e0b74688a0c2fe68ff9d9e6650e72775bb)
2017-05-16[runtime] Handle circular references in SRE typesAlexander Kyte
We previously recursed through the entire directed cyclic graph of the type passed to SRE. When given a (legal) circular type reference, we encountered stack overflows. This was particularly easy to trigger with fsharpi and with FAKE. By creating everything about the type before searching for the parent, and by defering all type hierarchy establishment until the type must be surfaced to manage code, we tease out the data dependencies caught up in the cycle. Note the bounded lifetime of the unmanaged object hidden in the SRE module, which acts as a global reference for all types reachable from the TypeBuilder passed to the runtime through the icall.
2017-05-16[xbuild] Add web targets for 15.0 (#4868)Mikayla Hutchinson
(cherry picked from commit 8077ff5da774bb771c896d6fdb40740f649975af)
2017-05-12[Facades] Update with new typeforwarders/APIs (#4838)Alexander Köplinger
(cherry picked from commit 2324773fbb7ffa6e86fafb39c11ac724cc1ccd50)
2017-05-11Specify Encoding.UTF8 when marshaling native runtime string. If not, string ↵Jonathan Chambers
constructor accesses Encoding.Default which causes infinite recursion on Windows for codepages supported via I18N. While trying to load I18N assemblies, assembly names are marshaled in managed code now hitting this code path. Fixes Xamarin bug 43988.
2017-05-11[System] Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime'.Rolf Bjarne Kvinge
Use 'ObjCRuntimeInternal' as the namespace instead of 'ObjCRuntime' to avoid these compiler-warnings when building xamarin-macios assemblies (which defines the same types in the ObjCRuntime namespace, and to whom System.dll has an InternalsVisibleTo attribute): > xamarin-macios/src/build/watch/watch/Foundation/NSExtensionRequestHandling.g.cs(28,49): warning CS0436: The type `ObjCRuntime.INativeObject' conflicts with the imported type of same name'. Ignoring the imported type definition > xamarin-macios/src/ObjCRuntime/INativeObject.cs(6,19): (Location of the symbol related to previous warning) > xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.WatchOS/repl/System.dll (Location of the symbol related to previous warning)
2017-05-10[process] Disable tests that do not work on mobile (#4598)Ludovic Henry
2017-05-09[System.Data] Update cas test categoryMarek Safar
2017-05-09[mcs] Conditional check on attribute type needs to check its base types tooMarek Safar
2017-05-05[System]: Fix default TLS provider. (#4797) (#4800)Martin Baulig
(cherry picked from commit 9667aa6485bfc59ba257e9fb73f5e2cfbc9a2e50)
2017-05-05[System]: Fix bug #52508 in HttpListener when doing multiple Https request.Martin Baulig
Move the call to SslStream.AuthenticateAsServer() into the constructor because we don't want to call it again when Init() is called from Close(). (cherry picked from commit 5e08742b5c299c0503d11ea44d115c32a6b7c68f)
2017-05-04[bcl] Add .NET 4.7 reference assemblies (#4791)Alexander Köplinger
(cherry picked from commit 9667b4ef59cf8ce2617dadebb08fe1b85f1ac33d)
2017-05-04[System.Net.Http] Fix XI buildAlexander Köplinger
(cherry picked from commit 49bb738eb2298c5a5388d22e2d6176cf798a1f05)
2017-04-28[test] Regression tests for ConstructorBuilder custom attributesAleksey Kliger
Regression tests for https://bugzilla.xamarin.com/show_bug.cgi?id=55681
2017-04-28[System.Reflection.DispatchProxy] Move to facades to support _._ nugetsMarek Safar
2017-04-28[Facades] Update version numbersMarek Safar
2017-04-28[mkbundle] Add support for generating monodroid compatible mkbundle code at ↵Dean Ellis
runtime (#4728) monodroid used to build its own version of mkbundle since it requires slightly different code than the desktop. This logic was protected in a #if block. Now that monodroid is trying to make use of the shipped mkbundle rather than use its own we need to turn this logic on at runtime. A new parameter has been added --bundled-header When this option is passed, the code which skips including mono/metadata/mono-config.h will be skipped in favour of defining the required structures and entry points directly. (cherry picked from commit 59737b2a477874315059ed83ad4dd2ca9f8b19e8)
2017-04-27[Facades] Move more asseblies to Facades to support implicit reference for ↵Marek Safar
_._ like nugets and ignore version mismatch