Compare commits

...
136 Commits
Author SHA1 Message Date
Brendan Zagaeski 6bf3922f3f Bump version to 5.8.1 (#7499) 2018-03-08 13:19:25 -05:00
Ludovic Henry 7f6c3ef15b [2017-10] Only null check target for delegate if method is not static. (#7476)
* Only null check target for delegate if method is not static. Fixes regression introduced by 1cfd52452a.

* pass first stack arg to transform, so we get the correct delegate wrapper

the wrapper logic detects if the target method of a delegate is a static
method with an argument bound, and handles it properly in the generated
code.

fixes mono/tests/delegate14.cs
2018-03-07 21:48:23 -05:00
monojenkins 30441ea0ac * Generalize commit 0c6932a985 to support LDARG{0|1|2|3}, LDLOC{0|1|2|3}, LDARGS, LDLOCS, LDARG and LDLOC instead of LDLOC and LDLOCS. Improves generated code similar to issue #60945 (#7444) 2018-03-07 09:54:59 -05:00
Alexander Köplinger 835a98d855 Bump bockbuild to get curl error changes 2018-02-24 02:02:15 +01:00
Alexis Christoforides bbd88d02b2 Bump bockbuild for https://github.com/mono/bockbuild/pull/62 (#7208) 2018-02-22 15:39:36 +01:00
Jonathan Chambers 1eac626536 Pass TRUE for 'repeat' of send variants. This matches behavior of receive variants. Fixes blocking send call where Win32 returns WSAEWOULDBLOCK.
Related to issue https://github.com/mono/mono/issues/6464
2018-02-08 16:31:22 -05:00
Alexander Köplinger 33652b57eb Bump bockbuild to get new gtk+ repo location 2018-02-08 20:22:31 +01:00
Alexander Köplinger 3f39812cb9 [2017-10] [reference-assemblies] Fix public key for some newer v4.7.1 facades (#6864)
Fixes https://github.com/mono/mono/issues/6848
2018-02-08 01:08:44 +01:00
Zoltan Varga da1e498884 Fix a regression introduced by e05343ddf5: Disable the ldobj+stobj optimization for reference types.
Fixes https://github.com/mono/mono/issues/6777.
2018-02-06 14:10:42 -05:00
monojenkins 38502063ca Revert "[mini] Align stack when resuming to catch handler" (#6744)
This reverts commit ab20369d5f.

It breaks llvm EH : https://github.com/xamarin/xamarin-macios/issues/3241
2018-02-01 09:48:48 -05:00
Marek Safar 3c3e692887 Bump linker 2018-01-22 19:36:45 +01:00
Manuel de la Pena ab882c0c3d [Test] Skip some tests from System.ServiceModel on WatchOS. (#6593)
Some of the classes are not supported in the platform while are
supported in MOBILE. Skip them accordingly.
2018-01-22 17:29:05 +01:00
Ankit Jain 9a93d3e51a Bump msbuild to pick up the IsOSX performance fix 2018-01-22 12:28:49 +01:00
Marek Safar 3e771b512a Bump corefx dependency 2018-01-22 09:12:13 +01:00
Manuel de la Pena 7344771071 [Tests] Skip a subset of the System.IdentityModel for iOS and Mac. (#6576) 2018-01-18 19:20:49 +01:00
Manuel de la Pena bb9f666858 [Tests] Skip System.ServiceModel tests that are not supported on XamMac 4.5 (#6565) 2018-01-18 13:57:42 +01:00
Radek Doulik 9c9140bb72 [Tests] Do not assume order of returned interfaces
Updated the System.Reflection.Emit/SaveTest to not depend on order of
interfaces returned from the System.Type::GetInterfaces method, as the
order is not guaranted. As described in the [documentation][0].

Also see github [issue][1] for more information and reasoning.

[0]: https://msdn.microsoft.com/en-us/library/system.type.getinterfaces(v=vs.110).aspx#Anchor_2
[1]: https://github.com/xamarin/xamarin-android/issues/1186
2018-01-18 09:32:08 +01:00
Marek Safar 267896c45d Bump linker (#6550) 2018-01-17 15:11:07 -05:00
Vlad Brezae ba2e556947 [sgen] Fix overflow on large arrays (#6542) 2018-01-17 18:05:00 +01:00
Manuel de la Pena cb1747a70c [Tests] Skip some of the System.ServiceModel tests when using MOBILE (#6539)
Mobile does not support all clases found in System.ServiceModel, we skip
those tests of the not supported classes yet run all the others.
2018-01-17 01:00:42 +01:00
Miguel de Icaza 2057307374 Use Environment.Platform to access the platform, rather than probing the file system (#6540)
Backport of #6535 to 2017-10
2018-01-17 00:51:08 +01:00
Alexander Köplinger ba9ca156ea [2017-10] [bcl] Add .NET 4.7.1 reference assemblies (#6504)
* [bcl] Add .NET 4.7.1 reference assemblies

Backport of #5974 to 2017-10

* [class] Add Obsolete message to ICSharpCode.SharpZipLib.dll

Users should use the nuget package instead, we'll remove the assembly in Mono 6.0

Don't install it into the 4.7.1 reference assembly directory anymore.

(cherry-pick of 2a03be316d)

* Bump API snapshot submodule
2018-01-15 20:54:40 +01:00
Alexander Köplinger c7ec6a03ae Bump gtksharp in bockbuild (#6387) 2018-01-15 16:54:48 +01:00
Ludovic Henry c8921a6394 [w32process] Ensure process_handle is a legal value (#6449)
* [w32process] Ensure process_handle is a legal value

Fixes https://github.com/mono/mono/issues/6383

* [w32process] Remove dead code
2018-01-15 15:48:33 +01:00
Zoltan Varga 9aa78573ee [jit] Convert stores into sign/zero extensions for small ints during alias-analysis. Fixes gh #6414.
(cherry picked from commit d32dfaad8fdd4a3a765aa4f2739f3df566d62a4f)
2018-01-10 09:03:25 +01:00
Alexander Köplinger 3f5fd4287b [System] Set exception on Finish*Failure in SocketAsyncEventArgs (#6462)
Follow up to https://github.com/mono/mono/pull/6431, we should
capture the exception that is passed to the methods.

Copied the SetResult() method that referencesource uses.

(cherry picked from commit ad5703adfd)
2018-01-09 17:33:39 +01:00
Miguel de Icaza 253f2e9b27 Implement a couple of SocketAsyncEventArgs methods 2018-01-09 17:33:39 +01:00
Marek Safar e70439f186 [runtime] Adds System.Numeric remapping. Fixes #6339 2018-01-03 11:24:23 +01:00
Brendan Zagaeski 4f8a31840c [System]: Ensure WebConnection calls nstream.EndWrite()
Also ensure that WebConnection calls nstream.EndRead().

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=61002

This bug is a regression in HTTPS web request cancellation behavior
first introduced on the 2017-06 branch by
https://github.com/mono/mono/commit/1b5e0f73316ee7b83c8947bc738015443fabd7af.
It is in fact resolved already for the master branch by the refactoring
in https://github.com/mono/mono/pull/6125.  But since that refactoring
is too large to backport and since the master branch won't be integrated
into a release for a while longer, it is worth adding a separate smaller
fix for the older active development branches.

This proposed fix is intentionally conservative in how it modifies
`WebConnection.EndWrite()` and `WebConnection.EndRead()`.  It makes sure
to keep precisely the same return values and exceptions as before.

The fix also makes a small change to the `Close()` method to avoid
setting `nstream = null`.  This allows any pending `EndWrite()`,
`EndRead()`, or `ReadDone()` callbacks to use the `nstream` field even
after `Close()` has run.  This shouldn't cause any new garbage
collection issues because the closed `WebConnection` object is not
expected to live much longer than the `NetworkStream` object referenced
by `nstream`.

Example of the problem for canceling `HttpClient.SendAsync()`
=============================================================

1. `WebConnectionStream.SetHeadersAsync()` calls
   `WebConnection.BeginWrite()`, passing in an anonymous callback method
   that will later call `WebConnection.EndWrite()` when the asynchronous
   write operation completes [1].

2. When the `CancellationToken` for the call to `HttpClient.SendAsync()`
   is notified about the cancellation, it calls `HttpWebRequest.Abort()`
   [2], which calls `WebConnection.Abort()`, which calls
   `WebConnection.Close()`.

3. `WebConnection.Close()` calls `Close()` on both the
   `MobileAuthenticatedStream` and the network `Socket` and nulls out
   the `WebConnection`'s field references to those objects [3].
   `MobileAuthenticatedStream.Close()` in turn calls
   `MobileAuthenticatedStream.Dispose()`, which sets the `lastException`
   field to an `ObjectDisposedException`.  If the asynchronous write
   operation from step 1 is still in progress at this point, it will
   throw the `ObjectDisposedException`.

4. When `MobileAuthenticatedStream.StartOperation()` throws the
   `ObjectDisposedException` (thus completing the running Task), the
   anonymous callback method from step 1 gets invoked, and it calls
   `WebConnection.EndWrite()`.

5. The problem is that now `WebConnection.EndWrite()` fails to call
   `MobileAuthenticatedStream.EndWrite()`.  There are 2 parts of the
   problem:

   (a) `WebConnection.EndWrite()` always returns _before_ calling
   `MobileAuthenticatedStream.EndWrite()` [4] because the call to
   `Abort()` at step 2 has set the request status to canceled [5].

   (b) Even if the cancellation status check weren't there, the attempt
   to call `MobileAuthenticatedStream.EndWrite()` still wouldn't work
   because `Close()` has set the reference to the stream to `null` at
   step 3.

The proposed fix addresses (a) by rearranging `WebConnection.EndWrite()`
and `WebConnection.EndRead()` so that they _always_ call the
corresponding `MobileAuthenticatedStream` methods.  It addresses (b) by
removing the line in `Close()` that sets the `nstream` field to `null`.

How did mono/2017-06 commit 1b5e0f7 introduce this problem?
===========================================================

Commit 1b5e0f7 uses Tasks and the `TaskToApm()` helper method
_correctly_, so by itself it's OK.  The problem is that the older
`WebConnection` methods already had underlying limitations _before_
commit 1b5e0f7.  In the Asynchronous Programming Model, "for each call
to BeginOperationName, the application should also call EndOperationName
to get the results of the operation" [6].  But `WebConnection` did not
strictly follow this rule.  For example, `WebConnection.EndWrite()` did
_not_ always call `MobileAuthenticatedStream.EndWrite()`.  This
imprecise behavior worked until now because unlike unobserved exceptions
in Tasks, "unobserved" exceptions in AsyncResult objects don't trigger
any behaviors when the objects are finalized.  (The exceptions are just
discarded.)  But now that `MobileAuthenticatedStream.BeginWrite()` uses
Tasks behind the scenes, `WebConnection` needs to be stricter about
following the rules.

Testing the proposed fix against old bugs from `git blame`
==========================================================

- Commit 613c2a9182

  https://bugzilla.xamarin.com/show_bug.cgi?id=31507

  Results: Verified still fixed.  I was able to reproduce the original
  behavior by intentionally removing the old fix.  I then put the old
  fix back, added the new proposed changes, and verified that the test
  case still produced the good behavior (only task cancellation
  messages).

- Commit 7584df6cf8

  Neither of the bugs mentioned in the commit message for 7584df6cf8
  appears to be related to the `Data.request` check.  Since that check
  is the only part of the commit touched by the new proposed changes,
  neither of the bugs should be affected.  But just to be thorough, I
  quickly ran through the test cases associated with those bugs.

  https://bugzilla.novell.com/show_bug.cgi?id=515931

  Results: OK.  I tried the test case from
  https://bugzilla.novell.com/show_bug.cgi?id=515097 with
  `AllowWriteStreamBuffering` set to `true` or `false`.  The write
  operation started successfully in both cases, and the call to
  `Abort()` was able to cancel the operation as expected.

  https://bugzilla.novell.com/show_bug.cgi?id=510642

  Results: OK.  The test case still produced the expected overflow
  exception.

References
==========

[1] https://github.com/mono/mono/blob/b293f453027bc075ce636988b383451e5c346347/mcs/class/System/System.Net/WebConnectionStream.cs#L664-L666
[2] https://github.com/mono/mono/blob/b293f453027bc075ce636988b383451e5c346347/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs#L347
[3] https://github.com/mono/mono/blob/b293f453027bc075ce636988b383451e5c346347/mcs/class/System/System.Net/WebConnection.cs#L1131-L1143
[4] https://github.com/mono/mono/blob/b293f453027bc075ce636988b383451e5c346347/mcs/class/System/System.Net/WebConnection.cs#L1033-L1034
[5] https://github.com/mono/mono/blob/b293f453027bc075ce636988b383451e5c346347/mcs/class/System/System.Net/WebConnection.cs#L1169
[6] https://docs.microsoft.com/dotnet/standard/asynchronous-programming-patterns/asynchronous-programming-model-apm
2018-01-02 11:00:48 +01:00
Radek Doulik 1359c52fc6 [monodroid] Build linker-analyzer tool for monodroid
We would like to include linker analyzer in the Xamarin.Android
installation (https://github.com/xamarin/xamarin-android/issues/1093)
2017-12-20 15:31:21 +01:00
Ludovic Henry ce89e4c5fa [threads] Fix leak of gchandle to MonoInternalThread (#6258)
Fixes https://github.com/mono/mono/issues/6169
2017-12-17 13:51:11 +01:00
Marek Habersack 9bd33ec5b6 [android] Android NDK does not contain API level/platform 12
Lack of it causes a build error in XA:

   CMake Error at [..]mono/external/boringssl/util/android-cmake/android.toolchain.cmake:800 (message):
         Specified Android native API level 'android-12' is not supported by your

The set of minimum API levels in `configure.ac` is incorrect. The current
NDK (r16) requires minimum API level of 14 for the 32-bit targets and level 21
for the 64-bit targets.
2017-12-16 10:32:26 +01:00
Marek Safar 63e8dc6ea1 Bump cecil 2017-12-14 20:21:26 +01:00
Bernhard Urban e65bf00e22 Merge pull request #6122 from lewurm/2017-10-interp-aot-mode-fixes
[2017-10][interp] fixes for interp AOT mode
2017-12-05 09:28:31 -05:00
Vlad Brezae 8f0589ae81 [mini] Add missing try holes
When we leave a try block and invoke finally blocks, we need to add try holes also for catch handlers, since they can invoke the previously handled finally blocks.
2017-12-05 07:14:55 -05:00
Vlad Brezae ab20369d5f [mini] Align stack when resuming to catch handler 2017-12-05 07:14:55 -05:00
Vlad Brezae 3a134a2d8c [mini] Add missing try holes
When doing an OP_CALL_HANDLER for a clause (from a leave opcode), all following instructions, up until the actual branch out of the try block, should be part of a hole for that clause. We were failing to account for a single leave instruction invoking multiple finally clauses sequentially, in which case a basic block can be a try hole for multiple clauses.
2017-12-05 07:14:55 -05:00
Vlad Brezae 2e775c7e39 [mini] Fix clause try hole checking
This was inexplicably added as part of 2657d9cb1e, likely by mistake.
2017-12-05 07:14:55 -05:00
Aleksey Kliger (λgeek) a9a4166431 [loader] Don't assert on abstract methods in get_method_constrained
If the constrained class is abstract, it might not implement the given method.
2017-11-29 08:52:19 +01:00
Bernhard Urban feba66a6ce [interp] small improvment for error reporting in interp compile method callback 2017-11-28 18:21:08 +01:00
Bernhard Urban 6fc6ca1e18 [aot] encode interp_in wrappers with proper signature 2017-11-28 18:21:07 +01:00
Bernhard Urban 7332690826 [interp] fix copy/paste-typo in n2m macro magic 2017-11-28 18:21:07 +01:00
Bernhard Urban b64faae88c [aot] add more signatures for interp_in wrapper needed for iOS
signatures are coming from there:
https://github.com/xamarin/xamarin-macios/blob/2d4256ef15f1ebf0b7f5774dee03a97a8c32f3a6/runtime/delegates.t4#L9
2017-11-28 18:21:03 +01:00
Alexander Köplinger b3b0613ad3 Bump msbuild to bring in fix for #60770 (#6107)
This mainly applies to Linux packaging.
2017-11-28 16:47:37 +01:00
Bernhard Urban ddeba6e1ba [interp] fix using conv.u with string 2017-11-28 14:16:14 +01:00
monojenkins 0360f420fe Bump API snapshot submodule 2017-11-28 11:19:04 +01:00
Rolf Bjarne Kvinge 2f18e7dd23 Bump cecil & linker to match master. 2017-11-28 11:19:04 +01:00
Bernhard Urban 0f53cb275c [interp] allow unsigned i8 in pinvoke signature 2017-11-28 11:15:30 +01:00
Rolf Bjarne Kvinge c5cd0f1e7f [System][Test] Only Xamarin.iOS has a synchronization context by default.
This shows up when Xamarin.Mac tests start defining XAMMAC [1]

[1]: https://github.com/xamarin/xamarin-macios/pull/3034
2017-11-27 14:22:33 +01:00
Alexander Köplinger 44bf3d084e [ci] Add Jenkins pipeline script for building OSX and Windows packages
Backport of d3c7faa750 and 4535442e84 to 2017-10.
2017-11-24 16:56:25 +01:00
Marek Safar ceab9d932c [corlib] Disable test check which is timezone dependent 2017-11-23 22:47:33 +01:00
Rolf Bjarne Kvinge 104eeba2ea [tests] Adjust ifdefs to get the expected behavior for Xamarin.Mac/Modern tests. (#6088) 2017-11-23 21:05:39 +01:00
Rolf Bjarne Kvinge f0f0ae1564 [tests] Adjust ifdefs to get the expected behavior for Xamarin.Mac's cryptography tests. (#6090) 2017-11-23 21:04:47 +01:00
Rolf Bjarne Kvinge 2b469fb836 [bitcode] Disable test_0_float_return_spill in bitcode to get green tests.
See https://bugzilla.xamarin.com/show_bug.cgi?id=59953
2017-11-22 23:55:47 +01:00
Zoltan Varga 2a3c5024f2 [aot] Add generic instances referenced by MONO_PATCH_INFO_METHOD_RGCTX patches. Fixes #60771. (#6075)
Some generic instances were not generated because they were only referenced by METHOD_RGCTX patches, and the gsharedvt
fallback didn't work because the method in question Unsafe.Add<T> uses a sizeof opcode on a gsharedvt type which is currently
not supported.

Testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
using System.Runtime.CompilerServices;

public class Tests
{
        [MethodImplAttribute (MethodImplOptions.NoInlining)]
        public void Foo55<T> () {
            byte[] arr = new byte [10];
            ref byte data0 = ref arr [0];
            Unsafe.Add (ref data0, 0);
        }

        interface IFace {
            void Foo55 <T> ();
        }

        class AClass : IFace {
            public void Foo55 <T> () {
            byte[] arr = new byte [10];
            ref byte data0 = ref arr [0];
            Unsafe.Add (ref data0, 0);
            }
        }

    public static int Main () {
            IFace iface = new AClass ();
            iface.Foo55<int> ();
            return 0;
        }
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2017-11-22 23:07:35 +01:00
Aleksey Kliger (λgeek) ef5b3b4663 Merge pull request #6047 from lambdageek/bug-60545-2017-10
[loader] Rework get_method_constrained (Fixes #60545)
2017-11-22 16:42:14 -05:00
Ludovic Henry b070dc3279 [System] Fix DeflateStream crash with high concurrency on Read/Write/Close (#5994)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=56727
2017-11-22 17:49:27 +01:00
Alexander Köplinger b06c50f391 [ci] Fix msbuild paths in Windows packaging
They changed with ef1ea85c0f and fbbde0f0e5.
2017-11-22 02:56:48 +01:00
Martin Baulig a228b7348f [System.Net.Http]: Fix "Content-Length: 0" logic for requests without body.
Implicitly add "Content-Length: 0" for all requests with a null body unless
we're using a body-less HTTP Verb (HEAD, GET, MKCOL, CONNECT, TRACE).

(cherry picked from commit 6beed5f791)
2017-11-21 22:26:36 +01:00
Aleksey Kliger 856d9754fb [loader] inflate constrained result if constraining an inflated generic method
Fixes an interpreter failure in gtest-253.cs due to previous commit
2017-11-21 12:55:16 -05:00
Chris Hamons efce3b256a Fix CryptoConfig.CreateFromName on XM Modern (#6029) 2017-11-20 22:43:03 +01:00
Aleksey Kliger ce9bf964bf [loader] Rework get_method_constrained (Fixes #60545)
Instead of using find_method which relies on method name and exact signature
matching (and thus can't work for variant interfaces), use the vtable and the
interface offset to find the constrained method.

Terminology:
  base method - a method of the base class to be called
  base class - some general class or interface that declares a method
  constraint class - a more specific class that also implements the method.
  constrained method - the version of the base method in the constraint class.

To find the constrained method given the base method:

- if the base class is a class:
  the constraint class can't be an interface. it's either the base class or
  some subclass of it.  If the base method isn't virtual there's nothing to do
  the constrained method is the same one.
  If the base method is virtual, get its vtable slot and find the corresponding
  method in the constraint class's vtable.
- if the base class is an interface:
  in this case the constraint class is either another interface or a class.
  if the constraint class is an interface, since interfaces can't have
  implementations, there's nothing to do.
  if the constraint class is a class, then to find the constrained method
  get the interface slot offset of the base method and find the base interface offset
  of the base interface and look in the constrained class vtable.
  (the base interface offset gives the starting vtable slot for the base
  interface in the constraint class vtable; the slot offsets go consecutively
  for each of the methods of the interface).

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=60545
2017-11-20 14:25:00 -05:00
Alexis Christoforides 2cc0f9029a Merge pull request #6046 from chamons/bump_cecil_10
Bump cecil
2017-11-17 17:30:28 -05:00
Chris Hamons 2e5b14333c Bump cecil 2017-11-17 13:54:05 -06:00
Aleksey Kliger bb8ffa5d1c [tests] Mono test for contravariant constrained.callvirt
Test that constrained.callvirt IL instruction sequence works for contravariant
interfaces.

Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=60545
2017-11-16 19:16:47 -05:00
Alexis Christoforides e64491027f Merge pull request #6031 from kumpera/bp_6003
Backport of profiler arg parsing fixes.
2017-11-16 17:09:37 -05:00
Bernhard Urban 4d69127d9e [metadata] make get_darwin_locale thread-safe
fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59916
2017-11-16 22:06:52 +01:00
Rodrigo Kumpera 97bdff44d4 [profiler] Restore 'counters' and 'sampling-real' options 2017-11-16 11:35:21 -08:00
Rodrigo Kumpera 636b05f1d1 [profiler] Make profiler arg parsing more compatible with previous version.
This introduces the following changes.

By default, enable more events. Exceptions and Counters are on by default.
By default, if alloc or heapshot are enabled, we emit root events as well.

New `nodefaults` argument that disables the above changes to default arg processing.

Added "nocalls" argument for compat only purposes.

Restored "cycles/" prefix to sample frequency argument. It was already a dead argument, but kept for compat.
We restored that as existing clients pass that flag.
2017-11-16 11:35:16 -08:00
Aleksey Kliger 362293581d [sre] Don't warn about duplicate token for MonoArrayMethod
ModuleBuilder::GetArrayMethod returns a fresh MonoArrayMethod instance each
time it's called, even if you ask for the same method multiple times.  On the
other hand, mono_image_get_array_token caches tokens by method signature.
Therefore mono_image_create_token should expect collisions.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=60238
2017-11-16 09:16:10 +01:00
Aleksey Kliger 2cffc7014c [test] Regression test for 60238 2017-11-16 09:16:10 +01:00
Rodrigo Kumpera bec9f13d05 [jit] Fix using conv.u with string. 2017-11-16 09:05:14 +01:00
Ludovic Henry 916b2cd1d9 Merge pull request #6012 from luhenry/backport-2017-10-52d836f5e2553a08de94a7b917717d0c235d1ee3
Fix icall parameters to use managed boolean type. (#6006)
2017-11-14 21:55:59 -05:00
Jonathan Chambers f60a0a2e67 Fix icall parameters to use managed boolean type. (#6006) 2017-11-14 16:48:21 -05:00
Bernhard Urban 1d891bf6d1 [aot] Don't error out if a method fails to JIT in full-aot mode. This was a regression caused by 9302c31f81. Fixes #59832. (#5686) (#6005) 2017-11-14 14:10:21 +01:00
Radek Doulik a3fb0a1208 [corlib] Updated LinkerDescriptor
Preserve
`System.Runtime.Remoting.Activation.ActivationServices.CreateProxyForType`. It
is called from `object.c:mono_object_new_specific_checked` when
constructing remoting or com objects.

I didn't add `feature="remoting"` because it is used also for com
objects.

Added linker test. Without the LinkerDescriptor addition, it fails
like this:

    Unhandled Exception:
    System.NotSupportedException: Linked away.
      at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_object_new_specific(intptr)
      at C.Main () [0x00001] in /Users/rodo/git/mono/mcs/tools/linker/Tests/mscorlib/test-remoting.cs:11
    [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: Linked away.
      at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_object_new_specific(intptr)
      at C.Main () [0x00001] in /Users/rodo/git/mono/mcs/tools/linker/Tests/mscorlib/test-remoting.cs:11

(cherry picked from commit 4b702c8d6a)
2017-11-14 14:04:43 +01:00
Zoltan Varga eade041bfd [runtime] Initialize the min_align field of ptr classes, since they have the 'inited' field set, so mono_class_init_sizes () might not be called for them. Fixes #60634. (#5999) (#6002) 2017-11-14 03:22:09 -05:00
Alexander Köplinger 1ce0cc6e4e [corlib] Add more tests, embed linker descriptor xml in test assembly
This enables us to remove https://github.com/xamarin/xamarin-android/blob/e0c0c2bae53f15f8949bef5eda64d1018455ab59/tests/Xamarin.Android.Bcl-Tests/Resources/LinkerDescription.xml.

(cherry picked from commit f23ce4f37e)
2017-11-13 14:35:27 +01:00
Zoltan Varga 814e9dd0db [jit] Avoid nullifying LDADDR instructions in load_simd_vreg_class (), they could have references if explicit-null-checks are enabled. Fixes #60539. (#5979) 2017-11-12 15:42:45 +01:00
Alexander Köplinger d1679702e4 [bcl] Optimize Process.GetCurrentProcess ().MainModule. (#5843) (#5987)
(cherry picked from commit 03ea90cf1f)
2017-11-10 22:48:05 +01:00
Ankit Jain 3f3b106aca [msbuild] Change the version used in bockbuild to just '15', instead .. (#5986)
.. of 15.x. It doesn't really affect anything and makes it simpler on
wrench to specify directory from which to run the tests!
2017-11-10 17:48:30 +01:00
Ankit Jain ef1ea85c0f [msbuild] Fix build (#5981)
- Don't copy 14.0/Imports to 15.0 now, as we do that in nuget-buildtasks.
- And don't create symlinks for Microsoft.NuGet.targets as it is not
  required anymore.
2017-11-10 05:16:15 +01:00
Ankit Jain d711efdd90 [msbuild] Fix build - create the directories before installing .. (#5980)
.. to them.
2017-11-10 02:40:42 +01:00
Ankit Jain fbbde0f0e5 [msbuild] Bump msbuild to mono-2017-10 branch which tracks vs15.5 (#5977) 2017-11-09 19:17:15 -05:00
Ankit Jain 363b5a4ed0 Merge pull request #5976 from radical/update-nuget-build-tasks
Update NuGet.BuildTasks for msbuild 15.5 update
2017-11-09 19:16:39 -05:00
Ankit Jain 4c935964b2 [msbuild] Install importbefore/after hooks for nuget 2017-11-09 12:58:33 -05:00
Ankit Jain 304d785bd0 Bump nuget-buildtasks 2017-11-09 12:55:37 -05:00
Aleksey Kliger (λgeek) bba2a47492 Merge pull request #5971 from lambdageek/bug-60245-2017-10
[remoting] Check for transparent proxy in ves_icall_MonoField_{Get,Set}ValueInternal
2017-11-09 10:34:48 -05:00
Ludovic Henry 191756c80e [System] Add missing ConfigureAwait (#5963) (#5968)
This is a candidate fix for:
https://bugzilla.xamarin.com/show_bug.cgi?id=60317

The bug was introduced by 1b5e0f7331.

Preliminary verification
========================

If I make just this _one_ change to a "bad" commit of Mono from after
commit 1b5e0f7, rebuild System.dll in the `xammac` profile, and then
overwrite that file in the MonoBundle directory of a Xamarin.Mac test
app, then I restore the old "good" behavior.  (I started with
38da0b3b49 as the "bad" version for my
tests.)

I believe this confirms that the cause of bug 60317 was the usual
deadlocking issue when awaiting Tasks on the UI thread.  As discussed on
https://blog.stephencleary.com/2012/07/dont-block-on-async-code.html, if
any Tasks awaited anywhere up the call stack are missing
`ConfigureAwait (false)`, then you can run into trouble on the UI
thread.

Additional little checks
========================

1. Do the other `await` statements in commit
1b5e0f7331 all look OK?  Yes, it looks
like this was the only `await` statement that was missing
`ConfigureAwait (false)`:

```
$ git show 1b5e0f7331 | grep await
+				await ProcessOperation (cancellationToken).ConfigureAwait (false);
+				var ret = await InnerRead (cancellationToken).ConfigureAwait (false);
+					await Parent.InnerWrite (RunSynchronously, cancellationToken);
+				var ret = await Parent.InnerRead (RunSynchronously, requestedSize, cancellationToken).ConfigureAwait (false);
+					result = await asyncRequest.StartOperation (CancellationToken.None).ConfigureAwait (false);
+				result = await asyncRequest.StartOperation (cancellationToken).ConfigureAwait (false);
+			var ret = await task.ConfigureAwait (false);
+			await task.ConfigureAwait (false);
```

2. Is it a concern that mcs/class/System did not contain any calls to
`ConfigureAwait ()` until commit 1b5e0f7:

```
$ git grep ConfigureAwait 1b5e0f73316ee7b83c8947bc738015443fabd7af^ -- mcs/class/System || echo 'None'
None
```

I do not think this is a concern.  For example,
System.Net.Http.HttpClient has been using `ConfigureAwait (false)` for
several years, so there is a precedent for it.
2017-11-08 15:45:18 -05:00
Aleksey Kliger 3f311d3fa7 [test] FieldInfo.{Get,Set}Value tests for ContextBoundObject
Test that passing a transparent proxy to GetValue and SetValue works as expected

Regression tests for https://bugzilla.xamarin.com/show_bug.cgi?id=60245
2017-11-08 11:47:20 -05:00
Aleksey Kliger 698278fede [remoting] Check for transparent proxy in ves_icall_MonoField_{Get,Set}ValueInternal
Cover the case where System.Reflection.TypeInfo:GetValue or
System.Reflection.TypeInfo:SetValue are passed a transparent proxy as the
object.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=60245
2017-11-08 11:47:19 -05:00
Manuel de la Pena 0f1f991512 [Tests] Make Mono.Data.Sqlite tests more robust. (#5957)
* [Tests] Make Mono.Data.Sqlite tests more robuts.

There are cases in which the tests are ran in parallel and the files
used for the db are writte/read by several tests at the same time. This
changes ensures that we do have a diff test file per test case to ensure
that we do not have false negatives.
2017-11-08 16:58:10 +01:00
Manuel de la Pena ce494e3d15 [Tests] Small improvement to make sure that the tmp directories are unique. (#5956)
In the original tests there was a confusion between GetTempDir and GetTempFileName, GetTempDir always return the tmp dir.
2017-11-07 19:52:04 +01:00
Rolf Bjarne Kvinge 99db235197 [System] Ignore tests that fail on device until the corresponding bugs have been fixed. (#5952)
* [System] Ignore broken test until corresponding bug is fixed.

* [System] Ignore test that randomly hangs on device.
2017-11-07 02:45:26 +01:00
Alexander Köplinger dcbdec804d [ServiceModel.Web] Fix test by adding WebHttpBehavior to WebChannelFactory endpoint on MOBILE
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59909

WebChannelFactory doesn't add the WebHttpBehavior on mobile:
https://github.com/mono/mono/blob/4272b68b769951c221ec39d3e844f8f715e1df62/mcs/class/System.ServiceModel.Web/System.ServiceModel.Web/WebChannelFactory.cs#L87-L90

This makes the WebInvokeAttributeTest.RejectTwoParametersWhenNotWrapped
test fail on mobile since it doesn't reach the normal validation
method where it'd fail with InvalidOperationException, e.g. here''s
the stack on net_4_x profile:

```
System.InvalidOperationException : Operation 'Join' has multiple message body parts. Add parameters to the UriTemplate or change the BodyStyle to 'Wrapped' or 'WrappedRequest' on the WebInvoke/WebGet attribute.
  at System.ServiceModel.Description.WebHttpBehavior.ValidateOperation (System.ServiceModel.Description.OperationDescription operation) [0x000f9] in /Users/alexander/dev/mono/mcs/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs:249
  at System.ServiceModel.Description.WebHttpBehavior.Validate (System.ServiceModel.Description.ServiceEndpoint endpoint) [0x00028] in /Users/alexander/dev/mono/mcs/class/System.ServiceModel.Web/System.ServiceModel.Description/WebHttpBehavior.cs:268
  at System.ServiceModel.Description.ServiceEndpoint.Validate () [0x0007f] in /Users/alexander/dev/mono/mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceEndpoint.cs:129
  at System.ServiceModel.ChannelFactory`1[TChannel].CreateChannel (System.ServiceModel.EndpointAddress address, System.Uri via) [0x0002b] in /Users/alexander/dev/mono/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:148
  at System.ServiceModel.ChannelFactory`1[TChannel].CreateChannel (System.ServiceModel.EndpointAddress address) [0x00000] in /Users/alexander/dev/mono/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:115
  at System.ServiceModel.ChannelFactory`1[TChannel].CreateChannel () [0x00006] in /Users/alexander/dev/mono/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory_1.cs:110
```

We can fix this by adding the WebHttpBehavior in the test manually.

NB: I'm actually not sure why this isn't done by default on MOBILE?
According to MSDN it should.

(cherry picked from commit 733b4a4c9f)
2017-11-04 12:51:10 +01:00
Alexander Köplinger 56195c0cb3 [corlib] Add missing file to .sources
It was missed in the last cherry-pick.
2017-11-03 16:59:15 +01:00
Manuel de la Pena ec78654bdb [Tests] Fix flaky IO tests due to parrallel execution on Mac bots. (#5932)
Some of the IO tests do not create a diff temp file per test but per
fixture. This is problematic when the test cases are ran in parallel.
Moving the creation of the tmp dirs to the SetUp to ensure that each
test case has its own path.
2017-11-03 06:49:08 -07:00
Manuel de la Pena 451857ff95 [Tests] Fix zip tests on iOS devices.
The zip tests were not using temp files which created bug #60480 when
trying to read the embeded resources. This also fixes the situation in
which tests are run in parallel for the Mac since we could have tests
that step on each other files.
2017-11-02 12:40:29 -07:00
Manuel de la Pena 0d76dd4248 [Test] Fix System.IO.Compression.FileSystem tests on iOS devices.
Not using a temp file returns in an exception on iOS devices as per bug
60482.
2017-11-02 09:18:10 -07:00
Alexander Köplinger bc67eb4139 [corlib] Add file that was missing in 5a5ab38c 2017-11-02 14:12:26 +01:00
Alexander Köplinger 5a5ab38c9e [corlib] Add more Assembly*Attribute tests (#5918)
This should allow us to remove most of the linker exclusions in [1]
since they'd be used and thus not linked away in the tests.

Some of the attributes had existing tests but those were under !MOBILE
since they're using RefEmit. Added additional tests to those as well.

[1] https://github.com/xamarin/xamarin-android/blob/c43c5e671aa57a56f7ba5abc3423e9906af51a83/tests/Xamarin.Android.Bcl-Tests/Resources/LinkerDescription.xml

(cherry picked from commit 3df4b8f7f6)
2017-11-02 02:44:51 +01:00
Alexander Köplinger 3334f96038 [System.Security] Simplify monodroid test excludes (#5919)
https://github.com/mono/mono/pull/5916 added !MOBILE ifdefs to the
sources so we can remove the .sources file exclusions.

(cherry picked from commit 033ccb6635)
2017-11-02 02:44:50 +01:00
Manuel de la Pena 9f696f0eab [Tests] Ensure that only a subset of the System.Security tests are ran on mobile platforms. 2017-11-01 01:46:40 +01:00
Alexander Köplinger 9f86587ade [Mono.Posix] Fix some socket tests on monodroid (#5915)
d9922895d4 removed Mono.Unix.Native/SocketTest.cs
from the exclude list on the monodroid profile.

It turns out that some tests don't work there however,
they fail with an ArgumentOutOfRangeException on some socket options.

(cherry picked from commit 0dbdcf2e77)
2017-10-31 02:32:35 +01:00
Rolf Bjarne Kvinge 863ab3cb16 [corlib][Test] Ignore FileTest.SymLinkLoop until bug #59239 is fixed. (#5890)
https://bugzilla.xamarin.com/show_bug.cgi?id=59239
2017-10-28 01:11:42 +02:00
Rolf Bjarne Kvinge fffff22781 [llvm] Fix the returning of vtypes using a hidden argument in bitcode, in some cases, we forgot to generate the code to return the value, causing random data to be returned. Fixes #59956. (#5786) (#5887) 2017-10-28 01:11:18 +02:00
Rodrigo Kumpera b471ba0bde Merge pull request #5885 from vargaz/5840-for-2017-10
[2017-10] [arm] Add support for unlimited size/number of arguments to the dyn c…
2017-10-27 18:13:32 -04:00
Zoltan Varga fa75f86286 [arm] Add support for unlimited size/number of arguments to the dyn call code. Part of the fix for #59184. (#5840) 2017-10-27 08:54:39 -04:00
Manuel de la Pena 53e475652a [Tests] Ensure that tests are runnable on xamarin-macios (#5875) 2017-10-26 23:59:03 +02:00
Ankit Jain 7e1e1886da [msbuild] Add symlink to csc.exe in msbuild bin dir (#5850)
Roslyn looks only inside `$msbuild_bin/Roslyn/` and does not fallback to
the framework path. msbuild worked around this by setting `CscToolPath`:

https://github.com/mono/msbuild/commit/157a0f4d1a7aadd4e561e3ca8c784cbc2529926f

But this kicks in only if the default msbuild target files are imported!
If the `Csc` task is being used without importing them, then we fail
with

	`error MSB3082: Task failed because "csc.exe" was not found.`

`Microsoft.CodeAnalysis.VisualBasic.dll` is the only file not being
symlinked, after this change. So, instead we will symlink all the files.

Fixes bxc #60340 .

Cherry-pick 26ccf75f06
2017-10-24 14:45:00 -04:00
Alexander Köplinger 7e85cfa5d2 [System.Core] Remove duplicated test classes (#5829)
These tests classes are already included in the corlib test assembly.
Having them duplicated in System.Core causes issues in XA because
both test assemblies are in the same process.

To solve this we introduce abstract *TestBase classes that we can
share between the test assemblies and only mark the concrete test
class implementations with [TestFixture]

(cherry picked from commit 1e29ed0d7e)
2017-10-19 16:36:12 +02:00
Bernhard Urban 7275c34093 [System.Net] Tweak tests for watchOS 2017-10-18 20:13:24 +02:00
Aleksey Kliger (λgeek) 36ede942c4 [sre] Register a canonical reflected method for a methodspec token. (Fixes #60233) (#5815)
[sre] Register a canonical reflected method for a methodspec token. (Fixes #60233)
2017-10-18 08:13:58 -04:00
Bernhard Urban 96a7f0fc74 [eglib] check if result is set
quote from the darwin man page:

> The functions getpwnam_r(), getpwuid_r(), and getpwuuid_r()
> return 0 if no error occurred, or an error number to indicate
> failure.  It is not an error if a matching entry is not found.
> (Thus, if result is NULL and the return value is 0, no
> matching entry exists.)
2017-10-18 08:56:01 +02:00
Marek Habersack df84d55865 [monodroid] Enable a number of tests (#5799)
Just over a year ago Xamarin.Android switched to running BCL tests straight
from the Mono sources but at the time we decided we didn't want to enable
a number of "new" tests (in the sense - never previously ran on XA) to avoid
introducing new failures in time which required focusing on more important
goals.

Currently, Xamarin.Android no longer uses Mono **sources** to build its tests
but, rather, it uses test **assemblies** built by Mono. This commit restores
the previously excluded tests in preparation for full BCL test coverage in
the near future.

(cherry picked from commit d9922895d4)

--

[bcl] Fix test assembly build for monodroid profile

Those aren't yet tested in XA but they're built when running "make -C runtime test"
so XA had to suppress errors in that step.

To avoid this we make those test assemblies compile by removing the unit tests
that rely on classes not available in the monodroid profile.

(cherry picked from commit 464c5916d5)
2017-10-18 02:23:11 +02:00
Bernhard Urban 439e5743ad [linker] update referenced source files 2017-10-17 18:24:06 +02:00
Bernhard Urban 35426a484e Bump linker 2017-10-17 18:24:06 +02:00
Alexander Köplinger fd72712a83 [corlib] Fix SRE.SaveTest error during teardown on Windows (#5800)
When I added temp dir handling to SaveTest in https://github.com/mono/mono/pull/5727
I copied the Setup/TearDown from TypeBuilderTest.

However that class doesn't actually save+load the assemblies so
it doesn't run into the issue on Windows where assemblies can't
be deleted because they're still loaded in the AppDomain.

To fix this follow CustomAttributeBuilderTest and ModuleBuilderTest,
i.e. just catch all Exception's in teardown...

(cherry picked from commit 606f40e708)
2017-10-17 18:23:24 +02:00
Alexander Köplinger 581dc8b6de [Mono.Posix] Use TestHelper code from monodroid repo (#5793)
We need this because XA is now starting to use the test assemblies
we build in the Mono repo instead of using the .cs source directly
and this would conflict.

(cherry picked from commit c89a3e55b7)
2017-10-17 00:15:08 +02:00
Alexander Köplinger 4667578662 [msvc] Fix MONO_CORLIB_VERSION to match configure.ac (#5770)
When I simplified MONO_CORLIB_VERSION to only include major.minor
instead of major.minor.build in https://github.com/mono/mono/pull/5449
I forgot to apply the same change to the msvc copy of that logic.

(cherry picked from commit 43757d67ef)
2017-10-12 02:34:21 +02:00
Aleksey Kliger (λgeek) 5eed3a54c5 Merge pull request #5765 from lambdageek/bug-59664-2017-10
[reflection] Throw TLE for Type.GetType("", ...) (Fixes #59664)
2017-10-11 17:17:47 -04:00
Aleksey Kliger 2ed1ec984f [test] Add Type.GetType("", ...) tests 2017-10-11 10:52:13 -04:00
Aleksey Kliger 7202dd41f0 [reflection] Throw TLE for Type.GetType("", true) (Fixes #59664)
In the C parser check for empty at the outset.
In the managed parser, copy an empty string component to the built-up TypeSpec
and handle it in the Type.GetType (..., asmResolver, typeResolver) implementation
2017-10-11 10:52:13 -04:00
Aleksey Kliger 430bee0eb4 [reflection] Use MonoError for mono_reflection_parse_type_checked
Mark mono_reflection_parse_type as external only.  Runtime should use the
_checked version.
2017-10-11 10:52:12 -04:00
Alexander Köplinger d973c18112 [bcl] Fix csi to work on Mono (#5737) (#5757)
It'd fail to find System.Runtime.dll and System.ValueTuple.dll.
Changed the csi.rsp to include those from the Facades/ dir and added a test.

Workaround for https://bugzilla.xamarin.com/show_bug.cgi?id=58965

(cherry picked from commit 75415afa76)
2017-10-10 16:26:54 +02:00
Alexander Köplinger 2e33a4b183 [utils] Add check for ANDROID_UNIFIED_HEADERS to mono-compiler.h (#5742)
https://github.com/mono/mono/pull/5680 added mmap/sendfile prototypes
but we should only use those when ANDROID_UNIFIED_HEADERS is defined
to avoid getting errors like:

```
/Users/alexander/dev/xamarin-android/external/mono/mono/utils/mono-compiler.h:157:7: error: conflicting types for 'mmap'
void* mmap (void*, size_t, int, int, int, __mono_off32_t);
        ^
/Users/alexander/android-toolchain/toolchains/arm-linux-androideabi-clang/bin/../sysroot/usr/include/sys/mman.h:47:15: note: previous declaration is here
extern void*  mmap(void *, size_t, int, int, int, off_t);
                ^

/Users/alexander/dev/xamarin-android/external/mono/mono/utils/mono-compiler.h:166:9: error: conflicting types for 'sendfile'
ssize_t sendfile (int out_fd, int in_fd, __mono_off32_t* offset, size_t count);
        ^
/Users/alexander/android-toolchain/toolchains/arm-linux-androideabi-clang/bin/../sysroot/usr/include/sys/sendfile.h:36:16: note: previous declaration is here
extern ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
```

(cherry picked from commit 4058c2be43)
2017-10-10 01:08:43 +02:00
Alexander Köplinger 49a085551e [corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)
It was writing to the current working directory before which
doesn't work on platforms where that directory is read-only.

Using the same setup/teardown methods as TypeBuilderTest we
instead create a directory in the temporary location and put
the files there.

(cherry picked from commit c9fc371e31)
2017-10-09 20:08:57 +02:00
Marek Safar 6d810db4f0 [corlib] Makes GetReferencedAssemblies test more reliable 2017-10-06 19:04:55 +02:00
Rolf Bjarne Kvinge 6921674e5d [appletls] Trust SecTrustResult.Proceed as well. Fixes #58411.
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-10-06 08:51:07 +02:00
Alexander Köplinger 2d88a94f98 Add new profile for monodroid tools (#5699) (#5708)
* Add new profile for monodroid tools

This allows the XA build to use these instead of needing to build net_4_x.
We build the assemblies against the .NET 4.6 reference assemblies.

* Skip monodroid_tools in verify (aka mcs-compileall)

Exclude it from the test_profiles since running tests makes no sense there.

Also refactor to exclude binary_reference_assemblies as well,
it was already excluded manually in mcs-compileall before.

(cherry picked from commit b2a11ac756)
2017-10-05 18:39:18 +02:00
Marek Habersack a3943e28cf [monodroid] Fix Mono.Posix tests build (#5697) (#5700)
TestHelper was previously excluded because the XA tests weren't built
as part of Mono but rather as part of XA test suite which included
its own version of the helper. Now, however (https://github.com/xamarin/xamarin-android/commit/e9daf5ea35709ce1bc6ba81c7c37d72d385bace2),
XA uses BCL+friends test assemblies built by Mono itself and so
we need to restore TestHelper in the build.
2017-10-05 03:11:57 +02:00
Cody Russell 4a46fcfe2f Add glib to the list of packages with debugging symbols.
(cherry picked from commit f99b88b812)
2017-10-04 17:57:33 +02:00
Ludovic Henry 8a2a062862 Bump version to 5.8.0 (#5691) 2017-10-03 16:31:46 -04:00
Marek Habersack ab951a554d Prepare Mono for Android NDK with unified headers (#5680)
Up until NDK release 14 Android SDK included a separate set of C header
files for each supported platform. NDK 14 introduced a new set of those
headers (they are NOT the same as the old ones) which unifies support
for all of the platforms so that bug fixes are available for all the
API levels without having to backport etc. With NDK 15 the unified headers
become the default ones (including when creating standalone toolchains)
and with NDK 16 (in beta currently) the old per-platform headers are removed.

Unfortunately, the new headers introduce breaking changes which made it
impossible to build Mono with NDK configured to use them. This commit makes
a handful of changes to Mono which make it build with unified headers.
2017-10-03 20:29:10 +02:00
Marek Safar 91c5e1f934 [System.Net.Http] Updates range check from 3741d16503 2017-10-03 18:35:52 +02:00
Zoltan Varga 7a3c71413e [jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to FALSE before it was saved, causing invalid code to be generated in some cases when doing nested inlining. Fixes #59608. (#5654)
(cherry picked from commit 30cddad5fb)
2017-10-03 12:25:39 +02:00
540 changed files with 5469 additions and 981 deletions

No files matched your search

+75 -8
View File
@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
#AC_PREREQ([2.62])
AC_INIT(mono, [5.7.0],
AC_INIT(mono, [5.8.1],
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
AC_CONFIG_SRCDIR([README.md])
@@ -40,7 +40,7 @@ MONO_VERSION_BUILD=`echo $VERSION | cut -d . -f 3`
# This can be reset to 0 when Mono's version number is bumped
# since it's part of the corlib version (the prefix '1' in the full
# version number is to ensure the number isn't treated as octal in C)
MONO_CORLIB_COUNTER=1
MONO_CORLIB_COUNTER=0
MONO_CORLIB_VERSION=`printf "1%02d%02d%02d%03d" $MONO_VERSION_MAJOR $MONO_VERSION_MINOR 0 $MONO_CORLIB_COUNTER`
AC_DEFINE_UNQUOTED(MONO_CORLIB_VERSION,$MONO_CORLIB_VERSION,[Version of the corlib-runtime interface])
@@ -554,6 +554,73 @@ AC_CHECK_FUNCS(_finite, , AC_MSG_CHECKING(for _finite in math.h)
# for Linux statfs support
AC_CHECK_HEADERS(linux/magic.h)
# For Android NDK unified headers
if test x$platform_android = xyes; then
AC_CHECK_HEADERS(machine/endian.h sys/endian.h)
AC_CHECK_HEADERS(android/legacy_signal_inlines.h, [have_android_signal_inlines=yes], [have_android_signal_inlines=no])
# Make sure SIGRT{MIN,MAX} work - they will fail to work with unified headers if building for
# API level < 21 *and* android/legacy_signal_inlines.h doesn't declare (and define) the required
# libc APIs to obtain values for SIGRT{MIN,MAX}. We perform the check only if android/legacy_signal_inlines.h
# is found because in other cases the macros will either work (for NDK < 14) or fail if the legacy header
# doesn't contain the required definitions (NDK 14)
if test x$have_android_signal_inlines = xyes; then
AC_MSG_CHECKING([Whether Android SIGRTMIN/SGRTMAX macros are valid])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([#include <android/legacy_signal_inlines.h>],[
int i;
for (i = SIGRTMIN + 1; i < SIGRTMAX; ++i) {
}
])],[
AC_MSG_RESULT(yes)
android_sigrtminmax_work=yes
],[
AC_MSG_RESULT(no)
android_sigrtminmax_work=no
]
)
if test x$android_sigrtminmax_work = xno; then
AC_MSG_ERROR([Android SIGRTMIN/SIGRTMAX macros don't work in this NDK])
fi
fi
# Attempt to detect whether we're using Android NDK unified headers
AC_CHECK_HEADERS(android/api-level.h, [have_android_api_level=yes], [have_android_api_level=no])
AC_CHECK_HEADERS(android/versioning.h, [have_android_versioning=yes], [have_android_versioning=no])
android_unified_headers=no
if test x$have_android_api_level = xyes; then
if test x$have_android_versioning = xyes; then
AC_MSG_CHECKING([whether using Android NDK unified headers])
# Both macros are defined only in the NDK unified headers
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([
#include <android/api-level.h>
#include <android/versioning.h>
],[
#if __ANDROID_API_O__ == 26 && defined(__INTRODUCED_IN)
return 0
#else
#error __ANDROID_API_O__ != 26 or the __INTRODUCED_IN macro not defined
#endif
])],[
AC_MSG_RESULT(yes)
android_unified_headers=yes
],[
AC_MSG_RESULT(no)
android_unified_headers=no
]
)
fi
fi
if test x$android_unified_headers = xyes; then
AC_DEFINE(ANDROID_UNIFIED_HEADERS, 1, [Whether Android NDK unified headers are used])
fi
fi # Android
# not 64 bit clean in cross-compile
if test "x$enable_wasm" = "xyes"; then
AC_DEFINE(SIZEOF_VOID_P,4)
@@ -4278,22 +4345,22 @@ if test "x$enable_btls" = "xyes"; then
btls_arch=aarch64
;;
android-armv5)
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=12"
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=14"
;;
android-armv6)
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=12"
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi\" -DANDROID_NATIVE_API_LEVEL=14"
;;
android-armv7)
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi-v7a\" -DANDROID_NATIVE_API_LEVEL=12"
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"armeabi-v7a\" -DANDROID_NATIVE_API_LEVEL=14"
;;
android-v8a)
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"arm64-v8a\" -DANDROID_NATIVE_API_LEVEL=12"
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"arm64-v8a\" -DANDROID_NATIVE_API_LEVEL=21"
;;
android-x86)
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86\" -DANDROID_NATIVE_API_LEVEL=12"
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86\" -DANDROID_NATIVE_API_LEVEL=14"
;;
android-x64)
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86_64\" -DANDROID_NATIVE_API_LEVEL=12"
BTLS_CMAKE_ARGS="-DANDROID_ABI=\"x86_64\" -DANDROID_NATIVE_API_LEVEL=21"
;;
*)
AC_MSG_ERROR(Invalid BTLS platform)
+1 -1
+1 -1
+1 -1
+2
View File
@@ -7,6 +7,7 @@ SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs packages
basic_SUBDIRS := build jay class
build_SUBDIRS := build class class/aot-compiler tools ilasm
monodroid_SUBDIRS := build class
monodroid_tools_SUBDIRS := build class tools
monotouch_SUBDIRS := build class
monotouch_watch_SUBDIRS := build class
monotouch_tv_SUBDIRS := build class
@@ -66,6 +67,7 @@ $(_boot_:%=profile-do--xbuild_12--%): profile-do--xbuild_12--%:
$(_boot_:%=profile-do--binary_reference_assemblies--%): profile-do--binary_reference_assemblies--%: profile-do--build--%
$(_boot_:%=profile-do--net_4_x--%): profile-do--net_4_x--%: profile-do--build--%
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--build--%
$(_boot_:%=profile-do--monodroid_tools--%): profile-do--monodroid_tools--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch_watch--%): profile-do--monotouch_watch--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch_tv--%): profile-do--monotouch_tv--%: profile-do--build--%
+9 -1
View File
@@ -42,8 +42,16 @@ executable_CLEAN_FILES += $(build_lib) $(build_lib).so $(build_lib).mdb $(build_
makefrag = $(depsdir)/$(PROFILE)_$(base_prog).makefrag
ifdef TARGET_NET_REFERENCE
# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir
LIB_REFS_MONO = $(call _FILTER_OUT,System,$(LIB_REFS))
LIB_REFS_SYSTEM = $(filter-out $(LIB_REFS_MONO),$(LIB_REFS))
MCS_REFERENCES = $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM))
MCS_REFERENCES += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO))
else
MCS_REFERENCES = $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS))
MCS_REFERENCES += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.exe,$(EXE_REFS))
endif
ifdef KEYFILE
LIB_MCS_FLAGS += /keyfile:$(KEYFILE)
+15 -2
View File
@@ -18,13 +18,26 @@
# Have to rename to handle differences between assembly/directory names
DEP_LIBS=$(patsubst System.Xml,System.XML,$(LIB_REFS))
_FILTER_OUT = $(foreach x,$(2),$(if $(findstring $(1),$(x)),,$(x)))
LIB_REFS_FULL = $(call _FILTER_OUT,=, $(LIB_REFS))
LIB_REFS_ALIAS = $(filter-out $(LIB_REFS_FULL),$(LIB_REFS))
ifdef TARGET_NET_REFERENCE
# System.*.dll references come from the TARGET_NET_REFERENCE dir, others from the profile dir
LIB_REFS_MONO_FULL = $(call _FILTER_OUT,System,$(LIB_REFS_FULL))
LIB_REFS_MONO_ALIAS = $(call _FILTER_OUT,System,$(LIB_REFS_ALIAS))
LIB_REFS_SYSTEM_FULL = $(filter-out $(LIB_REFS_MONO_FULL),$(LIB_REFS_FULL))
LIB_REFS_SYSTEM_ALIAS = $(filter-out $(LIB_REFS_MONO_ALIAS),$(LIB_REFS_ALIAS))
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/%.dll,$(LIB_REFS_SYSTEM_FULL))
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/,$(LIB_REFS_SYSTEM_ALIAS)))
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_MONO_FULL))
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/class/lib/$(PROFILE_DIRECTORY)/,$(LIB_REFS_MONO_ALIAS)))
else
LIB_MCS_FLAGS += $(patsubst %,-r:$(topdir)/class/lib/$(PROFILE_DIRECTORY)/%.dll,$(LIB_REFS_FULL))
LIB_MCS_FLAGS += $(patsubst %,-r:%.dll, $(subst =,=$(topdir)/class/lib/$(PROFILE_DIRECTORY)/,$(LIB_REFS_ALIAS)))
endif
ifdef KEYFILE
KEYFILE_MCS_FLAGS += /keyfile:$(KEYFILE)
+18
View File
@@ -0,0 +1,18 @@
# -*- makefile -*-
BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_CSC)
MCS = $(BOOTSTRAP_MCS)
profile-check:
@:
TARGET_NET_REFERENCE = v4.6
DEFAULT_REFERENCES = -r:$(topdir)/../external/binary-reference-assemblies/$(TARGET_NET_REFERENCE)/mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_4_6 -d:MONO -d:WIN_PLATFORM -nowarn:1699 -nostdlib $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 4.5
NO_INSTALL = yes
+1
View File
@@ -9,6 +9,7 @@
empty :=
space := $(empty) $(empty)
_FILTER_OUT = $(foreach x,$(2),$(if $(findstring $(1),$(x)),,$(x)))
# given $(thisdir), we compute the path to the top directory
#
+2 -4
View File
@@ -72,8 +72,6 @@ ifndef HAVE_CS_TESTS
HAVE_CS_TESTS := $(wildcard $(test_sourcefile))
endif
HAVE_SOURCE_EXCLUDES := $(wildcard $(test_sourcefile_excludes))
HAVE_CS_XTESTS := $(wildcard $(xtest_sourcefile))
endif # !NO_TEST
@@ -173,7 +171,7 @@ test_response_preprocessed = $(test_response)_preprocessed
# This handles .excludes/.sources pairs, as well as resolving the
# includes that occur in .sources files
$(test_response_preprocessed): $(test_sourcefile)
$(test_response_preprocessed): $(test_sourcefile) $(wildcard $(test_sourcefile_excludes))
$(SHELL) $(topdir)/build/gensources.sh $@ '$(test_sourcefile)' '$(test_sourcefile_excludes)'
$(test_response): $(test_response_preprocessed)
@@ -227,7 +225,7 @@ xtest_response_preprocessed = $(xtest_response)_preprocessed
# This handles .excludes/.sources pairs, as well as resolving the
# includes that occur in .sources files
$(xtest_response): $(xtest_sourcefile)
$(xtest_response): $(xtest_sourcefile) $(wildcard $(xtest_sourcefile_excludes))
$(SHELL) $(topdir)/build/gensources.sh $@ '$(xtest_sourcefile)' '$(xtest_sourcefile_excludes)'
$(xtest_makefrag): $(xtest_response)
@@ -39,6 +39,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// Base class for both the compress and decompress classes.
/// Holds common arrays, and static data.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class BZip2Constants
{
public readonly static int[] rNums = {
@@ -44,6 +44,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// An input stream that decompresses from the BZip2 format (without the file
/// header chars) to be read as any other stream.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class BZip2InputStream : Stream
{
/// <summary>
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// header chars) into another stream.
/// TODO: Update to BZip2 1.0.1, 1.0.2
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class BZip2OutputStream : Stream
{
/// <summary>
@@ -86,6 +86,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// </summary>
/// <see cref="ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream"/>
/// <see cref="ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream"/>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class Adler32 : IChecksum
{
/// <summary>
@@ -64,6 +64,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// the information needed to generate CRC's on data a byte at a time for all
/// combinations of CRC register values and incoming bytes.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class Crc32 : IChecksum
{
readonly static uint CrcSeed = 0xFFFFFFFF;
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// <code>getValue</code>. The complete checksum object can also be reset
/// so it can be used again with new data.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public interface IChecksum
{
/// <summary>
@@ -41,6 +41,7 @@ using System;
namespace ICSharpCode.SharpZipLib.Checksums
{
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class StrangeCRC : IChecksum
{
readonly static uint[] crc32Table = {
@@ -41,6 +41,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// <summary>
/// This class contains constants used for gzip.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipConstants
{
/// <summary>
@@ -79,6 +79,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipInputStream : InflaterInputStream
{
/// <summary>
@@ -72,6 +72,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipOutputStream : DeflaterOutputStream
{
//Variables
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib.Tar {
/// This exception is used to indicate that there is a problem
/// with a TAR archive header.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InvalidHeaderException : System.IO.IOException
{
public InvalidHeaderException()
@@ -38,6 +38,7 @@ using System.Text;
namespace ICSharpCode.SharpZipLib.Tar {
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public delegate void ProgressMessageHandler(TarArchive archive, TarEntry entry, string message);
/// <summary>
@@ -61,6 +62,7 @@ namespace ICSharpCode.SharpZipLib.Tar {
/// TarBuffer.getCurrentRecordNum() and TarBuffer.getCurrentBlockNum()
/// methods, this would be rather trvial.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarArchive
{
bool verbose;
@@ -51,6 +51,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// TarBuffers are created by Tar IO Streams.
/// </p>
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarBuffer
{
@@ -67,6 +67,7 @@ namespace ICSharpCode.SharpZipLib.Tar
///
/// <see cref="TarHeader"/>
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarEntry
{
/// <summary>
@@ -74,6 +74,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// This class encapsulates the Tar Entry Header used in Tar Archives.
/// The class also holds a number of tar constants, used mostly in headers.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarHeader : ICloneable
{
/// <summary>
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// the archive, and the read each entry as a normal input stream
/// using read().
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarInputStream : Stream
{
protected bool debug;
@@ -598,6 +599,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// the programmer to have their own TarEntry subclass instantiated for the
/// entries return from getNextEntry().
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public interface IEntryFactory
{
TarEntry CreateEntry(string name);
@@ -607,6 +609,7 @@ namespace ICSharpCode.SharpZipLib.Tar
TarEntry CreateEntry(byte[] headerBuf);
}
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class EntryFactoryAdapter : IEntryFactory
{
public TarEntry CreateEntry(string name)
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// by writing to this stream using write().
/// </summary>
/// public
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarOutputStream : Stream
{
protected bool debug;
@@ -50,6 +50,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class Deflater
{
/// <summary>
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
/// <summary>
/// This class contains constants used for the deflater.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterConstants
{
public const bool DEBUGGING = false;
@@ -42,6 +42,7 @@ using ICSharpCode.SharpZipLib.Checksums;
namespace ICSharpCode.SharpZipLib.Zip.Compression
{
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public enum DeflateStrategy
{
// The default strategy.
@@ -57,6 +58,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
HuffmanOnly = 2
}
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterEngine : DeflaterConstants
{
static int TOO_FAR = 4096;
@@ -48,6 +48,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterHuffman
{
private static int BUFSIZE = 1 << (DeflaterConstants.DEFAULT_MEM_LEVEL + 6);
@@ -79,6 +80,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
15
};
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class Tree
{
public short[] freqs;
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterPending : PendingBuffer
{
public DeflaterPending() : base(DeflaterConstants.PENDING_BUF_SIZE)
@@ -64,6 +64,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : John Leuner, Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class Inflater
{
/// <summary>
@@ -42,6 +42,7 @@ using ICSharpCode.SharpZipLib.Zip.Compression.Streams;
namespace ICSharpCode.SharpZipLib.Zip.Compression
{
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InflaterHuffmanTree
{
private static int MAX_BITLEN = 15;
@@ -48,6 +48,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class PendingBuffer
{
protected byte[] buf;
@@ -49,6 +49,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
///
/// authors of the original java version : Tom Tromey, Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterOutputStream : Stream
{
/// <summary>
@@ -53,6 +53,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
///
/// author of the original java version : John Leuner
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InflaterInputStream : Stream
{
//Variables
@@ -47,6 +47,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
///
/// author of the original java version : John Leuner
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class OutputWindow
{
private static int WINDOW_SIZE = 1 << 15;
@@ -55,6 +55,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
///
/// authors of the original java version : John Leuner, Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class StreamManipulator
{
private byte[] window;
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// This class contains constants used for zip.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class ZipConstants
{
/* The local file header */
@@ -40,6 +40,7 @@ using System;
namespace ICSharpCode.SharpZipLib.Zip
{
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public enum CompressionMethod
{
Stored = 0,
@@ -54,6 +55,7 @@ namespace ICSharpCode.SharpZipLib.Zip
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipEntry : ICloneable
{
static int KNOWN_SIZE = 1;
@@ -82,6 +82,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// }
/// }
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipFile : IEnumerable
{
string name;
@@ -90,6 +90,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipInputStream : InflaterInputStream
{
Crc32 crc = new Crc32();
@@ -94,6 +94,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipOutputStream : DeflaterOutputStream
{
private ArrayList entries = new ArrayList();
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib
/// <summary>
/// Is thrown during the creation or input of a zip file.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipException : Exception
{
/// <summary>
@@ -43,13 +43,12 @@ namespace System.Runtime.InteropServices
public static bool IsOSPlatform (OSPlatform osPlatform)
{
switch (Environment.OSVersion.Platform) {
switch (Environment.Platform) {
case PlatformID.Win32NT:
return osPlatform == OSPlatform.Windows;
case PlatformID.MacOSX:
return osPlatform == OSPlatform.OSX;
case PlatformID.Unix:
if (File.Exists ("/usr/lib/libc.dylib"))
return osPlatform == OSPlatform.OSX;
return osPlatform == OSPlatform.Linux;
default:
return false;
@@ -44,6 +44,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// Sets up the streams and file header characters.
/// Uses multiply overloaded methods to call for the compress/decompress.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class BZip2
{
/// <summary>
@@ -38,6 +38,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// <summary>
/// Defines internal values for both compression and decompression
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class BZip2Constants
{
/// <summary>
@@ -41,6 +41,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// <summary>
/// BZip2Exception represents exceptions specific to Bzip2 algorithm
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class BZip2Exception : SharpZipBaseException
{
/// <summary>
@@ -44,6 +44,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// <summary>
/// An input stream that decompresses files in the BZip2 format
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class BZip2InputStream : Stream
{
/// <summary>
@@ -46,6 +46,7 @@ namespace ICSharpCode.SharpZipLib.BZip2
/// An output stream that compresses into the BZip2 format
/// including file header chars into another stream.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class BZip2OutputStream : Stream
{
/// <summary>
@@ -86,6 +86,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// </summary>
/// <see cref="ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream"/>
/// <see cref="ICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStream"/>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class Adler32 : IChecksum
{
/// <summary>
@@ -64,6 +64,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// the information needed to generate CRC's on data a byte at a time for all
/// combinations of CRC register values and incoming bytes.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class Crc32 : IChecksum
{
readonly static uint CrcSeed = 0xFFFFFFFF;
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// <code>getValue</code>. The complete checksum object can also be reset
/// so it can be used again with new data.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public interface IChecksum
{
/// <summary>
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib.Checksums
/// <summary>
/// Bzip2 checksum algorithm
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class StrangeCRC : IChecksum
{
readonly static uint[] crc32Table = {
@@ -42,6 +42,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// Event arguments for scanning.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ScanEventArgs : EventArgs
{
/// <summary>
@@ -79,6 +80,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// Event arguments for directories.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DirectoryEventArgs : ScanEventArgs
{
/// <summary>
@@ -106,6 +108,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// Arguments passed when scan failures are detected.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ScanFailureEventArgs
{
/// <summary>
@@ -155,26 +158,31 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// Delegate invokked when a directory is processed.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public delegate void ProcessDirectoryDelegate(object Sender, DirectoryEventArgs e);
/// <summary>
/// Delegate invoked when a file is processed.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public delegate void ProcessFileDelegate(object sender, ScanEventArgs e);
/// <summary>
/// Delegate invoked when a directory failure is detected.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public delegate void DirectoryFailureDelegate(object sender, ScanFailureEventArgs e);
/// <summary>
/// Delegate invoked when a file failure is detected.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public delegate void FileFailureDelegate(object sender, ScanFailureEventArgs e);
/// <summary>
/// FileSystemScanner provides facilities scanning of files and directories.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class FileSystemScanner
{
/// <summary>
@@ -38,6 +38,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// INameTransform defines how file system names are transformed for use with archives.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public interface INameTransform
{
/// <summary>
@@ -50,6 +50,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// and not matching an exclude spec are deemed to match the filter.
/// An empty filter matches any name.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class NameFilter
{
/// <summary>
@@ -42,6 +42,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// Scanning filters support these operations.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public interface IScanFilter
{
/// <summary>
@@ -55,6 +56,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// PathFilter filters directories and files by full path name.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class PathFilter : IScanFilter
{
/// <summary>
@@ -84,6 +86,7 @@ namespace ICSharpCode.SharpZipLib.Core
/// <summary>
/// NameAnsSizeFilter filters based on name and file size.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class NameAndSizeFilter : PathFilter
{
@@ -47,6 +47,7 @@ namespace ICSharpCode.SharpZipLib.Encryption
/// While it has been superceded by more recent and more powerful algorithms, its still in use and
/// is viable for preventing casual snooping
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public abstract class PkzipClassic : SymmetricAlgorithm
{
/// <summary>
@@ -368,6 +369,7 @@ namespace ICSharpCode.SharpZipLib.Encryption
/// Defines a wrapper object to access the Pkzip algorithm.
/// This class cannot be inherited.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class PkzipClassicManaged : PkzipClassic
{
/// <summary>
@@ -41,6 +41,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// <summary>
/// This class contains constants used for gzip.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipConstants
{
/// <summary>
@@ -41,6 +41,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// <summary>
/// GZipException represents a Gzip specific exception
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipException : SharpZipBaseException
{
/// <summary>
@@ -80,6 +80,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipInputStream : InflaterInputStream
{
/// <summary>
@@ -73,6 +73,7 @@ namespace ICSharpCode.SharpZipLib.GZip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class GZipOutputStream : DeflaterOutputStream
{
/// <summary>
@@ -44,6 +44,7 @@ namespace ICSharpCode.SharpZipLib
/// SharpZipBaseException is the base exception class for the SharpZipLibrary.
/// All library exceptions are derived from this.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class SharpZipBaseException : ApplicationException
{
/// <summary>
@@ -38,6 +38,7 @@ namespace ICSharpCode.SharpZipLib.Tar {
/// This exception is used to indicate that there is a problem
/// with a TAR archive header.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InvalidHeaderException : TarException
{
/// <summary>
@@ -41,6 +41,7 @@ namespace ICSharpCode.SharpZipLib.Tar {
/// <summary>
/// Used to advise clients of 'events' while processing archives
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public delegate void ProgressMessageHandler(TarArchive archive, TarEntry entry, string message);
/// <summary>
@@ -64,6 +65,7 @@ namespace ICSharpCode.SharpZipLib.Tar {
/// TarBuffer.getCurrentRecordNum() and TarBuffer.getCurrentBlockNum()
/// methods, this would be rather trvial.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarArchive
{
bool keepOldFiles;
@@ -51,6 +51,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// TarBuffers are created by Tar IO Streams.
/// </p>
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarBuffer
{
@@ -68,6 +68,7 @@ namespace ICSharpCode.SharpZipLib.Tar
///
/// <see cref="TarHeader"/>
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarEntry : ICloneable
{
/// <summary>
@@ -40,6 +40,7 @@ namespace ICSharpCode.SharpZipLib.Tar {
/// <summary>
/// TarExceptions are used for exceptions specific to tar classes and code.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarException : SharpZipBaseException
{
/// <summary>
@@ -77,6 +77,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// This class encapsulates the Tar Entry Header used in Tar Archives.
/// The class also holds a number of tar constants, used mostly in headers.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarHeader : ICloneable
{
/// <summary>
@@ -46,6 +46,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// the archive, and the read each entry as a normal input stream
/// using read().
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarInputStream : Stream
{
/// <summary>
@@ -551,6 +552,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// the programmer to have their own TarEntry subclass instantiated for the
/// entries return from getNextEntry().
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public interface IEntryFactory
{
/// <summary>
@@ -588,6 +590,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// <summary>
/// Standard entry factory class creating instances of the class TarEntry
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class EntryFactoryAdapter : IEntryFactory
{
/// <summary>
@@ -46,6 +46,7 @@ namespace ICSharpCode.SharpZipLib.Tar
/// by writing to this stream using write().
/// </summary>
/// public
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class TarOutputStream : Stream
{
/// <summary>
@@ -52,6 +52,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class Deflater
{
/// <summary>
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
/// <summary>
/// This class contains constants used for deflation.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterConstants
{
/// <summary>
@@ -47,6 +47,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
/// <summary>
/// Strategies for deflater
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public enum DeflateStrategy
{
/// <summary>
@@ -87,6 +88,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
/// Low level compression engine for deflate algorithm which uses a 32K sliding window
/// with secondary compression from Huffman/Shannon-Fano codes.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterEngine : DeflaterConstants
{
static int TOO_FAR = 4096;
@@ -50,6 +50,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterHuffman
{
static int BUFSIZE = 1 << (DeflaterConstants.DEFAULT_MEM_LEVEL + 6);
@@ -84,6 +85,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
/// <summary>
/// Not documented
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class Tree
{
/// <summary>
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterPending : PendingBuffer
{
/// <summary>
@@ -70,6 +70,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : John Leuner, Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class Inflater
{
/// <summary>
@@ -45,6 +45,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
/// <summary>
/// Huffman tree used for inflation
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InflaterHuffmanTree
{
static int MAX_BITLEN = 15;
@@ -50,6 +50,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression
///
/// author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class PendingBuffer
{
/// <summary>Internal work buffer
@@ -49,6 +49,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
/// written to it. It uses a Deflater to perform actual deflating.<br/>
/// Authors of the original java version : Tom Tromey, Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class DeflaterOutputStream : Stream
{
/// <summary>
@@ -53,6 +53,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
/// <remarks>
/// The buffer supports decryption of incoming data.
/// </remarks>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InflaterInputBuffer
{
/// <summary>
@@ -325,6 +326,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
///
/// Author of the original java version : John Leuner.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class InflaterInputStream : Stream
{
/// <summary>
@@ -47,6 +47,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
/// to repeat stuff.<br/>
/// Author of the original java version : John Leuner
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class OutputWindow
{
private static int WINDOW_SIZE = 1 << 15;
@@ -56,6 +56,7 @@ namespace ICSharpCode.SharpZipLib.Zip.Compression.Streams
///
/// authors of the original java version : John Leuner, Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class StreamManipulator
{
private byte[] window;
@@ -43,6 +43,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// FastZipEvents supports all events applicable to <see cref="FastZip">FastZip</see> operations.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class FastZipEvents
{
/// <summary>
@@ -122,6 +123,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// FastZip provides facilities for creating and extracting zip files.
/// Only relative paths are supported.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class FastZip
{
/// <summary>
@@ -46,6 +46,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// The kind of compression used for an entry in an archive
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public enum CompressionMethod
{
/// <summary>
@@ -120,6 +121,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// This class contains constants used for Zip format files
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public sealed class ZipConstants
{
/// <summary>
@@ -52,6 +52,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <br/>
/// <br/>Author of the original java version : Jochen Hoenicke
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipEntry : ICloneable
{
static int KNOWN_SIZE = 1;
@@ -44,6 +44,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// Represents errors specific to Zip file handling
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipException : SharpZipBaseException
{
/// <summary>
@@ -54,6 +54,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// Arguments used with KeysRequiredEvent
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class KeysRequiredEventArgs : EventArgs
{
string fileName;
@@ -136,6 +137,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipFile : IEnumerable
{
string name;
@@ -94,6 +94,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipInputStream : InflaterInputStream
{
// Delegate for reading bytes from a stream.
@@ -44,6 +44,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// <summary>
/// ZipNameTransform transforms name as per the Zip file convention.
/// </summary>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipNameTransform : INameTransform
{
/// <summary>
@@ -96,6 +96,7 @@ namespace ICSharpCode.SharpZipLib.Zip
/// }
/// </code>
/// </example>
[System.ObsoleteAttribute("This assembly has been deprecated. Please use https://www.nuget.org/packages/SharpZipLib/ instead.")]
public class ZipOutputStream : DeflaterOutputStream
{
private ArrayList entries = new ArrayList();
+7 -1
View File
@@ -106,6 +106,11 @@ monodroid_dirs := \
Mono.Posix \
$(pcl_facade_dirs)
monodroid_tools_dirs := \
Mono.Cecil \
ICSharpCode.SharpZipLib \
monodoc
monotouch_dirs := \
$(mobile_common_dirs) \
Mono.Simd \
@@ -341,6 +346,7 @@ orbis_dirs := \
$(pcl_facade_dirs)
monodroid_SUBDIRS := $(monodroid_dirs)
monodroid_tools_SUBDIRS := $(monodroid_tools_dirs)
monotouch_SUBDIRS := $(monotouch_dirs)
monotouch_watch_SUBDIRS := $(monotouch_watch_dirs)
monotouch_tv_SUBDIRS := $(monotouch_tv_dirs)
@@ -362,7 +368,7 @@ unreal_SUBDIRS := $(unreal_dirs)
include ../build/rules.make
SUBDIRS = $(testing_aot_full_dirs) $(testing_aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS) $(unreal_dirs)
SUBDIRS = $(testing_aot_full_dirs) $(testing_aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(monodroid_tools_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS) $(unreal_dirs)
DIST_ONLY_SUBDIRS = dlr aot-compiler reference-assemblies $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
@@ -26,6 +26,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if !FULL_AOT_RUNTIME
using System;
using NUnit.Framework;
using Mono.CSharp;
@@ -75,4 +76,5 @@ namespace MonoTests.EvaluatorTest
Assert.IsNull (res);
}
}
}
}
#endif
Loaded 100 of 540 files, more files were not shown because too many files have changed in this diff. Show more