Compare commits

..
118 Commits
Author SHA1 Message Date
Ankit Jain 96c0883549 [msbuild] Add symlink to csc.exe in msbuild bin dir
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-25 09:14:54 +02:00
Bernhard Urban 60b980b3bb [System.Net] Tweak tests for watchOS 2017-10-18 20:00:11 +02:00
Bernhard Urban 3c84401ec8 [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 10:24:16 +02:00
Bernhard Urban 44162b8a8b [linker] update referenced source files 2017-10-18 10:16:34 +02:00
Bernhard Urban 355944f0d6 Bump linker 2017-10-18 10:16:34 +02:00
Alexander Köplinger 9f4a644133 [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:35:04 +02:00
Zoltan Varga c83b0a3f98 [llvm] Map byref types to the same type as the this argument so they are called using the same signature if the this argument is passed explicitly. Fixes #59436. (#5572) (#5756) 2017-10-11 08:49:21 +02:00
Rolf Bjarne Kvinge b7422c2c22 [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:48:50 +02:00
Marek Habersack c9e78b5322 [monodroid] Fix Mono.Posix tests build (#5697) (#5701)
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:12:40 +02:00
Cody Russell 7898a926f0 Add glib to the list of packages with debugging symbols.
(cherry picked from commit f99b88b812)
2017-10-04 17:56:30 +02:00
Marek Habersack a3000fbb7f 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:38:17 +02:00
Zoltan Varga df4669b216 [jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it… (#5674)
* [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)

* Bump API snapshot submodule
2017-10-03 12:23:14 +02:00
Marek Safar 76db8b168c [ilasm] Adds AggressiveInlining support 2017-10-03 00:17:29 +02:00
Aleksey Kliger 0f76c2acec [sre] register a canonical MonoReflectionMethod for a methodref token
In mono_image_create_token we are passed in a managed reflection object and we
need to create a token for it and optionally register it so that we can resolve
that token back to a runtime structure and managed object later.

For a MonoReflectionMethod object that refers to a method from outside the
current dynamic image, we need to generate a memberref token.  It will be the
same token for the same underlying MonoMethod*.  When we go to register the
token with mono_dynamic_image_register_token we need to pass a managed object.
Unfortunately two MonoReflectionMethod objects could refer to the same
MonoMethod* but differ in their ReflectedType, so just registering the
passed-in MonoReflectionMethod means we could assert in
mono_dynamic_image_register_token because previously we may have registered the
same method via a different ReflectedType.

So what we do is we cal mono_method_get_object_handle with NULL for the
reflected type - which corresponds to just using the DeclaringType of the given
MonoMethod*.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59364
2017-09-29 08:57:15 +02:00
Aleksey Kliger 1a431e6183 [sre] Expect a new token for MonoArrayMethod and SignatureHelper 2017-09-29 08:57:15 +02:00
Aleksey Kliger 0e86b9e40b [sre] Remove MonoDynamicImage:handleref_managed field
It's now unused.
2017-09-29 08:57:15 +02:00
Aleksey Kliger ce75ab6aed [sre] Map fieldref tokens to MonoClassField*
Previously, we mapped fieldref tokens to MonoReflectionField managed objects,
But the object is just used as a key for caching the token so we may as well
use the native field instead of a managed object.
2017-09-29 08:57:15 +02:00
Aleksey Kliger 75367e0413 [sre] Wrap mono_image_create_token with HANDLE_FUNCTION_{ENTER,RETURN}
We will allocate a handle for the object that we will register.  For now it's
just an alias of the object passed in, but it could differ.
2017-09-29 08:57:15 +02:00
Aleksey Kliger 044b7d4ac8 [test] SRE ILGenerator test for methodref and fieldref token caching
Regression test for https://bugzilla.xamarin.com/show_bug.cgi?id=59364

We need to cause SRE to generate the same methodref/fieldref token from two
different reflection objects.  That happens if you get the same method or field
via a base and a derived class so that the MemberInfo:DeclaredType is different
but the underlying MonoMethod* or MonoClassField* is the same.
2017-09-29 08:57:15 +02:00
Ankit Jain 707e9c6b03 [msbuild] Bump msbuild to fix test failures on wrench (#5662) 2017-09-29 02:48:00 +02:00
Ludovic Henry ce9765ffe0 Merge pull request #5645 from luhenry/backport-2017-08-1d763c4dc62964059281766ffc0b73bfb5fb68a0
[w32process] Fix inverted kernel and user ticks (#5641)
2017-09-27 17:01:41 -04:00
Ludovic Henry 85d51db4f0 Merge pull request #5649 from luhenry/backport-2017-08-932a58ea407d6878d610cbe516d901293977aba1
[w32handle] Only own first handle if doing WaitHandle.WaitAny (#5625)
2017-09-27 15:14:44 -04:00
Manuel de la Pena af502ec4df Fix bug 4786 test. (#5653)
The fix in #5501 had a scoping error causing `make check` to fail.
2017-09-27 19:53:03 +02:00
Ludovic Henry b72ef417bc [Tests] Fail with message in case symlink fails 2017-09-27 16:05:17 +02:00
Ludovic Henry bc699443c1 [w32handle] Only own first handle if doing WaitHandle.WaitAny (#5625)
This is the behaviour on .NET, even if it goes against the documentation at https://msdn.microsoft.com/en-us/library/tdykks7z(v=vs.110).aspx#Anchor_2

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59281
2017-09-27 09:22:43 -04:00
Ludovic Henry addce38b83 [w32process] Fix inverted kernel and user ticks (#5641) 2017-09-27 09:10:28 -04:00
Katelyn Gadd b2250d8ecf Fix bug 57918:
Async Socket reads that need to perform multiple underlying read operations fail to return a correct total # of bytes read
2017-09-26 09:16:07 +02:00
Aleksey Kliger cfe2428963 [class] Use constraints of gparam T2 in T1.IsAssignableFrom (T2)
Suppose we want to know C.IsAssignableFrom (T1):
```
  class C { }
  class G<T1, T2> where T1 : T2, T2 : C { }
```

Previously, we would get `False`, because we only checked the constraints of T1
if C was an interface or another gparam.  Now Instead we always consider the
constraints in `A.IsAssignableFrom (B)` whenever `B` is a gparam.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=58809
2017-09-26 08:51:52 +02:00
Aleksey Kliger e51d521ff9 [test] Add regression test for 58809
Check that generic parameters's constraints properly affect the subclass and
interface relationships even when the constraints relate several of the generic
parameters themselves.
2017-09-26 08:51:52 +02:00
Cody Russell d5885b1996 Merge pull request #5621 from mono/2017-08-bump-bockbuild
Bump bockbuild to get gtk Japanese IME fixes
2017-09-21 15:18:16 -05:00
Cody Russell b429bfe794 Bump bockbuild to get gtk Japanese IME fixes 2017-09-21 11:04:32 -05:00
Rolf Bjarne Kvinge 48e94bd5f6 [mono-api-html] Print ref/out modifiers on parameters. Fixes #59430.
Print ref/out modifiers on parameters, so that any changes in ref/out are detected.

https://bugzilla.xamarin.com/show_bug.cgi?id=59430
2017-09-21 11:09:30 +02:00
Marek Safar 726b2befe9 Merge pull request #5604 from lambdageek/bug-43563-2017-08
[2017-08][loader] Init MonoClass:sizes.element_size lazily (Fixes #43563)
2017-09-19 08:44:18 +02:00
Aleksey Kliger bff4165b8d [loader] Init MonoClass:sizes.element_size lazily (Fixes #43563)
Originally mono_bounded_array_class_get () would populate
MonoClass:sizes.element_size as soon as the MonoClass for the array was needed.
This is a problem because we cannot call mono_class_array_element_size () on
the element class on a valuetype until mono_class_layout_fields () finishes
initializing it.

That means that structs which contain an array of themselves would hit the
recursive initialization check in mono_class_setup_fields and the MonoClass for
the element class would be marked as failed to load.

Instead we rely on the MonoClass:size_inited bit to tell us whether the array
class has been initialized and if not, we set the array element size in
mono_class_layout_fields.

This is possible because MonoClass:sizes.element_size is only really needed to
know how to allocate space for an array.  When laying out a class that contains
an array we don't need the element size - they array is just a reference type.

Example:
```csharp
struct S {
    static S[][] foo;
}
```

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=43563
2017-09-18 11:09:25 -04:00
Aleksey Kliger b4ec38c280 [tests] Check that runtime can represent recursive structs
Regression tests for https://bugzilla.xamarin.com/show_bug.cgi?id=43563
2017-09-18 11:09:24 -04:00
Aleksey Kliger d5cfcd6b2a [loader] Improve error message when a field's type is a failed class
Add the class failure to the field failure error message.
2017-09-18 11:09:24 -04:00
Aleksey Kliger 1ee454fce3 [loader] If signaling recursive type initialize, don't double free
If we detect that a recursive type initialization is happening, we should leave
without removing the class from the init_pending_tld_id list.  Otherwise we get
a double-free when the outer recursive call finally finishes and tries to
remove the same element.

Also re-load the init_list from TLS since a recursive call to mono_class_init could
have modified it between the time the current mono_class_init call started and
when it is finishing.
2017-09-18 11:09:23 -04:00
Ankit Jain 24775d13d4 [msbuild] Bump to get workaround for bxc #55697 . (#5590)
https://github.com/mono/msbuild/commit/8b76a1d2b9ffc493349a861962e44540ea14eaac
2017-09-15 10:06:54 -04:00
Alexis Christoforides 934465474b Merge pull request #5584 from nosami/2017-08-install-netsdk-targets
Install Microsoft.FSharp.NetSdk.props and targets
2017-09-14 17:19:30 -04:00
nosami 8c1b959850 Install Microsoft.FSharp.NetSdk.props and targets
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=57771
2017-09-14 20:09:41 +01:00
Alex Rønne Petersen 26c39f88fb Merge pull request #5561 from alexrp/2017-08
[2017-08][profiler] Revert the root_type field back to uleb128.
2017-09-13 21:49:14 +02:00
Ankit Jain 92f7d7ac14 Bump NuGet.BuildTasks to get new updates and switch to dev branch (#5539) 2017-09-13 08:51:05 -04:00
Marek Safar 2636235a82 [corlib] Update negative symbol for all cultures. Fixes #57496 2017-09-13 13:44:40 +02:00
Aleksey Kliger 5267bcb2b7 [appdomain] Catch exceptions when invoking AppDomain.DoAssemblyResolve
Otherwise we may leak a coop handle for the requesting assembly, which may
lead to an assertion when we unload the current domain.
2017-09-13 11:28:39 +02:00
Aleksey Kliger d03c1a55e0 [test] Regression test for #58950
If a reflection only assembly resolve event handler throws an exception, catch
the exception in the runtime to ensure that no coop handles leak.
2017-09-13 11:28:39 +02:00
Alex Rønne Petersen 63798ae475 [profiler] Revert the root_type field back to uleb128.
It's actually a 32-bit value.
2017-09-13 09:18:38 +02:00
Ankit Jain 31c099d7ca [msbuild] Bump msbuild to pick up SDK updates (#5547) 2017-09-12 16:45:43 -04:00
Jason Imison ad9daeaf58 [F#] Reinstate _DebugFileExt as it's needed for mobile debugging. (#5537)
Also added a mechanism for users to override DebugType
2017-09-09 00:27:30 +02:00
Jason Imison 829534374f F# portable debugging (#5530)
* Switch F# builds over to portable pdb

* Add portable pdb metadata fix from https://github.com/Microsoft/visualfsharp/pull/3553
2017-09-08 14:32:01 +02:00
Manuel de la Pena 6ce90d742b [Tests] Fix Mono.Data.Tds tests on iOS (#5501)
* [Tests] Fix Mono.Data.Tds tests on iOS

The modified tests failed on iOS following PR:
https://github.com/xamarin/xamarin-macios/pull/2580 that adds support
for Xharness to run the Mono.Data.Tds on Xamarin.iOS. With the changes
the tests run a expected.

* Close Listener when done.

(cherry picked from commit a09b912b86)
2017-09-08 14:11:16 +02:00
Marek Safar 28dcb2abb3 Bump roslyn to 2.3.2 2017-09-08 11:58:02 +02:00
Alexander Köplinger 1438e3a015 Fix partial cherry-pick of updating reference-assemblies 2017-09-07 18:39:21 +02:00
Alexander Köplinger b403e9b528 Update reference-assemblies 2017-09-07 12:27:42 +02:00
Bernhard Urban f02e94d25c Merge pull request #5514 from lewurm/2017-08-gethashcode-delegate
[2017-08][bcl] Use RuntimeHelpers.GetHashCode () for getting the hash code of …
2017-09-06 14:03:21 +02:00
Zoltan Varga c93b4d1722 [bcl] Use RuntimeHelpers.GetHashCode () for getting the hash code of … (#5511)
* [bcl] Use RuntimeHelpers.GetHashCode () for getting the hash code of the delegate target to avoid calling user defined hash code implementations which can throw exceptions. Fixes a regression introduced by a48bc43985.

* add test for #59235

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

* [fixup] RuntimeHelpers.GetHashCode handles null
2017-09-06 13:58:44 +02:00
Rodrigo Kumpera 5d37aa59b9 [mini] Handle magic interfaces in common_trampoline as if they were variant.
With the introduction of magic array interfaces, they must be handled as if they
were variant if they are being dispatched against an array.

This was not being done in common_trampoline and resulted in the IMT thunk never
getting rebuilt and getting decent perf.

With this patch, dispatch to simple methods such as Array::Count over a magic interface
in a covariant case (such as IList<object> dispatch onto string[]) will accrue gvi's.

On a trivial benchmark of executing Count 1M times, perf goes from 760ms to 50ms.
2017-09-04 11:04:04 +02:00
Bernhard Urban 3c7e98aa62 Merge pull request #5494 from lewurm/2017-08-mono-api-html
[2017-08][mono-api-html] Allow `-r` to ignore class removals
2017-09-04 10:41:39 +02:00
Jonathan Pryor 0e2248ca22 [mono-api-html] Allow -r to ignore class removals
Allow `mono-api-html -r REGEX` to be used to silence messages
regarding class and namespace removals in addition to member removals.
2017-09-01 23:27:09 +02:00
Martin Baulig ec43cc1dc4 [Mono.Security]: Add 'MonoTlsProvider.SupportsCleanShutdown' and 'MonoTlsSettings.SendCloseNotify'. (#5465) (#5478)
Only send close_notify when using BTLS and explicitly requested via 'MonoTlsSettings.SendCloseNotify'.
(cherry picked from commit 4a79280b3b)
2017-08-31 12:49:43 -04:00
Marek Safar 3cd2ccce57 Bump cecil 2017-08-31 15:34:40 +02:00
Ludovic Henry eaff739a03 [w32error] Add ENODEV -> ERROR_DEV_NOT_EXIST error translation (#5385) (#5391)
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=58738
2017-08-30 17:58:03 -04:00
Ludovic Henry 742e703eb4 [marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace (#5384) (#5395)
* [marshal] Rethrow in native-to-managed wrapper to keep exception stacktrace

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

* [interp] disable tests for 58782 as they rely on appdomains
2017-08-30 17:57:38 -04:00
Zoltan Varga fe214b46bd [amd64] Make code patching smp safe for the case where we emit a mov + call_reg. Hopefully fixes #57959. (#5452) 2017-08-28 16:28:51 -04:00
Alexander Köplinger c843b3f25f [configure.ac] Don't include the .build number in runtime-corlib version (#5449)
It's causing unnecessary complexity because we need to create a new
monolite when bumping the .build number in a major.minor.build
version like from 5.2.0 -> 5.2.1

corlib version bumps are very rare in those cases and even then
you can just increment the MONO_CORLIB_COUNTER variable.
(cherry picked from commit ec9a95dd53)
2017-08-25 21:59:25 +02:00
Alex Rønne Petersen b5e1cb7236 [profiler] Correct the description of the 'legacy' option. 2017-08-25 21:07:12 +02:00
Alex Rønne Petersen 47f6b08657 [profiler] Fix code coverage support. 2017-08-24 23:04:22 +02:00
Uri Simchoni 1d8c43241a [profiler] Fix log profiler SetMonitorEvents icall
Set the right flag when enabling/disabling monitor
event profiling
2017-08-24 23:04:15 +02:00
Alex Rønne Petersen 90be24e928 [profiler] Add a missing method_leave event for the CEE_MONO_RETOBJ opcode. 2017-08-24 23:04:03 +02:00
Alex Rønne Petersen 34a97709ce [profiler] Add a missing method_tail_call event when the tailc optimization is enabled. 2017-08-24 23:03:51 +02:00
Marek Safar 632c5e8e1c [mcs] Update logic when checking for tuple element names when overriding inherited member 2017-08-24 10:39:28 +02:00
Marek Safar b0527fafe3 [threadpool] Reduce logging verbosity level. Fixes #58829 2017-08-23 09:49:35 +02:00
Rogier Hofboer e3a2754a33 [Mono.Security] Bugfix of bug 23153. Certificate loop variable not used to find certificate 2017-08-22 16:42:46 +02:00
Jo Shields 0deb1fd312 [msi] Fix typos in f9bdab7928
(cherry picked from commit da9287e432)
2017-08-22 10:19:21 -04:00
Alexander Köplinger 3ffbfe94c9 [MacSDK] Whitelist the csi script
(cherry picked from commit 27877d7103)
2017-08-22 12:50:23 +02:00
Martin Baulig 51599d15b2 [System]: Fix major AppleTls memory leak. Bug #56814. (#5370) (#5375)
(cherry picked from commit c74f44126e)
2017-08-21 17:01:44 -04:00
Martin Baulig 68fc0a509f [System]: Fix minor leaks in AppleTls. (#5369) (#5374)
These should be automatically collected by the GC, but explicitly disposing
will keep memory usage more stable over time and keep pressure off the GC.

(cherry picked from commit 093915cf83)
(cherry picked from commit 9b8bb0edbe)
2017-08-21 17:01:22 -04:00
Jo Shields 6eaec1bb59 [msi] Pull in MSI changes from Mono 5.2 branch
(cherry picked from commit 929575bb0e)
2017-08-21 10:02:42 -04:00
Alexander Köplinger de06b9c866 Bump libgdiplus (#5393)
(cherry picked from commit 538829f456)
2017-08-21 15:29:43 +02:00
Alexander Köplinger ec16c55370 Bump timeout for TaskTests.Delay_Simple (#5410)
Should be reverted once https://bugzilla.xamarin.com/show_bug.cgi?id=58877 is investigated and fixed.
(cherry picked from commit f567c2e5eb)
2017-08-21 13:47:24 +02:00
Aleksey Kliger dcc1d41ffb [threads] Use designated initializer syntax in MAKE_SPECIAL_STATIC_OFFSET
Originally we used a C90-style struct initializer `{ (index), (offset), (type)
}`.  Unfortunately, SpecialStaticOffset is defined with fields in a different
order on big-endian and little-endian machines.  Using a designated
initializer, we don't have to care about the order.
2017-08-18 18:00:29 -04:00
Zoltan Varga d6af8351b4 Bump roslyn-binaries.
(cherry picked from commit 8f0de0cbfb)
2017-08-18 01:25:50 +02:00
Alexander Köplinger c3c06baf61 Bump bockbuild to remove gtk+ screen patch 2017-08-17 21:14:02 +02:00
Ludovic Henry c5a0d0e011 [corlib] Increase timeout for MonoTests.System.Runtime.Remoting.TestSynchronizationReleasedOnMultipleAcquire (#5373)
(cherry picked from commit 6e30ded242)
2017-08-17 19:01:22 +02:00
Alexander Köplinger 5e8d4de0f7 Bump bockbuild 2017-08-17 18:47:09 +02:00
Marek Safar b4632e0789 Bump api-snapshot (#5383) 2017-08-16 23:07:20 +02:00
Ankit Jain 141d8fafaa [msbuild] Bump to xplat-master branch HEAD 2017-08-16 15:01:33 -04:00
Marek Safar 259864a1d3 Update list of denied assemblies 2017-08-16 14:56:41 -04:00
Ankit Jain 3eb8d6d178 [msbuild] Install a deniedAssembliesList.txt to support denied ... (#5358)
... assemblies.

msbuild tries to filter out the denied assemblies, which mono refuses to
load, during a build. It uses the `deniedAssembliesList.txt` installed
to `$mono_prefix/lib/mono/xbuild` to identify them.

This was generated with:

 `$ mono tools/nuget-hash-extractor/nuget-hash-extractor.exe nugets guids_for_msbuild > mcs/tools/xbuild/data/deniedAssembliesList.txt`

This file needs to be kept in sync with any changes in the assemblies
denied by the runtime.

msbuild PR that adds support for this -
https://github.com/mono/msbuild/pull/23 .

cherry-pick 823bca4aed
2017-08-16 14:56:23 -04:00
Ankit Jain 3deebbf487 Install Roslyn binaries, including msbuild tasks to msbuild/Roslyn (#5251)
.. directory, which is `$mono_prefix/lib/mono/msbuild/15.0/bin/Roslyn/`

Mono installs `csc.exe` but the corresponding
`Microsoft.Build.Tasks.CodeAnalysis.dll` required for supporting msbuild C#
projects is installed by msbuild. But these two can get out of sync,
like they did and had to be worked around in
https://github.com/mono/msbuild/pull/19 .

Instead, we now install all the relevant roslyn bits (C# and VB) from the same
source. Only the msbuild specific files are copied to the Roslyn folder.
VBCSCompiler, csi and their dependencies are symlinked from `lib/mono/4.5`.

Also:

- csi.exe is included since the tool is surfaced as an msbuild task,
  and that requires the *Scripting.dll assemblies.
- VBCSCompiler* - shared compiler is installed
- vbc.exe doesn't work on mono currently, so skipping that
- And `Microsoft.DiaSymReader.Native.{amd64,x86}.dll` are dropped.

Cherry-picking 43cec6c0dd
2017-08-16 14:54:52 -04:00
Alexander Köplinger 0e486b814f Bump bockbuild 2017-08-16 19:09:13 +02:00
Marek Safar 04f45d88f9 netstandard dependant facades update after 2.0 release (#5371) 2017-08-15 23:29:42 +02:00
Alexis Christoforides fdd7beb707 [MacSDK] Update bockbuild to work around build/staging issue
Commit message: Allow for non-fatal shell execution, and turn “install_name_tool” staging failures to warnings as we find a more permanent solution to AOT dylibs not always having enough field space for the new path (all other dylibs made in the build with the XCode toolchain typically do, as they are built with the “-headerpad_max_install_names” flag.
2017-08-15 11:28:26 -04:00
Aleksey Kliger (λgeek) 0ec03cb37c Merge pull request #5365 from lambdageek/bug-17325-2017-08
[2017-08][remoting] transparent proxy GetType of an interface should return the interface Type, not MarshalByRefObject. (Fixes #17325)
2017-08-14 16:31:31 -04:00
Alexander Köplinger 03298038d7 Bump nuget to latest 4.3.0 release (#5368)
(cherry picked from commit a9a08890cb)
2017-08-14 19:30:19 +02:00
Alexis Christoforides 310bba2a01 [MacSDK] Switch to HTTPS for downloading SQLite
(cherry picked from commit aa2ea3b812)
2017-08-14 19:28:54 +02:00
Alexander Köplinger db62348438 Bump nuget-buildtasks (#5364)
Includes https://github.com/NuGet/NuGet.BuildTasks/pull/35

(cherry picked from commit e88178655b)
2017-08-14 17:54:25 +02:00
Aleksey Kliger f5040c4e67 [remoting] transparent proxy GetType of an interface should return the
interface Type, not MarshalByRefObject. (Fixes #17325)

If a RealProxy instance is created (using the protected RealProxy(Type)
constructor) for an interface, mono internally sets up a MonoRemoteClass which
looks like a proxy for a MarshalByRefObject instance that happens to implement
the given interface.  However mono_class_proxy_vtable just does a memcpy() to
setup the MonoVTable:type field of the transparent proxy's vtable.  That type
field is hit by the JIT when System.Object.GetType() is called - and on .NET
Framework GetType for a transparent proxy of an interface returns the interface
not (as Mono used to) typeof(MarshalByRefObject).

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=17325
2017-08-14 11:17:49 -04:00
Aleksey Kliger 1d366da8f0 [test] Add regression test for GetType() of a transparent proxy.
Check that calling GetType() on a transparent proxy of a RealProxy of an
interface returns that interface type.
2017-08-14 11:17:49 -04:00
Zoltan Varga ed0f1b4992 [llvm] Avoid generating invalid llvm IR when a finally clause contains a loop which branches back to the beginning of the finally clause. (#5354) 2017-08-10 20:29:38 -04:00
Ankit Jain e9f63bbd97 [msbuild] Bump to xplat-master branch HEAD 2017-08-09 21:08:55 -04:00
Ankit Jain 640748df04 [msbuild] Bump to the xplat-master branch HEAD 2017-08-09 13:26:56 -04:00
Alexander Köplinger 3f3e41781e Default powerpc to mcs instead of roslyn (#5326)
It is crashing still way more than it works and now that the mcs
configuration works again we should default to that to make our CI
more pleasant.
(cherry picked from commit ee8c7c80b7)
2017-08-09 03:11:47 +02:00
Aleksey Kliger 74a8e56233 [eglib] (goutput.c) Revert Android logging host-target change
Revert part of 590473d01b - the Android-specific
logging in eglib/goutput.c should be used when the host is Android, not the
target.
2017-08-08 18:17:21 -04:00
Zoltan Varga 0e38c766cc [runtime] Fix a case where klass->blittable was written without holding the loader locked. (#5331) 2017-08-08 16:37:45 -04:00
Alex Rønne Petersen 73d4810c70 [runtime] Add ICALL_DECL_EXPORT.
ICALL_EXPORT is only used on function definitions, not declarations.
2017-08-08 18:12:54 +02:00
Alex Rønne Petersen 15bd67a390 [runtime] Declare MonoProfilerCallContext::return_value offset. 2017-08-08 18:12:50 +02:00
Alex Rønne Petersen 6af040720f [profiler] Split method_leave callback into a method_tail_call callback.
With this, profilers can distinguish between the two, and also know what the
target method of a tail call is.

The call instrumentation flags have been renamed accordingly and a new flag has
been added for instrumenting tail calls. I've also added a flag for exceptional
leave events, and method_exception_leave is only raised if this flag is given
for a method.

Also refactored the relevant JIT code a bit so it's easier to follow.
2017-08-08 15:21:09 +02:00
Alex Rønne Petersen d7767d7f41 [profiler] Mark generated raise functions as ICALL_DECL_EXPORT.
This is currently needed for method_enter, method_leave, and gc_allocation.
2017-08-08 15:21:09 +02:00
Alex Rønne Petersen ba0a5b09ae [profiler] Properly clean up the resources used by the profiler API on shutdown.
Also introduce mono_profiler_set_cleanup_callback ().
2017-08-08 15:21:09 +02:00
Alex Rønne Petersen 94d9ccc8b7 [profiler] Some improvements to the code coverage API.
Code coverage must now be explicitly enabled. This simplifies initialization
of some coverage-related structures and also lets us enable debug info which
is needed to produce good data.

Also change the signature of mono_profiler_get_coverage_data so it returns a
value indicating whether coverage data was available.
2017-08-08 15:21:09 +02:00
Uri Simchoni 759ae465ea [profiler] Avoid instrumenting inlined methods
An inlined method does not require instrumentation (if it
did, it would not have been inlined). The flags that
control instrumentation options are valid for the caller
method and are not to be consulted.

This patch replaces an assertion with a check and early
return. A method that "wants to be instrumented" does not
get inlined, but a method that "doesn't want to be instrumented"
can get inlined. However, the flags that control instrumention
options have been calculated against the caller method, hence
they should not be consulted at all. The extra check renders
the assertion unnecessary.
2017-08-08 15:21:09 +02:00
Uri Simchoni c4c358fcb3 [profile] set the "no profiling" bitmask equal to zero
This makes constructs such as "if (!mono_profiler_get_call_instrumentation_flags(methos))"
correct. See mono_method_check_inlining()
2017-08-08 15:21:09 +02:00
Jason Imison a88a2802d8 Merge pull request #5336 from mono/2017-08-fsharp-resources
Bump F# to 4.1.25 and remove already merged patches
2017-08-08 12:55:32 +01:00
nosami 884e4bffa0 Bump F# to 4.1.25 and remove already merged patches 2017-08-08 12:34:48 +01:00
Ludovic Henry 9417be0f11 Bump version to 5.6 (#5324) 2017-08-07 15:41:12 +02:00
Alexander Köplinger c212bccc3d [eglib] Add back NEWS file, it's required for the tarball
(cherry picked from commit 7845ed2d91)
2017-08-07 14:32:47 +02:00
Ludovic Henry 1dd426f94b Revert "Bump version to 5.6"
This reverts commit fe021658d9.
2017-08-07 14:26:08 +02:00
Ludovic Henry fe021658d9 Bump version to 5.6 2017-08-07 14:18:43 +02:00
1576 changed files with 66038 additions and 31108 deletions

No files matched your search

-1
View File
@@ -44,7 +44,6 @@ Ankh.NoLoad
# Tooling
_ReSharper*/
*.resharper
.idea/*
[Tt]est[Rr]esult*
*.orig
*.rej
+55 -121
View File
@@ -1,128 +1,62 @@
# Mono Code Owners File
#
# GitHub uses this file to determine who to assign for reviews
# on pull requests. Please keep this file alphabetically sorted.
# GitHub uses this file to determine who to ping for reviews on pull requests.
# If you're the primary maintainer of an area of Mono and you don't mind
# reviewing pull requests, please add yourself to this file. You may want to
# avoid adding entries for commonly changed or automatically generated files
# (e.g. stuff in external/, or various generated *.csproj files) so as not to
# get spammed with emails.
#
# References:
# Note that if two patterns match a file, the later pattern takes precedence.
#
# Please keep this file alphabetically sorted.
#
# Reference:
#
# https://github.com/blog/2392-introducing-code-owners
# https://help.github.com/articles/about-codeowners
# These owners will be the default owners for everything in the repo.
* @luhenry @marek-safar
# Order is important. The last matching pattern has the most precedence.
/acceptance-tests @akoeplinger
/acceptance-tests/profiler-stress* @alexrp
/data @marek-safar @akoeplinger
/data/gdb @vargaz
/data/lldb @lewurm @vargaz
/docs @luhenry @marek-safar
/docs/sources/mono-api-profiler.html @alexrp
/external @marek-safar @luhenry
/external/binary-reference-assemblies @marek-safar @akoeplinger
/external/bockbuild @akoeplinger @alexischr
/external/boringssl @baulig
/external/nuget-buildtasks @radical @akoeplinger
/libgc @BrzVlad @vargaz
/llvm @vargaz
/man @marek-safar @miguel
/man/mprof-report.1 @alexrp
/mcs @marek-safar
/mcs/build @marek-safar @akoeplinger
/mcs/class @marek-safar @akoeplinger
/mcs/class/corlib/System.Reflection*/ @vargaz @lambdageek
/mcs/class/Mono.Btls.Interface @baulig
/mcs/class/Mono.Data.Tds @egorbo
/mcs/class/Mono.Debugger.Soft @vargaz
/mcs/class/Mono.Options @jonpryor
/mcs/class/Mono.Profiler.Log @alexrp
/mcs/class/Mono.Security/Mono.Security/Interface @baulig
/mcs/class/System/Mono.AppleTls @baulig
/mcs/class/System/Mono.Btls @baulig
/mcs/class/System/Mono.Net.Security @baulig
/mcs/class/System/Mono.Security.Interface @baulig
/mcs/class/System.Data* @egorbo
/mcs/errors @marek-safar
/mcs/ilasm @marek-safar
/mcs/jay @marek-safar
/mcs/mcs @marek-safar
/mcs/tests @marek-safar
/mcs/tools @marek-safar @akoeplinger
/mono @luhenry
/mono/btls @baulig
/mono/dis @lambdageek @vargaz
/mono/eglib @kumpera @vargaz @luhenry
/mono/metadata @vargaz @kumpera
/mono/metadata/*verify* @kumpera
/mono/metadata/*profiler* @alexrp
/mono/metadata/monitor* @brzvlad
/mono/metadata/sgen* @brzvlad
/mono/metadata/threads* @luhenry @kumpera
/mono/metadata/threadpool* @luhenry
/mono/metadata/w32* @luhenry
/mono/metadata/*-win* @lateralusX @luhenry
/mono/mini @vargaz @kumpera
/mono/mini/*cfgdump* @lewurm
/mono/mini/*exceptions* @lewurm
/mono/mini/*ppc* @lewurm
/mono/mini/*type-check* @lewurm
/mono/mini/interp/* @lewurm
/mono/mini/*profiler* @alexrp
/mono/mini/debugger-agent.c @DavidKarlas
/mono/profiler @alexrp @kumpera
/mono/sgen @brzvlad @kumpera
/mono/utils @kumpera @vargaz
/mono/utils/atomic* @alexrp
/mono/utils/mono-hwcap* @alexrp
/mono/utils/mono-mem* @alexrp
/mono/utils/mono-threads* @luhenry @kumpera
/mono/utils/*-win* @lateralusX @kumpera
/msvc @lateralusX
/msvc/*profiler* @alexrp
/msvc/scripts @akoeplinger
/packaging/ @alexischr @akoeplinger
/packaging/MacSDK/msbuild.py @radical @akoeplinger
/runtime @akoeplinger @marek-safar
/samples @luhenry
/samples/profiler @alexrp
/samples/size @alexrp
/scripts @akoeplinger
/scripts/ci @akoeplinger
/scripts/ci/run-test-profiler-stress-tests.sh @alexrp
/support @luhenry @vargaz
/tools @kumpera
/tools/checker @tritao
/tools/crash-bisector @kumpera
/tools/locale-builder @marek-safar
/tools/monograph @vargaz
/tools/nuget-hash-extractor @marek-safar
/tools/offsets-tool @lewurm @rolfbjarne
/tools/pedump @kumpera @lambdageek
/tools/sgen @brzvlad
acceptance-tests/* @akoeplinger
acceptance-tests/profiler-stress* @alexrp
docs/sources/mono-api-profiler.html @alexrp
man/mprof-report.1 @alexrp
mcs/build @marek-safar
mcs/class @marek-safar
mcs/errors @marek-safar
mcs/mcs @marek-safar
mcs/tests @marek-safar
mcs/class/corlib/System.Reflection*/ @vargaz @lambdageek
mcs/class/Mono.Btls.Interface @baulig
mcs/class/Mono.Data.Tds @egorbo
mcs/class/Mono.Debugger.Soft @vargaz
mcs/class/Mono.Options @jonpryor
mcs/class/Mono.Profiler.Log @alexrp
mcs/class/Mono.Security/Mono.Security/Interface @baulig
mcs/class/System/Mono.AppleTls @baulig
mcs/class/System/Mono.Btls @baulig
mcs/class/System/Mono.Net.Security @baulig
mcs/class/System/Mono.Security.Interface @baulig
mcs/class/System.Data @egorbo
mono/metadata/*profiler* @alexrp
mono/metadata/monitor* @brzvlad
mono/metadata/sgen* @brzvlad
mono/metadata/threads* @luhenry @kumpera
mono/metadata/threadpool* @luhenry
mono/metadata/w32* @luhenry
mono/mini/*profiler* @alexrp
mono/profiler @alexrp
mono/sgen @brzvlad
mono/utils/atomic* @alexrp
mono/utils/mono-hwcap* @alexrp
mono/utils/mono-mem* @alexrp
mono/utils/mono-threads* @luhenry @kumpera
msvc/*profiler* @alexrp
msvc/scripts @akoeplinger
packaging/Windows @akoeplinger
samples/profiler @alexrp
samples/size @alexrp
scripts/ci/run-jenkins.sh @akoeplinger
scripts/ci/run-test-acceptance-tests.sh @akoeplinger
scripts/ci/run-test-default.sh @akoeplinger
scripts/ci/run-test-profiler-stress-tests.sh @alexrp
scripts/ci/util.sh @akoeplinger
-5
View File
@@ -34,11 +34,6 @@ CLA
Contributions are now taken under the [.NET Foundation CLA](https://cla2.dotnetfoundation.org/).
Code Review
=======
We are requiring code reviews before merging a pull request.
GitHub won't let you merge a PR until someone from the Mono team approves it.
Testing
=======
+21 -7
View File
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WERROR_CFLAGS)
MONOTOUCH_SUBDIRS = $(libgc_dir) mono
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
# Some tools might not build when cross-compiling
if CROSS_COMPILING
@@ -11,9 +11,9 @@ else
tools_dir = tools
endif
SUBDIRS = po $(libgc_dir) mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) msvc $(docs_dir) acceptance-tests llvm
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples $(tools_dir) msvc $(docs_dir) acceptance-tests llvm
# Keep in sync with SUBDIRS
DIST_SUBDIRS = m4 po $(libgc_dir) mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests llvm
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs acceptance-tests llvm
all: update_submodules
@@ -109,6 +109,23 @@ monotouch-do-clean:
endif
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/libiconv-1.7.zip
wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
unzip -n -d / pkgconfig-0.11-20020310.zip
unzip -n -d / glib-2.0.4-20020703.zip
unzip -n -d / glib-dev-2.0.4-20020703.zip
unzip -n -d / libiconv-1.7.zip
unzip -n -d / libiconv-dev-1.7.zip
unzip -n -d / libintl-0.10.40-20020101.zip
win32setup:
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
update-csproj:
-rm msvc/scripts/order
-rm msvc/scripts/order.xml
@@ -145,7 +162,4 @@ update-llvm-version:
update-solution-files:
make update-csproj
make package-inputs
(cd msvc/scripts; make genproj.exe; mono genproj.exe $(GENPROJ_ARGS))
update-solution-files-with-tests:
make "GENPROJ_ARGS=2012 true true" update-solution-files
(cd msvc/scripts; make genproj.exe; mono genproj.exe)
-10
View File
@@ -483,16 +483,6 @@ http://code.google.com/p/nativeclient/
* Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
* `--enable-wasm`
* Use this option to configure mono to run on WebAssembly. It will
set both host and target to the WebAssembly triplet. This overrides
the values passed to `--host` or `--target` and ignored what config.sub guesses.
This is a workaround to enable usage of old automake versions that don't
recognize the wasm triplet.
Working With Submodules
=======================
+3 -3
View File
@@ -10,7 +10,7 @@
{
"name": "coreclr",
"url": "git://github.com/mono/coreclr.git",
"rev": "d0e6a36f782f5ee1ca0b7d3ec0c55725c3571b1f",
"rev": "c7da48acf72c40c0c0ed1a80ebfacea21bb3a271",
"remote-branch": "origin/mono",
"branch": "mono",
"directory": "coreclr"
@@ -18,7 +18,7 @@
{
"name": "ms-test-suite",
"url": "[email protected]:xamarin/ms-test-suite.git",
"rev": "67f29dfc0741b5311dd746c75760963a2915e648",
"rev": "73c155f76b55839f26ba707d6d40091060e4f5d8",
"remote-branch": "origin/master",
"branch": "master",
"directory": "ms-test-suite"
@@ -31,4 +31,4 @@
"branch": "master",
"directory": "benchmarker"
}
]
]
+2 -4
View File
@@ -1,11 +1,9 @@
check-ms-test-suite: $(CLASS)/nunitlite.dll
@if $(MAKE) validate-ms-test-suite RESET_VERSIONS=1; then \
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance build MCS="$(MCS) -debug:portable -t:library -warn:1 -r:$(CLASS)/nunitlite.dll" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup build MCS="$(MCS) -debug:portable -t:library -warn:1 -r:$(CLASS)/nunitlite.dll" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/System.Linq.Expressions build MCS="$(MCS) -debug:portable -t:library -warn:1 -r:$(CLASS)/nunitlite.dll" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-lite-console.exe -exclude=MonoBug,BadTest -format:nunit2" NUNIT_XML_RESULT="-result:$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-conformance.xml" || EXIT_CODE=1; \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-lite-console.exe -exclude=MonoBug,BadTest -format:nunit2" NUNIT_XML_RESULT="-result:$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-systemruntimebringup.xml" || EXIT_CODE=1; \
$(MAKE) -C $(MSTESTSUITE_PATH)/System.Linq.Expressions run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-lite-console.exe -exclude=MonoBug,BadTest -format:nunit2" NUNIT_XML_RESULT="-result:$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-systemlinqexpressions.xml" || EXIT_CODE=1; \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup build MCS="$(MCS) -debug:portable -warn:1" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup run MONO="$(RUNTIME)" || EXIT_CODE=1; \
exit $$EXIT_CODE; \
else \
echo "*** [ms-test-suite] Getting the repository failed, you probably don't have access to this Xamarin-internal resource. Skipping."; \
+1 -1
View File
@@ -57,7 +57,7 @@ namespace Mono.Profiling.Tests.Stress {
"jit",
};
static readonly TimeSpan _timeout = TimeSpan.FromHours (9);
static readonly TimeSpan _timeout = TimeSpan.FromHours (8);
static readonly Dictionary<string, Predicate<Benchmark>> _filters = new Dictionary<string, Predicate<Benchmark>> {
{ "ironjs-v8", FilterArmArchitecture },
+27 -87
View File
@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
#AC_PREREQ([2.62])
AC_INIT(mono, [5.9.0],
AC_INIT(mono, [5.6.0],
[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])
@@ -96,15 +96,8 @@ need_link_unlink=no
#Set to extra linker flags to be passed to the runtime binaries (mono /mono-sgen)
extra_runtime_ldflags=""
# Hack for WASM
# Current autotools (v1.15) doesn't have a triplet we can use for wasm so the kludge we do is to
# work around it by using a feature flag instead
AC_ARG_ENABLE(wasm,[ --enable-wasm Hack to set the current runtime to target wasm], enable_wasm=$enableval)
# Thread configuration inspired by sleepycat's db
AC_MSG_CHECKING([host platform characteristics])
libgc_threads=no
has_dtrace=no
parallel_mark=yes
@@ -113,22 +106,11 @@ ikvm_native=yes
host_win32=no
target_win32=no
platform_android=no
platform_ios=no
host_darwin=no
if test "x$enable_wasm" = "xyes"; then
CFLAGS="$CFLAGS -D_REENTRANT -D_GNU_SOURCE -DNO_UNALIGNED_ACCESS -s WASM=1"
CPPFLAGS="$CPPFLAGS -D_REENTRANT -DUSE_MMAP -D_GNU_SOURCE -DNO_UNALIGNED_ACCESS -s WASM=1"
libdl="-ldl"
libgc_threads=pthreads
else
case "$host" in
*-mingw*|*-*-cygwin*)
AC_DEFINE(DISABLE_PORTABILITY,1,[Disable the io-portability layer])
AC_DEFINE(HOST_NO_SYMLINKS,1,[This platform does not support symlinks])
AC_DEFINE(PLATFORM_NO_SYMLINKS,1,[This platform does not support symlinks])
host_win32=yes
mono_cv_clang=no
if test "x$cross_compiling" = "xno"; then
@@ -159,7 +141,7 @@ case "$host" in
CPPFLAGS="$CPPFLAGS -D_REENTRANT -DGC_NETBSD_THREADS -D_GNU_SOURCE"
libmono_cflags="-D_REENTRANT"
LDFLAGS="$LDFLAGS -pthread"
CPPFLAGS="$CPPFLAGS -DHOST_BSD"
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
libmono_ldflags="-pthread"
need_link_unlink=yes
libdl="-ldl"
@@ -194,7 +176,7 @@ case "$host" in
LDFLAGS="$LDFLAGS $PTHREAD_LIBS -L/usr/local/lib"
libmono_ldflags="$PTHREAD_LIBS"
fi
CPPFLAGS="$CPPFLAGS -DHOST_BSD"
CPPFLAGS="$CPPFLAGS -DPLATFORM_BSD"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID, 1, [pthread is a pointer])
libdl=
@@ -204,7 +186,7 @@ case "$host" in
with_sgen_default_concurrent=yes
;;
*-*-*openbsd*)
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DHOST_BSD -D_REENTRANT -DUSE_MMAP"
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_OPENBSD_THREADS -DPLATFORM_BSD -D_REENTRANT -DUSE_MMAP"
if test "x$disable_munmap" != "xyes"; then
CPPFLAGS="$CPPFLAGS -DUSE_MUNMAP"
fi
@@ -220,7 +202,7 @@ case "$host" in
;;
*-*-linux-android*)
platform_android=yes
AC_DEFINE(HOST_ANDROID,1,[Targeting the Android platform])
AC_DEFINE(PLATFORM_ANDROID,1,[Targeting the Android platform])
AC_DEFINE(TARGET_ANDROID,1,[Targeting the Android platform])
CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP"
@@ -302,7 +284,7 @@ case "$host" in
use_sigposix=yes
;;
*-*-solaris*)
CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -DUSE_MUNMAP -DHOST_SOLARIS"
CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_MMAP -DUSE_MUNMAP -DPLATFORM_SOLARIS"
need_link_unlink=yes
libmono_cflags="-D_REENTRANT"
libgc_threads=pthreads
@@ -314,7 +296,7 @@ case "$host" in
parallel_mark="Disabled_Currently_Hangs_On_MacOSX"
host_darwin=yes
target_mach=yes
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_MACOSX_THREADS -DUSE_MMAP -DUSE_MUNMAP"
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP"
libmono_cflags="-D_THREAD_SAFE"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
@@ -345,12 +327,8 @@ case "$host" in
with_sgen_default_concurrent=yes
;;
arm*-darwin*)
platform_ios=yes
has_dtrace=no
;;
aarch64*-darwin*)
platform_ios=yes
;;
;;
esac
;;
*-*-haiku*)
@@ -372,10 +350,6 @@ case "$host" in
libdl="-ldl"
;;
esac
# WASM hack
fi
AC_MSG_RESULT(ok)
if test x$need_link_unlink = xyes; then
@@ -390,10 +364,6 @@ if test x$target_win32 = xyes; then
AC_DEFINE(TARGET_WIN32, 1, [Target Platform is Win32])
fi
if test x$host_darwin = xyes; then
AC_DEFINE(HOST_DARWIN, 1, [Host Platform is Darwin])
fi
# Defined for all targets/platforms using classic Windows API support.
AC_DEFINE(HAVE_CLASSIC_WINAPI_SUPPORT, 1, [Use classic Windows API support])
AC_DEFINE(HAVE_UWP_WINAPI_SUPPORT, 0, [Don't use UWP Windows API support])
@@ -401,17 +371,16 @@ AC_DEFINE(HAVE_UWP_WINAPI_SUPPORT, 0, [Don't use UWP Windows API support])
AC_SUBST(extra_runtime_ldflags)
AM_CONDITIONAL(HOST_WIN32, test x$host_win32 = xyes)
AM_CONDITIONAL(TARGET_WIN32, test x$target_win32 = xyes)
AM_CONDITIONAL(HOST_LINUX, echo x$target_os | grep -q linux)
AM_CONDITIONAL(HOST_DARWIN, test x$host_darwin = xyes)
AM_CONDITIONAL(HOST_SIGPOSIX, test x$use_sigposix = xyes)
AM_CONDITIONAL(HOST_ANDROID, test x$platform_android = xyes)
AM_CONDITIONAL(HOST_IOS, test x$platform_ios = xyes)
AM_CONDITIONAL(PLATFORM_LINUX, echo x$target_os | grep -q linux)
AM_CONDITIONAL(PLATFORM_DARWIN, test x$host_darwin = xyes)
AM_CONDITIONAL(PLATFORM_SIGPOSIX, test x$use_sigposix = xyes)
AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes)
if test -z "$HOST_DARWIN_TRUE"; then :
if test -z "$PLATFORM_DARWIN_TRUE"; then :
PLATFORM_AOT_SUFFIX=.dylib
fi
if test -z "$HOST_LINUX_TRUE"; then :
if test -z "$PLATFORM_LINUX_TRUE"; then :
PLATFORM_AOT_SUFFIX=.so
fi
@@ -628,18 +597,7 @@ if test x$platform_android = xyes; then
fi # Android
# not 64 bit clean in cross-compile
if test "x$enable_wasm" = "xyes"; then
AC_DEFINE(SIZEOF_VOID_P,4)
AC_DEFINE(SIZEOF_LONG,4)
ac_cv_sizeof_void_p="4"
ac_cv_sizeof_long="4"
else
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
fi
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(void *, 4)
AC_CACHE_CHECK([for clang],
mono_cv_clang,[
@@ -795,9 +753,6 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
fi
)
AC_CHECK_PROG(ninja, ninja, yes, no)
AM_CONDITIONAL(NINJA, test x$ninja != xno)
AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
@@ -805,8 +760,8 @@ fi
AC_SUBST([WERROR_CFLAGS])
AC_SUBST([SHARED_CFLAGS])
GLIB_CFLAGS='-I$(top_srcdir)/mono/eglib -I$(top_builddir)/mono/eglib'
GLIB_LIBS='$(top_builddir)/mono/eglib/libeglib.la -lm'
GLIB_CFLAGS='-I$(top_srcdir)/eglib/src -I$(top_builddir)/eglib/src'
GLIB_LIBS='-L$(top_builddir)/eglib/src -leglib -lm'
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
@@ -1586,8 +1541,6 @@ if test x$host_win32 = xno; then
AC_CHECK_FUNCS(getpwuid_r)
fi
AC_FUNC_STRERROR_R()
dnl ****************************************************************
dnl *** Check for sched_setaffinity from glibc versions before ***
dnl *** 2.3.4. The older versions of the function only take 2 ***
@@ -3145,19 +3098,6 @@ jit_wanted=true
boehm_supported=true
BTLS_SUPPORTED=no
BTLS_PLATFORM=
if test "x$enable_wasm" = "xyes"; then
TARGET=WASM
HOST=WASM
arch_target=wasm
AC_DEFINE(TARGET_WASM, 1, [Target wasm])
AC_DEFINE(HOST_WASM, 1, [Host wasm])
BTLS_SUPPORTED=no
with_tls=pthread
target_mach=no
else
case "$host" in
mips*)
TARGET=MIPS;
@@ -3560,8 +3500,6 @@ SPARC64)
;;
esac
#WASM hack
fi
dnl *************
@@ -3837,6 +3775,10 @@ AC_SUBST(PIDTYPE)
AC_DEFINE(HAVE_CLASSIC_WINAPI_SUPPORT, 1, [Use classic Windows API support])
AC_DEFINE(HAVE_UWP_WINAPI_SUPPORT, 0, [Don't use UWP Windows API support])
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf strerror_r)
AC_CHECK_FUNCS(getrlimit)
AC_CHECK_FUNCS(fork execv execve)
@@ -4423,13 +4365,10 @@ AM_CONDITIONAL(POWERPC64, test x$TARGET = xPOWERPC64)
AM_CONDITIONAL(ARM, test x$TARGET = xARM)
AM_CONDITIONAL(ARM64, test x$TARGET = xARM64)
AM_CONDITIONAL(S390X, test x$TARGET = xS390X)
AM_CONDITIONAL(WASM, test x$TARGET = xWASM)
AM_CONDITIONAL(HOST_X86, test x$HOST = xX86)
AM_CONDITIONAL(HOST_AMD64, test x$HOST = xAMD64)
AM_CONDITIONAL(HOST_ARM, test x$HOST = xARM)
AM_CONDITIONAL(HOST_ARM64, test x$HOST = xARM64)
AM_CONDITIONAL(HOST_WASM, test x$HOST = xWASM)
AM_CONDITIONAL(CROSS_COMPILE, test "x$host" != "x$target")
AC_SUBST(LIBC)
@@ -4455,7 +4394,7 @@ AC_SUBST(mono_build_root)
mono_runtime=mono/mini/mono
AC_SUBST(mono_runtime)
CSC_LOCATION=`cd $srcdir && pwd`/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.6.0/tools/csc.exe
CSC_LOCATION=`cd $srcdir && pwd`/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.3.2/tools/csc.exe
if test $csc_compiler = mcs; then
CSC=$mcs_topdir/class/lib/build/mcs.exe
@@ -4672,8 +4611,9 @@ mono/unit-tests/Makefile
mono/benchmark/Makefile
mono/mini/Makefile
mono/profiler/Makefile
mono/eglib/Makefile
mono/eglib/eglib-config.h
eglib/Makefile
eglib/src/Makefile
eglib/src/eglib-config.h
m4/Makefile
ikvm-native/Makefile
scripts/Makefile
+1 -1
View File
@@ -13,7 +13,7 @@ def print_frames(thread, num_frames, current_thread):
function_name = frame.GetFunctionName()
if function_name == "ves_exec_method_with_context":
try:
s = 'frame->imethod->method'
s = 'frame->runtime_method->method'
klassname = frame.EvaluateExpression('(char*) ' + s + '->klass->name').summary[1:-1]
methodname = frame.EvaluateExpression('(char*) ' + s + '->name').summary[1:-1]
+1
View File
@@ -37,6 +37,7 @@
<manpage name="mono-xmltool(1)" page="../man/mono-xmltool.1" />
<manpage name="mozroots(1)" page="../man/mozroots.1" />
<manpage name="permview(1)" page="../man/permview.1" />
<manpage name="prj2make(1)" page="../man/prj2make.1" />
<manpage name="resgen(1)" page="../man/resgen.1" />
<manpage name="secutil(1)" page="../man/secutil.1" />
<manpage name="setreg(1)" page="../man/setreg.1" />
+22
View File
@@ -0,0 +1,22 @@
/
/depcomp
/config.guess
/config.sub
/ltmain.sh
/eglib-*.tar.gz
/missing
/install-sh
/compile
/Makefile
/Makefile.in
/stamp-h1
/config.h.in
/libtool
/autom4te.cache
/aclocal.m4
/config.log
/configure
/config.h
/config.status
/INSTALL
dolt*
File renamed without changes.
+17
View File
@@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
+5
View File
@@ -0,0 +1,5 @@
AM_CFLAGS = $(WERROR_CFLAGS)
SUBDIRS = src
EXTRA_DIST = README NEWS AUTHORS winconfig.h
+3
View File
@@ -0,0 +1,3 @@
Release notes for Mono are hosted on the web, please see:
http://www.mono-project.com/docs/about-mono/releases/
+54
View File
@@ -0,0 +1,54 @@
The purpose of eglib is to be an X11-licensed subset of glib that can
be used with Mono when the Mono runtime is explicitly relicensed under
a different license by Novell.
The implementation is done from the public documentation available here:
http://developer.gnome.org/doc/API/2.0/glib/
Currently this is only being built standalone, use:
./autogen.sh --prefix=/tmp/test
Currently all the definitions go into a single file: glib.h, there are
no separate files, please try to follow the convetions in the source code
* Tests
Please read the README in tests/
* Features
The source code is designed to allow for different operating
system builds of the eglib code.
Files in src that:
* Have a plain name: are cross platform, and should work on
every operating system.
* That end in -unix.c: These files contain Unix specific code.
* That end in -win32.c: These files contain Win32 specific code.
* That end in -posix.c: Will work on both Windows and Unix,
but should not be included for other operating systems.
* Plans: short and long term.
The short term plans for eglib is to allow Mono to optionally
build with it instead of using glib, gmodule and gthread, but
the default build will continue to be done against glib 2.0.
In the long-term we are considering dropping glib as a
dependency, considering that Mono requires a modern Unix
system to run anyways (for its thread support) it would allow
us to fix some of the glib API limitations we have to live
with (explicit thread support for example), rework the API to
use types from stdint.h and we would be able to drop three
external shared libraries.
This would reduce memory usage for the handful of routines
that we use from glib, dynamic linker overhead for those and
would allow us to tune the implementation to Mono's needs.
+33
View File
@@ -0,0 +1,33 @@
* Missing code
* Process launching
3 g_shell_quote
1 g_shell_unquote
----------------------------------------------------------------------
* Should implement, for better performance:
Macros:
6 G_UNLIKELY
4 G_LIKELY
* Unimplemented, not supported currently:
(none as yet.)
* Dead Code
The GMainLoop code was no longer in use in Mono.
* Windows implementations needed
Directory, File manipulation:
g_dir_open, g_dir_close, g_dir_read_name
We're missing a native windows implementation. The unix one is in place.
* Information retrieval
1 g_win32_getlocale
File renamed without changes.
@@ -55,7 +55,7 @@ AM_CPPFLAGS = -I$(srcdir)
if HOST_WIN32
libeglib_la_LIBADD = -lm $(LIBICONV) -lpsapi
else
if HOST_ANDROID
if PLATFORM_ANDROID
libeglib_la_LIBADD = -llog
endif
endif
@@ -37,11 +37,6 @@ typedef signed @GSIZE@ gssize;
#define G_BREAKPOINT()
#endif
#if defined (HOST_WASM)
#undef G_BREAKPOINT
#define G_BREAKPOINT() do { printf ("MONO: BREAKPOINT\n"); abort (); } while (0)
#endif
typedef @PIDTYPE@ GPid;
#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -87,6 +87,6 @@ g_mkdtemp (char *tmp_template)
return mkdtemp (template_copy);
#else
g_error("Function mkdtemp not supported");
g_error("Function not supported");
#endif
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -273,7 +273,7 @@ g_module_close (GModule *module)
gchar *
g_module_build_path (const gchar *directory, const gchar *module_name)
{
const char *lib_prefix = "";
char *lib_prefix = "";
if (module_name == NULL)
return NULL;
@@ -281,8 +281,10 @@ g_module_build_path (const gchar *directory, const gchar *module_name)
if (strncmp (module_name, "lib", 3) != 0)
lib_prefix = LIBPREFIX;
if (directory && *directory)
if (directory && *directory){
return g_strdup_printf ("%s/%s%s" LIBSUFFIX, directory, lib_prefix, module_name);
}
return g_strdup_printf ("%s%s" LIBSUFFIX, lib_prefix, module_name);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -137,7 +137,7 @@ g_assertion_message (const gchar *format, ...)
exit (0);
}
#if HOST_ANDROID
#if PLATFORM_ANDROID
#include <android/log.h>
static android_LogPriority
+1 -2
View File
@@ -160,8 +160,7 @@ g_path_get_basename (const char *filename)
return g_strdup (&r[1]);
}
//wasm does have strtok_r even though autoconf fails to find
#if !defined (HAVE_STRTOK_R) && !defined (HOST_WASM)
#ifndef HAVE_STRTOK_R
// This is from BSD's strtok_r
char *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+4 -11
View File
@@ -231,11 +231,10 @@ g_strerror (gint errnum)
#ifdef HAVE_STRERROR_R
char tmp_buff [128]; //Quite arbitrary, should be large enough
char *buff = tmp_buff;
size_t buff_len = sizeof (tmp_buff);
int buff_len = sizeof (tmp_buff);
int r;
buff [0] = 0;
#ifndef STRERROR_R_CHAR_P
int r;
while ((r = strerror_r (errnum, buff, buff_len - 1))) {
if (r != ERANGE) {
buff = g_strdup_printf ("Invalid Error code '%d'", errnum);
@@ -252,16 +251,10 @@ g_strerror (gint errnum)
error_messages [errnum] = g_strdup (buff);
if (buff != tmp_buff)
g_free (buff);
#else /* STRERROR_R_CHAR_P */
buff = strerror_r (errnum, buff, buff_len);
if (!error_messages [errnum])
error_messages [errnum] = g_strdup (buff);
#endif /* STRERROR_R_CHAR_P */
#else /* HAVE_STRERROR_R */
#else
if (!error_messages [errnum])
error_messages [errnum] = g_strdup_printf ("Error code '%d'", errnum);
#endif /* HAVE_STRERROR_R */
#endif
#ifndef G_OS_WIN32
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 1576 files, more files were not shown because too many files have changed in this diff. Show more