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/class
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-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-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-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-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-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-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-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-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-27[Facades] Move more asseblies to Facades to support implicit reference for ↵Marek Safar
_._ like nugets and ignore version mismatch
2017-04-26Ensure that when an async read is performed on a response content theManuel de la Pena
errors are correctly dealt with. Some network errors in iOS are exposed as Stream errors, specially those related with the lost of the connection. This patch ensures that if such an issue happens an exception is raised in the async read task. Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=53792
2017-04-26Merge pull request #4743 from kumpera/2017-04-backport-4682Rodrigo Kumpera
Backport of #4682 to 2017-04
2017-04-25[roslyn] Pass --apply-bindings=$(csc_exe).config when AOT-ing ↵Aleksey Kliger
System.Reflection.Metadata To pick up assembly binding redirections from csc.exe.config
2017-04-25[bcl] Check the compact switch for whether cancelation token throws when ↵Rodrigo Kumpera
disposed.
2017-04-25[corlib] Change SwitchThrowExceptionIfDisposedCancellationTokenSource to ↵Rodrigo Kumpera
false as this is the default 4.6.0 behavior.
2017-04-25[bcl] Make our AppContextDefaultValues more compatible with RS and make them ↵Rodrigo Kumpera
non toggle-able on mobile. We change AppContextSwitches to hardcode values on mobile and use the full stack on desktop. We still have all strings in AppContextDefaultValues as this reduces the ifdef mess in AppContextSwitches. It's only used on desktop, where an extra kb is not the end of the world.
2017-04-25[corlib] Use AppContextSwitches implementation from RS. Fixes #54448Rodrigo Kumpera
This change makes AppContextSwitches usable which allow backwards incompatible settings to be actually toggled.
2017-04-24[Facades] Use Open.snk for netstandard.dllAlexander Köplinger
We were using the wrong key since dotnet/standard switched to using the new Open key. (cherry picked from commit 27fd8e5ad86672d1aff1d0cc1b76ba9cc7b76bcf)
2017-04-19[corlib/System.Data] Test fixes for xammac 4.5 and watchosAlexander Köplinger
The TrimSpecial() method and Windows-specific code was removed from xammac 4.5 so reflection can't find it anymore, handle this case. Also add a workaround for SqlParameterCollectionTest.CopyToTest() which fails on watchos since the SqlCommand would throw a PNSE. It's a workaround because it just makes the test ignored since we don't set the env var that ConnectionManager.Instance.Sql reads in XI tests, but it makes the test consistent with the other tests in the suite. We should fix this properly later on. (cherry picked from commit ceabda8a54b2580a1cd1feb7d01996c083ac92c3)