mono.git
7 years ago[mcs] Avoid agressive generic members inflation from using static. Fixes #43400
Marek Safar [Tue, 16 Aug 2016 11:57:23 +0000 (13:57 +0200)]
[mcs] Avoid agressive generic members inflation from using static. Fixes #43400

7 years ago[linker] Bring various descriptors that were updated in iOS, but not on desktop Mono
Miguel de Icaza [Tue, 16 Aug 2016 03:56:01 +0000 (23:56 -0400)]
[linker] Bring various descriptors that were updated in iOS, but not on desktop Mono

7 years ago[linker] Update descriptors for mscorlib to include the new _ThreadPoolWaitCallback
Miguel de Icaza [Tue, 16 Aug 2016 03:39:30 +0000 (23:39 -0400)]
[linker] Update descriptors for mscorlib to include the new _ThreadPoolWaitCallback

7 years ago[runtime] Cleanup naming of SRE icalls. NFC. (#3402)
Zoltan Varga [Mon, 15 Aug 2016 21:24:19 +0000 (23:24 +0200)]
[runtime] Cleanup naming of SRE icalls. NFC. (#3402)

Name the icall functions ves_icall_<TypeName>_<MethodName>. Move the SRE icalls to reflection.c from icall.c.

7 years ago[mcs] Don't reset temporary stack fields too early. Fixes #43265
Marek Safar [Mon, 15 Aug 2016 18:59:41 +0000 (20:59 +0200)]
[mcs] Don't reset temporary stack fields too early. Fixes #43265

7 years ago[reflection] Don't crash when building dynamic custom attributes on dynamic types...
Aleksey Kliger (λgeek) [Mon, 15 Aug 2016 19:05:14 +0000 (15:05 -0400)]
[reflection] Don't crash when building dynamic custom attributes on dynamic types (Fixes #43291) (#3399)

* [corlib] Regression test for non-visible custom attributes.

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

* [reflection] Don't crash when building dynamic custom attributes on dynamic types (Fixes #43291)

1. Don't dereference a NULL custom attribute ctor, throw a type load
   exception.
2. When building MonoCustomAttrInfo from an array of
   MonoReflectinoCustomAttr*, compute the number of
   non-visible (non-public) attributes correctly, and make sure to
   iterate over all the attributes when populating the result array.

Fixes [#43291](https://bugzilla.xamarin.com/show_bug.cgi?id=43291)

* [reflection] Marginally better TLE for custom attrs

At least include a message about what went wrong when trying to
construct a custom attribute from a type that isn't finished yet.

7 years ago[runtime] Fix warnings.
Zoltan Varga [Mon, 15 Aug 2016 14:30:04 +0000 (16:30 +0200)]
[runtime] Fix warnings.

7 years agoFix the build.
Martin Baulig [Mon, 15 Aug 2016 13:57:13 +0000 (15:57 +0200)]
Fix the build.

Use the desktop version of MonoTlsProviderFactory.CreateDefaultProviderImpl()
in the 'mobile_static' profile.

7 years agoMerge pull request #3396 from ntherning/fix-async-exc-compilation-on-windows
Niklas Therning [Mon, 15 Aug 2016 07:59:46 +0000 (09:59 +0200)]
Merge pull request #3396 from ntherning/fix-async-exc-compilation-on-windows

Fix the failure of the async-exc-compilation.exe test on Windows

7 years agoFix empty hostname in GetHostByName on windows (#3397)
Henric Müller [Mon, 15 Aug 2016 02:05:32 +0000 (04:05 +0200)]
Fix empty hostname in GetHostByName on windows (#3397)

7 years ago[bcl] Fix netstandard mistake in WebHeaderCollection
Alexander Köplinger [Fri, 12 Aug 2016 14:43:15 +0000 (16:43 +0200)]
[bcl] Fix netstandard mistake in WebHeaderCollection

I accidentally added this in 3c3ef17376f5b4e71ac024210672e2d0484f3419 because I missed that on
full .NET this class inherits from NameValueCollection which provides `this[string name]` already
(the diff tool showed it as missing because it didn't take this into account).

7 years agoMerge pull request #3398 from henricm/fix-for-test-helpers-symlink
Marek Safar [Fri, 12 Aug 2016 13:55:35 +0000 (15:55 +0200)]
Merge pull request #3398 from henricm/fix-for-test-helpers-symlink

Removing symlink of TestHelpers.cs

7 years agoRemoving symlink of TestHelpers.cs
Henric Müller [Fri, 12 Aug 2016 12:11:57 +0000 (14:11 +0200)]
Removing symlink of TestHelpers.cs

7 years ago[jit] Add missing special case for div with mul optimization
Vlad Brezae [Fri, 12 Aug 2016 11:56:44 +0000 (14:56 +0300)]
[jit] Add missing special case for div with mul optimization

The algorithm does not handle the -1, 0 and 1 special divisors.

7 years agoFix the failure of the async-exc-compilation.exe test on Windows.
Niklas Therning [Fri, 12 Aug 2016 09:16:00 +0000 (11:16 +0200)]
Fix the failure of the async-exc-compilation.exe test on Windows.

The test fails due an ArgumentException being thrown when the catch handler in
the test's Run() method tries to write to the console. The ArgumentException
is thrown in EncodingTable.GetCodePageFromName(string) since the encoding name
passed to it is null. Normally this exception would be caught and the default
encoding would fall back to UTF8. However, since the thread is aborted the
ThreadAbortException will be rethrown and terminates the test with an uncaught
exception. I have verified that the same behavior is seen on OS X if I mock up
the default encoding code to throw the same ArgumentException.

This patch adds a call to Thread.ResetAbort() just before the call to
Console.WriteLine() in the catch handler. This removes the abort status of the
thread and avoids the rethrow of the ThreadAbortException.

7 years agoMerge pull request #3394 from mono/netstandard
Marek Safar [Fri, 12 Aug 2016 07:54:24 +0000 (09:54 +0200)]
Merge pull request #3394 from mono/netstandard

NetStandard 1.6 members matching

7 years ago[bcl] Define NETSTANDARD in xammac profile as well
Alexander Köplinger [Fri, 12 Aug 2016 00:36:28 +0000 (02:36 +0200)]
[bcl] Define NETSTANDARD in xammac profile as well

7 years agoMerge pull request #2332 from BrzVlad/feature-div-with-mul
Vlad Brezae [Thu, 11 Aug 2016 21:44:00 +0000 (00:44 +0300)]
Merge pull request #2332 from BrzVlad/feature-div-with-mul

[jit] Optimize divisions by immediate

7 years ago[Facades] Remove wrong facades
Marek Safar [Wed, 10 Aug 2016 15:28:44 +0000 (17:28 +0200)]
[Facades] Remove wrong facades

7 years ago[Facades] Update version numbers
Marek Safar [Wed, 10 Aug 2016 15:14:55 +0000 (17:14 +0200)]
[Facades] Update version numbers

7 years ago[Facades] System.Security.Cryptography.Algorithms on netstandard profiles only
Marek Safar [Thu, 11 Aug 2016 08:27:36 +0000 (10:27 +0200)]
[Facades] System.Security.Cryptography.Algorithms on netstandard profiles only

7 years ago[bcl] Update to match NETStandard 1.6 members
Alexander Köplinger [Tue, 26 Jul 2016 16:06:54 +0000 (18:06 +0200)]
[bcl] Update to match NETStandard 1.6 members

7 years ago[jit] Enable division by constant optimization on 32 bit
Vlad Brezae [Mon, 4 Apr 2016 16:10:54 +0000 (09:10 -0700)]
[jit] Enable division by constant optimization on 32 bit

7 years ago[arm] Implement OP_BIGMUL
Vlad Brezae [Sun, 13 Dec 2015 23:58:02 +0000 (01:58 +0200)]
[arm] Implement OP_BIGMUL

7 years ago[tests] Add random immediate division test
Vlad Brezae [Thu, 10 Dec 2015 05:02:38 +0000 (07:02 +0200)]
[tests] Add random immediate division test

7 years ago[jit] Register counter for number of optimized divisions
Vlad Brezae [Thu, 10 Dec 2015 03:53:35 +0000 (05:53 +0200)]
[jit] Register counter for number of optimized divisions

7 years ago[jit] Optimize signed division by constant
Vlad Brezae [Thu, 10 Dec 2015 02:49:47 +0000 (04:49 +0200)]
[jit] Optimize signed division by constant

7 years ago[jit] Optimize unsigned division by constant
Vlad Brezae [Tue, 1 Dec 2015 23:24:50 +0000 (01:24 +0200)]
[jit] Optimize unsigned division by constant

7 years ago[corcompare] Use only C# known parameter type attributes for methods signatures
Marek Safar [Thu, 11 Aug 2016 16:05:51 +0000 (18:05 +0200)]
[corcompare] Use only C# known parameter type attributes for methods signatures

7 years ago[System]: Use 'HttpWebRequest.Host' for certificate host name validation.
Martin Baulig [Tue, 9 Aug 2016 14:47:30 +0000 (16:47 +0200)]
[System]: Use 'HttpWebRequest.Host' for certificate host name validation.

(cherry picked from commit 5200955033c4319de06d83df32be62199a2654c2)

7 years ago[System]: Add new internal X509Certificate2Impl.IntermediateCertificates.
Martin Baulig [Sun, 19 Jun 2016 11:15:29 +0000 (13:15 +0200)]
[System]: Add new internal X509Certificate2Impl.IntermediateCertificates.

(cherry picked from commit 8ed20455a569513c49d69bc3fd2f618ae184faac)

7 years ago[System]: Add private Mono.Net.Security APIs which will be shared between AppleTls...
Martin Baulig [Tue, 26 Jul 2016 19:03:45 +0000 (15:03 -0400)]
[System]: Add private Mono.Net.Security APIs which will be shared between AppleTls and BoringTls.

(cherry picked from commit 934a577a943e2195974b2e631d6f833f894ad227)

7 years ago[System]: Cleanup the internal MonoTlsProviderFactory and prepare for BTLS.
Martin Baulig [Tue, 26 Jul 2016 18:58:29 +0000 (14:58 -0400)]
[System]: Cleanup the internal MonoTlsProviderFactory and prepare for BTLS.

(cherry picked from commit b919768e1af329ad56e034239dcc91dd634df9d9)

7 years agoMerge pull request #3389 from lambdageek/bug-43099
Aleksey Kliger (λgeek) [Thu, 11 Aug 2016 14:43:08 +0000 (10:43 -0400)]
Merge pull request #3389 from lambdageek/bug-43099

[coop] Temporarily restore MonoThreadInfo when TLS destructor runs.  Fixes #43099

7 years ago[mcs] More reliable tests
Marek Safar [Thu, 11 Aug 2016 07:54:55 +0000 (09:54 +0200)]
[mcs] More reliable tests

7 years agoMerge pull request #3388 from ntherning/fix-thread-priority-on-windows
Niklas Therning [Thu, 11 Aug 2016 07:20:54 +0000 (09:20 +0200)]
Merge pull request #3388 from ntherning/fix-thread-priority-on-windows

Fix getting/setting thread priority on Windows

7 years ago[mkbundle] Fix --fetch-target to not require an assembly, embed the proper assembly...
Miguel de Icaza [Thu, 11 Aug 2016 04:33:53 +0000 (00:33 -0400)]
[mkbundle] Fix --fetch-target to not require an assembly, embed the proper assembly when --cross RUNTIME is used

7 years ago[handles] offsets-tool should include MonoObjectHandlePayload
Aleksey Kliger [Wed, 10 Aug 2016 22:47:43 +0000 (18:47 -0400)]
[handles] offsets-tool should include MonoObjectHandlePayload

Complements 3c053143903c9927e7a31b4341f5a11f06cef69f

7 years agoMerge pull request #3390 from alexanderkyte/fix_nunitlite_build_state
Alexander Kyte [Wed, 10 Aug 2016 20:36:13 +0000 (16:36 -0400)]
Merge pull request #3390 from alexanderkyte/fix_nunitlite_build_state

[nunitlite] Pass greedily, not fail greedily

7 years ago[nunitlite] Pass greedily, not fail greedily
Alexander Kyte [Wed, 10 Aug 2016 20:29:16 +0000 (16:29 -0400)]
[nunitlite] Pass greedily, not fail greedily

7 years ago[coop] Fix MONO_HANDLE_PAYLOAD_OFFSET() for cross-compilation
Aleksey Kliger [Wed, 10 Aug 2016 20:27:09 +0000 (16:27 -0400)]
[coop] Fix MONO_HANDLE_PAYLOAD_OFFSET() for cross-compilation

- fix MONO_HANDLE_PAYLOAD_OFFSET when MONO_STRUCT_OFFSET expands to
 token-pasting
- add MonoObjectPayloadHandle decl to object-offset.h machinery.

7 years agoMerge pull request #2780 from alexanderkyte/seq_point_optimize
Alexander Kyte [Wed, 10 Aug 2016 19:47:59 +0000 (15:47 -0400)]
Merge pull request #2780 from alexanderkyte/seq_point_optimize

[runtime] Implement performant unbounded-depth sequence point search

7 years ago[marshal] Ensure uses_handles is initialized.
Aleksey Kliger [Wed, 10 Aug 2016 18:56:09 +0000 (14:56 -0400)]
[marshal] Ensure uses_handles is initialized.

7 years ago[coop] Temporarily restore MonoThreadInfo when TLS destructor runs. Fixes #43099
Aleksey Kliger [Wed, 10 Aug 2016 16:14:52 +0000 (12:14 -0400)]
[coop] Temporarily restore MonoThreadInfo when TLS destructor runs.  Fixes #43099

We need a valid MonoThreadInfo in the TLS key while we run
unregister_thread because we may need to block the thread when it tries
to take the sgen GC mutex.

Fixes [#43099](https://bugzilla.xamarin.com/show_bug.cgi?id=43099)

7 years ago[mono-api-html] Show assembly version differences
Marek Safar [Wed, 10 Aug 2016 14:48:18 +0000 (16:48 +0200)]
[mono-api-html] Show assembly version differences

7 years agoMerge pull request #3213 from henricm/fix-for-win-securestring-to-bstr
Niklas Therning [Wed, 10 Aug 2016 15:04:53 +0000 (17:04 +0200)]
Merge pull request #3213 from henricm/fix-for-win-securestring-to-bstr

Fix for win securestring to bstr

7 years agoFix getting/setting thread priority on Windows
Niklas Therning [Wed, 10 Aug 2016 14:47:33 +0000 (16:47 +0200)]
Fix getting/setting thread priority on Windows

The mono_threads_platform_get_priority()/mono_threads_platform_set_priority()
functions in mono-threads-windows.c assume the "handle" member has been set in
the MonoThreadInfo struct passed to it but it's always NULL. This patch
implements mono_threads_suspend_register() in the same file which sets the
"handle" member at thread registration time, like it's done in
mono-threads-posix.c.

This patch also makes sure the priority of a new thread is set as expected
when the Thread.Priority property has been changed prior to the thread being
started.

Also added a test method to mono/tests/priority.cs which tests that the
priority of the main thread is Normal by default and that it can be changed as
expected.

The changes in this patch fixes the failures in mono/tests/priority.exe on
Windows i386 and x64.

7 years ago[mcs] Report second level references mismatch only for really used references. Fixes...
Marek Safar [Wed, 10 Aug 2016 13:54:04 +0000 (15:54 +0200)]
[mcs] Report second level references mismatch only for really used references. Fixes #42702

7 years agoMerge pull request #3387 from xmcclure/test-suite-bump
monojenkins [Tue, 9 Aug 2016 22:30:10 +0000 (00:30 +0200)]
Merge pull request #3387 from xmcclure/test-suite-bump

Update ms-test-suite to fix broken test

7 years ago[WinForms] Fix a test to correctly check for Mono
Alexander Köplinger [Tue, 9 Aug 2016 19:50:44 +0000 (21:50 +0200)]
[WinForms] Fix a test to correctly check for Mono

typeof (int).GetType ().GetType ().Name is now RuntimeType since https://github.com/mono/mono/pull/3045.
We did not notice this since most of our bots don't run with en-US locale set which this test requires.

7 years ago[mono] Use -size 0 instead of -empty as find argument
Alexander Köplinger [Tue, 9 Aug 2016 13:08:06 +0000 (15:08 +0200)]
[mono] Use -size 0 instead of -empty as find argument

The latter is not supported by the "find" binary in Alpine. The former works everywhere.

7 years ago[mini] Fix mktemp argument in test_op_il_seq_point.sh
Alexander Köplinger [Tue, 9 Aug 2016 12:45:18 +0000 (14:45 +0200)]
[mini] Fix mktemp argument in test_op_il_seq_point.sh

mktemp on e.g. Alpine requires at least six 'X' characters in the template argument.

7 years ago[mdoc] Remove --exclude=.svn from diff arguments
Alexander Köplinger [Tue, 9 Aug 2016 11:50:02 +0000 (13:50 +0200)]
[mdoc] Remove --exclude=.svn from diff arguments

We don't use svn anymore since a very long time and some diff implementations (e.g. in Alpine) don't support --exclude.
Removing the argument is an easy fix.

7 years ago[acceptance-tests] Run ms-test-suite with debug symbols
Alexander Köplinger [Tue, 9 Aug 2016 11:46:37 +0000 (13:46 +0200)]
[acceptance-tests] Run ms-test-suite with debug symbols

So we get line numbers in stack traces.

7 years ago[runtime] Use a coop semaphore instead of the io-layer one in the monitor code. ...
Zoltan Varga [Tue, 9 Aug 2016 20:51:30 +0000 (22:51 +0200)]
[runtime] Use a coop semaphore instead of the io-layer one in the monitor code. (#3382)

7 years agoUpdate ms-test-suite to fix broken test
Andi McClure [Tue, 9 Aug 2016 20:45:24 +0000 (16:45 -0400)]
Update ms-test-suite to fix broken test

7 years agoMerge pull request #3386 from alexanderkyte/nunit_lite_return_status
Alexander Kyte [Tue, 9 Aug 2016 19:03:27 +0000 (15:03 -0400)]
Merge pull request #3386 from alexanderkyte/nunit_lite_return_status

[runtime] Make nunitlite return failure exit code when tests fail

7 years agoMerge pull request #3373 from marek-safar/net-4.6.2
Marek Safar [Tue, 9 Aug 2016 19:02:27 +0000 (21:02 +0200)]
Merge pull request #3373 from marek-safar/net-4.6.2

[bcl] Update Reference Source to .NET Framework 4.6.2

7 years ago[runtime] Return failure return status if nunit-lite test suite fails
Alexander Kyte [Tue, 9 Aug 2016 18:35:48 +0000 (14:35 -0400)]
[runtime] Return failure return status if nunit-lite test suite fails

7 years ago[runtime] Bump nunit-lite dependency for runner change
Alexander Kyte [Tue, 9 Aug 2016 18:45:02 +0000 (14:45 -0400)]
[runtime] Bump nunit-lite dependency for runner change

7 years ago[System] Remove one no longer needed uri workaround. Fixes #43032
Marek Safar [Tue, 9 Aug 2016 17:44:45 +0000 (19:44 +0200)]
[System] Remove one no longer needed uri workaround. Fixes #43032

7 years ago[bcl] Update Reference Source to .NET Framework 4.6.2
Marek Safar [Mon, 8 Aug 2016 16:30:44 +0000 (18:30 +0200)]
[bcl] Update Reference Source to .NET Framework 4.6.2

7 years agoMoving BSTR conv to native code in SecureStringToBSTR.
Henric Müller [Fri, 10 Jun 2016 12:33:17 +0000 (14:33 +0200)]
Moving BSTR conv to native code in SecureStringToBSTR.

Previous implementation laid out the BSTR structure
in directly memory in C# code. This layout was not correct
for windows.
Furthermore memory was allocated using AllocCoTaskMem but later freed
using SysFreeString which on windows are different memory areas.
Third issue is that SecureString asumes big-endian when copying the chars
to its internal byte buffer. So on little-endian environments,
a swap of bytes is needed before the buffer is sent to native side
for BSTR conversion. This should probably be handled internally in
SecureString instead.

7 years agoHandle NetBSD specific iconv(3) call prototype (#3376)
Kamil Rytarowski [Tue, 9 Aug 2016 10:41:54 +0000 (12:41 +0200)]
Handle NetBSD specific iconv(3) call prototype (#3376)

In the past there were wars between constified and unconstified
second parameter.. NetBSD went with constifying it. POSIX went without
const and most other OSes standarized. NetBSD is still having
incompatible function prototype.

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <iconv.h>

     size_t
     iconv(iconv_t cd, const char ** restrict src, size_t * restrict srcleft,
           char ** restrict dst, size_t * restrict dstleft);

7 years agoMerge pull request #3353 from esdrubal/st-format
Marcos Henrich [Tue, 9 Aug 2016 09:34:06 +0000 (10:34 +0100)]
Merge pull request #3353 from esdrubal/st-format

[corlib] Removed MVID and AOTID metadata.

7 years ago[ci] Another Python 3 fix in babysitter
Alexander Köplinger [Tue, 9 Aug 2016 00:12:17 +0000 (02:12 +0200)]
[ci] Another Python 3 fix in babysitter

```
  File "./scripts/ci/babysitter", line 424, in run
    for xml in (xml_list + wrote_xml):
TypeError: can only concatenate list (not "map") to list
```

7 years agoDefine _NETBSD_SOURCE for mincore(2) (#3380)
Kamil Rytarowski [Tue, 9 Aug 2016 00:00:44 +0000 (02:00 +0200)]
Define _NETBSD_SOURCE for mincore(2) (#3380)

7 years agoFix the definition of legacy_closer(), detected on NetBSD (#3377)
Kamil Rytarowski [Mon, 8 Aug 2016 23:59:31 +0000 (01:59 +0200)]
Fix the definition of legacy_closer(), detected on NetBSD (#3377)

7 years ago[ci] Python3 fix in babysitter script
Alexander Köplinger [Mon, 8 Aug 2016 21:48:53 +0000 (23:48 +0200)]
[ci] Python3 fix in babysitter script

iteritems() was removed in py3, we can just use items() instead since we're iterating
over the list anyway so we don't need the lazy evaluation behavior of iteritems().

7 years agoIntroduce mono-threads-netbsd.c (#3374)
Kamil Rytarowski [Mon, 8 Aug 2016 21:21:38 +0000 (23:21 +0200)]
Introduce mono-threads-netbsd.c (#3374)

7 years agoFix shell portability, detected with NetBSD/pkgsrc (#3375)
Kamil Rytarowski [Mon, 8 Aug 2016 21:20:49 +0000 (23:20 +0200)]
Fix shell portability, detected with NetBSD/pkgsrc (#3375)

7 years agoMerge pull request #3349 from lambdageek/handle-icalls-in-jit
Aleksey Kliger (λgeek) [Mon, 8 Aug 2016 20:39:13 +0000 (16:39 -0400)]
Merge pull request #3349 from lambdageek/handle-icalls-in-jit

[handles] Add coop handles in wrapper to icalls with HANDLES() declaration

7 years ago[marshal] Assert if adding handles to an out or inout parameter of an icall.
Aleksey Kliger [Fri, 5 Aug 2016 19:07:54 +0000 (15:07 -0400)]
[marshal] Assert if adding handles to an out or inout parameter of an icall.

Eventually should support this (System.RuntimeType.GetInterfaceMapData
could use it, for one) but for now just assert.

7 years ago[marshal] Load payload from return handle
Aleksey Kliger [Thu, 4 Aug 2016 22:13:22 +0000 (18:13 -0400)]
[marshal] Load payload from return handle

7 years ago[marshal] If an icall is getting handles and MonoError added, it better
Aleksey Kliger [Thu, 4 Aug 2016 22:12:50 +0000 (18:12 -0400)]
[marshal] If an icall is getting handles and MonoError added, it better
check for exceptions.

7 years ago[marshal] Wrap icall managed obj input arguments with handles.
Aleksey Kliger [Wed, 3 Aug 2016 20:33:18 +0000 (16:33 -0400)]
[marshal] Wrap icall managed obj input arguments with handles.

7 years ago[runtime] Modify Zoltan's prototype to query icall-def.h handles tables
Aleksey Kliger [Tue, 2 Aug 2016 22:01:25 +0000 (18:01 -0400)]
[runtime] Modify Zoltan's prototype to query icall-def.h handles tables

TODO: there's a gratuitous call to mono_lookup_internal_call_full().
Should really cache the uses_handle info along with the addr since the
lookup by name is rather involved.

7 years ago[runtime] Add HANDLES() macro to icall-def.h
Aleksey Kliger [Wed, 27 Jul 2016 22:50:13 +0000 (18:50 -0400)]
[runtime] Add HANDLES() macro to icall-def.h

The HANDLES() macro can be wrapped around an ICALL() to signal that
the icall should use the coop handles machinery from handles.h

7 years agoAdd RuntimeStructs class.
Zoltan Varga [Mon, 13 Jun 2016 19:14:44 +0000 (15:14 -0400)]
Add RuntimeStructs class.

7 years agoPass a MonoError argument to icalls.
Zoltan Varga [Sun, 12 Jun 2016 21:30:59 +0000 (17:30 -0400)]
Pass a MonoError argument to icalls.

7 years agoMerge pull request #3372 from ntherning/fix-g_win32_getlocale
João Matos [Mon, 8 Aug 2016 16:26:28 +0000 (17:26 +0100)]
Merge pull request #3372 from ntherning/fix-g_win32_getlocale

Explicitly use the ANSI version of GetLocaleInfo() in g_win32_getlocale()

7 years agoExplicitly use the ANSI version of GetLocaleInfo() in g_win32_getlocale()
Niklas Therning [Mon, 8 Aug 2016 15:17:19 +0000 (17:17 +0200)]
Explicitly use the ANSI version of GetLocaleInfo() in g_win32_getlocale()

Since UNICODE is defined when Mono is compiled under Windows the
GetLocaleInfo() macro will expand to GetLocaleInfoW() which returns the
current locale identifier in g_win32_getlocale() in 16-bit Unicode.
g_win32_getlocale() however expects an 8-bit encoding. By using
GetLocaleInfoA() explicitly we'll get the identifier back as an ordinary 8-bit
C string.

This patch fixes the mono/tests/threadpool-exceptions5.exe test.

7 years ago[corlib] Removed MVID and AOTID metadata.
Marcos Henrich [Wed, 3 Aug 2016 16:30:25 +0000 (17:30 +0100)]
[corlib] Removed MVID and AOTID metadata.

MVID and AOTID metadata is no longer displayed at the end of the stack
trace.

Now, every stack frame contains a MVID and AOTID inlined.

An IL offset stackframe looks like:
  at StackTraceDumper.Main () [0x00000] in <a3ec873a838c42c29f4eba7cab7d1dfb>:0

A native offset stack frame looks like:
  at StackTraceDumper.<Main>m__0 () <0x100e15d50 + 0x00029> in <a3ec873a838c42c29f4eba7cab7d1dfb#b37a9d11247b811ffffdaff8090d8a59>:0

7 years agoMerge pull request #2903 from krytarowski/netbsd-support-4
Alexander Köplinger [Mon, 8 Aug 2016 09:47:08 +0000 (11:47 +0200)]
Merge pull request #2903 from krytarowski/netbsd-support-4

Implement mremap(2) usage on NetBSD

7 years agoFix the loaded llvm build.
Zoltan Varga [Sun, 7 Aug 2016 23:40:17 +0000 (01:40 +0200)]
Fix the loaded llvm build.

7 years agoMerge pull request #3370 from ludovic-henry/fix-finalizer-wait
Ludovic Henry [Sun, 7 Aug 2016 16:58:45 +0000 (18:58 +0200)]
Merge pull request #3370 from ludovic-henry/fix-finalizer-wait

[gc] Fix crash when doing WaitForPendingFinalizers

7 years ago[gc] Fix crash when doing WaitForPendingFinalizers
Ludovic Henry [Sun, 7 Aug 2016 11:45:56 +0000 (13:45 +0200)]
[gc] Fix crash when doing WaitForPendingFinalizers

The crash would come from a use-after-free of stack memory: in coop_cond_timedwait_alertable, we would allocate the struct we pass to the mono_thread_info_install_interrupt function on the stack. But there is no guarantee as to when break_coop_alertable_wait is run. The fix is to allocate the data passed to mono_thread_info_install_interrupt on the heap, and free it in the callback, or if it hasn't been interrupted.

7 years ago[x86] Only pinvoke methods are stdcall. (#3354)
Vincent Povirk [Sun, 7 Aug 2016 07:29:41 +0000 (02:29 -0500)]
[x86] Only pinvoke methods are stdcall. (#3354)

For xamarin bug 30146.

7 years ago[runtime] Fix the loaded llvm build.
Zoltan Varga [Sat, 6 Aug 2016 17:03:34 +0000 (13:03 -0400)]
[runtime] Fix the loaded llvm build.

7 years agoMerge pull request #3356 from marek-safar/cecil-update
Marek Safar [Sat, 6 Aug 2016 07:31:04 +0000 (09:31 +0200)]
Merge pull request #3356 from marek-safar/cecil-update

Cecil update

7 years ago[runtime] Store the original invoke method in WrapperInfo for delegate invokes, use...
Zoltan Varga [Fri, 5 Aug 2016 22:58:58 +0000 (18:58 -0400)]
[runtime] Store the original invoke method in WrapperInfo for delegate invokes, use that to fix the check in find_aot_method_in_amodule ().

7 years ago[monosymbolicate] Update project file
Marek Safar [Fri, 5 Aug 2016 15:49:58 +0000 (17:49 +0200)]
[monosymbolicate] Update project file

7 years ago[Mono.Cecil] Add special handling of legacy 0.9.5 version
Marek Safar [Fri, 5 Aug 2016 12:39:55 +0000 (14:39 +0200)]
[Mono.Cecil] Add special handling of legacy 0.9.5 version

7 years ago[mono-symbolicate] Better test failure reporting
Marek Safar [Fri, 5 Aug 2016 11:35:30 +0000 (13:35 +0200)]
[mono-symbolicate] Better test failure reporting

7 years ago[mdoc] Update project file
Marek Safar [Fri, 5 Aug 2016 10:43:19 +0000 (12:43 +0200)]
[mdoc] Update project file

7 years ago[Mono.Contract] Less obsolete warnings
Marek Safar [Thu, 4 Aug 2016 11:33:46 +0000 (13:33 +0200)]
[Mono.Contract] Less obsolete warnings

7 years ago[bcl] Reflect cecil breaking changes
Marek Safar [Wed, 3 Aug 2016 09:07:33 +0000 (11:07 +0200)]
[bcl] Reflect cecil breaking changes

7 years agoUpdate Cecil to the latest master
Marek Safar [Mon, 1 Aug 2016 15:55:19 +0000 (17:55 +0200)]
Update Cecil to the latest master

7 years agoMerge pull request #3363 from akoeplinger/fix-42938
Alexander Köplinger [Fri, 5 Aug 2016 20:54:59 +0000 (22:54 +0200)]
Merge pull request #3363 from akoeplinger/fix-42938

[xbuild] Use the xbuild ToolsVersion even if another one is specified in the csproj

7 years ago[arm] Fix aot support in the sdb soft breakpoint trampolines.
Zoltan Varga [Fri, 5 Aug 2016 20:29:14 +0000 (16:29 -0400)]
[arm] Fix aot support in the sdb soft breakpoint trampolines.