mono.git
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 agoMerge pull request #3202 from dlahoti/patch-1
Alexander Köplinger [Mon, 27 Jun 2016 11:07:08 +0000 (13:07 +0200)]
Merge pull request #3202 from dlahoti/patch-1

make monodis exit with value 1 on an error

7 years agoMerge pull request #3209 from tritao/master
João Matos [Fri, 24 Jun 2016 19:25:09 +0000 (20:25 +0100)]
Merge pull request #3209 from tritao/master

[System.IO.Compression] Fixed stream writes when Zip archive is opened in Update mode

7 years agoMerge pull request #3208 from ludovic-henry/iolayer-remove-shared
Ludovic Henry [Fri, 24 Jun 2016 17:23:30 +0000 (19:23 +0200)]
Merge pull request #3208 from ludovic-henry/iolayer-remove-shared

[io-layer] Remove remaining pieces for cross-process mutex, semaphore and event

7 years agoEnhanced logging - attempt 2.5 (#3191)
Neale Ferguson [Fri, 24 Jun 2016 16:47:01 +0000 (12:47 -0400)]
Enhanced logging - attempt 2.5 (#3191)

* Revert "Revert "Enhance log tracing""

This reverts commit 565c6ac0802eedf68755bd5776c80b00ab388415.

* Better handle legacy log handler processing with suggestions from lamdageek

* Remove unnecessary assignment

* Restore mono_trace_set_log_handler parameters to their original specification

7 years ago[io-layer] Replace remaining pthread_cond_t by mono_cond_t
Ludovic Henry [Fri, 24 Jun 2016 13:46:15 +0000 (15:46 +0200)]
[io-layer] Replace remaining pthread_cond_t by mono_cond_t

7 years ago[io-layer] Fix potential buffer overrun
Ludovic Henry [Fri, 24 Jun 2016 13:43:17 +0000 (15:43 +0200)]
[io-layer] Fix potential buffer overrun

7 years ago[io-layer] Remove _wapi_shared_layout
Ludovic Henry [Fri, 24 Jun 2016 13:30:47 +0000 (15:30 +0200)]
[io-layer] Remove _wapi_shared_layout

This effectively remove any remaining code regarding the cross-process sharing of certain io-layer facilities.

7 years ago[System.IO.Compression] Fixed stream writes when Zip archive is opened in Update...
João Matos [Fri, 24 Jun 2016 00:12:33 +0000 (01:12 +0100)]
[System.IO.Compression] Fixed stream writes when Zip archive is opened in Update mode.

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

Also helps with https://github.com/OfficeDev/Open-XML-SDK/issues/64.

7 years agoMerge pull request #3207 from ntherning/fix_broken_libmonosgen_dll_on_cygwin
Alexander Köplinger [Thu, 23 Jun 2016 22:37:04 +0000 (00:37 +0200)]
Merge pull request #3207 from ntherning/fix_broken_libmonosgen_dll_on_cygwin

Fix broken libmonosgen-2.0.dll on Cygwin due to -ggdb3 flag in CFLAGS

7 years ago[io-layer] Merge _WapiHandleShared type into _WapiHandleUnshared
Ludovic Henry [Thu, 23 Jun 2016 11:36:06 +0000 (13:36 +0200)]
[io-layer] Merge _WapiHandleShared type into _WapiHandleUnshared

7 years ago[io-layer] Make shared and unshared handle have the same fields
Ludovic Henry [Thu, 23 Jun 2016 11:27:17 +0000 (13:27 +0200)]
[io-layer] Make shared and unshared handle have the same fields

7 years ago[io-layer] Remove mutex and namedmutex pid field
Ludovic Henry [Thu, 23 Jun 2016 11:25:32 +0000 (13:25 +0200)]
[io-layer] Remove mutex and namedmutex pid field

We do not support shared process handles anymore, so the pid is always going to be the same

7 years ago[io-layer] Remove _wapi_handle_timedwait_signal
Ludovic Henry [Thu, 23 Jun 2016 10:03:32 +0000 (12:03 +0200)]
[io-layer] Remove _wapi_handle_timedwait_signal

7 years agoDon't pass -ggdb3 in CFLAGS on Windows builds as it somehow corrupts the
Niklas Therning [Thu, 23 Jun 2016 12:27:01 +0000 (14:27 +0200)]
Don't pass -ggdb3 in CFLAGS on Windows builds as it somehow corrupts the
libmonosgen-2.0.dll and breaks the build of monograph.exe which links against
it.

Also adds -O2 to CFLAGS on all platforms to align with how releases are built.

7 years agomake monodis exit with value 1 on an error
dlahoti [Thu, 23 Jun 2016 04:24:25 +0000 (23:24 -0500)]
make monodis exit with value 1 on an error

This should make it easier to programmatically check for errors, since it will remove the need to test the output string, which is an unreliable way of doing things.

7 years ago[runtime] Bump corlib version for recent Thread layout changes
Vlad Brezae [Wed, 22 Jun 2016 14:43:31 +0000 (17:43 +0300)]
[runtime] Bump corlib version for recent Thread layout changes

7 years agoMerge pull request #3197 from BrzVlad/fix-thread-layout
Alexander Köplinger [Wed, 22 Jun 2016 22:35:18 +0000 (00:35 +0200)]
Merge pull request #3197 from BrzVlad/fix-thread-layout

[sgen] Fix Thread layout after changes in #3123

7 years agoDon't run the ping test on certain Android devices
Marek Habersack [Wed, 22 Jun 2016 12:42:51 +0000 (14:42 +0200)]
Don't run the ping test on certain Android devices

As described in https://bugzilla.xamarin.com/show_bug.cgi?id=34883 at
least Samsung SG3 doesn't allow access to the local network
interface (in fact, even ifconfig doesn't work on the device). Therefore
the test needs to be disabled on those devices. This is the first part
of the fix, the second one will be implemented in Xamarin.Android test
suite which will provide the AndroidShouldPingWork method which will
check the device id against list of those that do not work for this
test.

Part #1 of fix for https://bugzilla.xamarin.com/show_bug.cgi?id=34883

7 years ago[sgen] Fix Thread layout after changes in #3123
Vlad Brezae [Wed, 22 Jun 2016 09:17:22 +0000 (12:17 +0300)]
[sgen] Fix Thread layout after changes in #3123

7 years agoMerge pull request #3195 from tritao/zip_stream_getters
João Matos [Tue, 21 Jun 2016 23:52:27 +0000 (00:52 +0100)]
Merge pull request #3195 from tritao/zip_stream_getters

[System.IO.Compression] Fixed stream length/position getters for ZIP entries

7 years ago[System.IO.Compression] Fixed stream length/position getters for ZIP entries.
João Matos [Tue, 21 Jun 2016 22:59:03 +0000 (23:59 +0100)]
[System.IO.Compression] Fixed stream length/position getters for ZIP entries.

Partial fix for https://bugzilla.xamarin.com/show_bug.cgi?id=39282.

Partial fix for https://github.com/OfficeDev/Open-XML-SDK/issues/64.

7 years ago[System] Overwrite Console encoding to match mcs text output for CodeDOM compiler...
Marek Safar [Tue, 21 Jun 2016 17:44:05 +0000 (19:44 +0200)]
[System] Overwrite Console encoding to match mcs text output for CodeDOM compiler. Fixes #41979

7 years agoMerge pull request #3188 from akoeplinger/mozroots-fix
Alexander Köplinger [Tue, 21 Jun 2016 15:15:57 +0000 (17:15 +0200)]
Merge pull request #3188 from akoeplinger/mozroots-fix

[tools] Fix mozroots URL for Mozilla's certdata.txt and add deprecation warning

7 years ago[tools] Fix mozroots URL for Mozilla's certdata.txt and add deprecation warning
Alexander Köplinger [Mon, 20 Jun 2016 14:49:35 +0000 (16:49 +0200)]
[tools] Fix mozroots URL for Mozilla's certdata.txt and add deprecation warning

MXR is not coming back (see https://bugzilla.mozilla.org/show_bug.cgi?id=1279952 and https://github.com/SuaveIO/mono-script-buildpack/issues/9#issuecomment-226749314)
and this broke everyone who still relied on mozroots. Fix by using the version from the hg repository instead.

Starting from Mono 3.12 we've been shipping cert-sync to import CA certificates from the local computer trust store to Mono's trust store,
we strongly encourage everyone to move to that instead. Added a deprecation warning to mozroots to further strengthen this message.

Note that when fetching the CA list over the new https URL we need to skip cert validation errors, as the common use case for mozroots is when
no certs are present on the system (bootstrapping). This enables MITM but we don't really have any other options. Another reason why cert-sync is superior.

7 years ago[System] Update IPInterfaceProperties initialization on windows. Fixes #41897
Marek Safar [Tue, 21 Jun 2016 13:50:02 +0000 (15:50 +0200)]
[System] Update IPInterfaceProperties initialization on windows. Fixes #41897

7 years ago[corlib] Add range check for minimal date in dst calculation. Fixes #41667
Marek Safar [Tue, 21 Jun 2016 13:15:12 +0000 (15:15 +0200)]
[corlib] Add range check for minimal date in dst calculation. Fixes #41667

7 years agoUse thread priority at thread start time (#3123)
Neale Ferguson [Mon, 20 Jun 2016 14:26:51 +0000 (10:26 -0400)]
Use thread priority at thread start time (#3123)

* An enhancement to the thread priority work added earlier. This will support starting a thread with a specified priority. Currently, the thread will start with the priority of the creator. The semantics of threads allow you to specify the priority of a thread before it has started. Therefore, we take note of this value at thread creation time.

* Missed committing this file the first time

* Correct typo

* Fix creation_flags reference

* MonoThreadParm really should not be in objects-internal

* Place priority in MonoInternalThread where it can be accessed by GetThreadPriority(). This enablses the priority to be set/retrieved before the thread is started. It also ensures that new threads default to a priority of THREAD_PRIORITY_NORMAL rather than inheriting the parent thread's priority.

* Revert changes to MonoInternalThread/Thread.cs. Properly use the handle for thread lookup. Initialize priority at thread creation time. Use stored value of priority if thread has not been started.

* Add code to handle retrieving the thread priority from a started thread that had been set before thread had started. This is necessary as before the thread is started the priority value can be manipulated. This value is stored in the MonoThread structure. Before the thread is started the value can be interrogated so we return this value rather than invoking the GetThreadPriority() API. When a thread is started this value is used to set the threads priority (if scheduling policy is SCHED_FIFO or SCHED_RR). For POSIX threads, after the thread is started we now keep the priority in the _Wapi_thread structure which is located via the thread handle. This structure doesn't exist until after the thread is started so we can't store the value there but after we can cache the priority value there and return it for non-SCHED_[RR|FIFO] threads. This way the expected value will always be set and returned by ThreadPriority property (currently for these threads it will simply return Normal). A test case has been added to the mono/tests directory.

* Use a copy of creation_flags so local modifications aren't propagated

* Use pthread_setschedparam as OSX doesn't support pthread_setschedprio

7 years ago[reflection] Improves 1a820fcdc09b8f72d12a0973e25db7acc434d0cc to do vslot match...
Marek Safar [Mon, 20 Jun 2016 11:42:02 +0000 (13:42 +0200)]
[reflection] Improves 1a820fcdc09b8f72d12a0973e25db7acc434d0cc to do vslot match as optimization only

7 years agoMerge pull request #3179 from gttds/patch-2
Alexander Köplinger [Mon, 20 Jun 2016 11:33:59 +0000 (13:33 +0200)]
Merge pull request #3179 from gttds/patch-2

[System.Web] Fixes 50 year form authentication

7 years agoMerge pull request #3184 from tritao/zip_datetime
João Matos [Mon, 20 Jun 2016 11:18:12 +0000 (12:18 +0100)]
Merge pull request #3184 from tritao/zip_datetime

[System.IO.Compression] Fixed Zip entries with unset last write time to return the same as .NET.

7 years agoMerge pull request #3183 from marek-safar/bug41874
Marek Safar [Mon, 20 Jun 2016 09:44:42 +0000 (11:44 +0200)]
Merge pull request #3183 from marek-safar/bug41874

[reflection] Properties always use name and signature hidding rules. …

7 years ago[System.Web] Fixes SkinID property declaration
Marek Safar [Mon, 20 Jun 2016 09:33:07 +0000 (11:33 +0200)]
[System.Web] Fixes SkinID property declaration

7 years ago[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947.
Zoltan Varga [Fri, 17 Jun 2016 21:26:47 +0000 (17:26 -0400)]
[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947.

7 years agoRevert "[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947."
Zoltan Varga [Sat, 18 Jun 2016 20:16:43 +0000 (16:16 -0400)]
Revert "[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947."

This reverts commit 4cbef26bb7878187c8bd3a0029e711331e6e4510.

Revert this to see if it fixes the windows build.

7 years ago[runtime] Don't call ExecutionEngine constructor in aot mode (#3185)
Alexander Kyte [Sat, 18 Jun 2016 17:12:15 +0000 (13:12 -0400)]
[runtime] Don't call ExecutionEngine constructor in aot mode (#3185)

7 years ago[aot] Add support for array accessor methods for multi-dimensional arrays. Fixes...
Zoltan Varga [Sat, 18 Jun 2016 00:46:26 +0000 (20:46 -0400)]
[aot] Add support for array accessor methods for multi-dimensional arrays. Fixes #41937.

7 years ago[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947.
Zoltan Varga [Fri, 17 Jun 2016 21:26:47 +0000 (17:26 -0400)]
[llvm] Fix the allocation of vregs for the OP_MIN/MAX opcodes. Fixes #41947.

7 years ago[System.IO.Compression] Fixed Zip entries with unset last write time to return the...
João Matos [Fri, 17 Jun 2016 17:19:19 +0000 (18:19 +0100)]
[System.IO.Compression] Fixed Zip entries with unset last write time to return the same as .NET.

.NET on Windows returns a fixed date for this, replicate the same behaviour in Mono.

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

See also: https://github.com/NuGet/Home/issues/2518

7 years ago[reflection] Properties always use name and signature hidding rules. Fixes #41874
Marek Safar [Fri, 17 Jun 2016 16:44:45 +0000 (18:44 +0200)]
[reflection] Properties always use name and signature hidding rules. Fixes #41874

7 years agoFix for x86 and amd64 continuations (#3182)
Dunati [Fri, 17 Jun 2016 02:15:14 +0000 (19:15 -0700)]
Fix for x86 and amd64 continuations (#3182)

7 years ago[aot] Fix leaking a MonoError.
Zoltan Varga [Thu, 16 Jun 2016 23:07:22 +0000 (19:07 -0400)]
[aot] Fix leaking a MonoError.

7 years ago[aot] Avoid asserting if loading a type fails.
Zoltan Varga [Thu, 16 Jun 2016 23:04:27 +0000 (19:04 -0400)]
[aot] Avoid asserting if loading a type fails.

7 years agoMerge pull request #3163 from alexanderkyte/fast_context_clean
Bernhard Urban [Thu, 16 Jun 2016 18:51:59 +0000 (11:51 -0700)]
Merge pull request #3163 from alexanderkyte/fast_context_clean

[runtime] Store abremoval context statuses seperately to use memset for cleanup

7 years ago[bcl] Remove cosmetic target that always triggers a rebuild (#3180)
Alexander Kyte [Thu, 16 Jun 2016 18:51:31 +0000 (14:51 -0400)]
[bcl] Remove cosmetic target that always triggers a rebuild (#3180)

7 years agoMerge pull request #3175 from marek-safar/cas-cleanup
Marek Safar [Thu, 16 Jun 2016 18:35:13 +0000 (20:35 +0200)]
Merge pull request #3175 from marek-safar/cas-cleanup

[bcl] Make mono cas opt-in features instead of opt-out for mobile pro…

7 years ago[System.Web] Fixes 50 year form authentication
gttds [Thu, 16 Jun 2016 15:46:21 +0000 (23:46 +0800)]
[System.Web] Fixes 50 year form authentication

This fixes the bug where form authentication tickets do not expire until 50 years later.
I bumped into this bug after upgrading mono from 4.2.2 to 4.4.0

Firstly, the authentication ticket's expiry must always equal to the timeout attribute on the <forms/> element. It doesn't matter whether persistent or session cookies are used.

Secondly, if the cookie is persistent, then it's expiry should be set to the same as that of the authentication ticket.

Reference: https://blogs.msdn.microsoft.com/dansellers/2006/02/15/change-to-asp-net-2-0-forms-authentication-persistent-cookies/

7 years ago[System] Put back handling of direct ip addresses to ServicePoint::HostEntry (removed...
Marek Safar [Thu, 16 Jun 2016 15:42:55 +0000 (17:42 +0200)]
[System] Put back handling of direct ip addresses to ServicePoint::HostEntry (removed in 932359f3d627da13408350b1172ceb63c30f6327). Fixes #41782

7 years ago[runtime] Return early so mono_value_box_checked doesn't clobber error (#3172)
Alexander Kyte [Thu, 16 Jun 2016 15:18:19 +0000 (11:18 -0400)]
[runtime] Return early so mono_value_box_checked doesn't clobber error (#3172)

7 years ago[runtime] Store abremoval context statuses seperately to use memset for cleanup
Alexander Kyte [Fri, 10 Jun 2016 18:14:36 +0000 (14:14 -0400)]
[runtime] Store abremoval context statuses seperately to use memset for cleanup

7 years ago[bcl] Make mono cas opt-in features instead of opt-out for mobile profiles
Marek Safar [Thu, 16 Jun 2016 08:16:10 +0000 (10:16 +0200)]
[bcl] Make mono cas opt-in features instead of opt-out for mobile profiles

7 years agoMerge pull request #3176 from lateralusX/jlorenss/win-fix-test-dllimport-path
João Matos [Thu, 16 Jun 2016 11:14:41 +0000 (12:14 +0100)]
Merge pull request #3176 from lateralusX/jlorenss/win-fix-test-dllimport-path

Update to tests config file reflecting changed libtest module location on Windows.

7 years ago[System.IO.Compression] Fixed version needed to extract value in Zip central director...
João Matos [Thu, 16 Jun 2016 11:12:32 +0000 (12:12 +0100)]
[System.IO.Compression] Fixed version needed to extract value in Zip central directory record entry.

This should fix some problem with Nuget archives created by Mono.

No test case for this one because it would involve writing a mini-ZIP file parser to make sure the value is written correctly (or hardcore the value offset in the generated file, which could lead to a very flakey test).

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

7 years agoUpdate to tests config file reflecting changed libtest module location.
lateralusX [Thu, 16 Jun 2016 11:10:04 +0000 (13:10 +0200)]
Update to tests config file reflecting changed libtest module location.

Updated Visual Studio build uses a different default build location of modules
compared to previous version. The tests config file includes a relative
path to libtest used for by all pinvoke tests. Since the module is now
placed at a different location the load failed during the test.

7 years agoMerge pull request #3174 from alexanderkyte/revert_jay_relative
Alexander Kyte [Wed, 15 Jun 2016 22:30:52 +0000 (18:30 -0400)]
Merge pull request #3174 from alexanderkyte/revert_jay_relative

Revert "[runtime] Fix jay path in Microsoft.Build"

7 years agoRevert "[runtime] Fix jay path in Microsoft.Build"
Alexander Kyte [Wed, 15 Jun 2016 22:29:21 +0000 (18:29 -0400)]
Revert "[runtime] Fix jay path in Microsoft.Build"

This reverts commit 6780bb169cc3e2fb96b951607a4027416171698b.

7 years ago[llvm] Enable support for Selector.GetHandle (). Enable it for Xamarin.Mac as well.
Zoltan Varga [Wed, 15 Jun 2016 21:54:31 +0000 (17:54 -0400)]
[llvm] Enable support for Selector.GetHandle (). Enable it for Xamarin.Mac as well.

7 years agoMerge pull request #3173 from alexanderkyte/jay_build_path_fix
Alexander Kyte [Wed, 15 Jun 2016 21:47:02 +0000 (17:47 -0400)]
Merge pull request #3173 from alexanderkyte/jay_build_path_fix

[runtime] Fix jay path in Microsoft.Build

7 years ago[runtime] Fix jay path in Microsoft.Build
Alexander Kyte [Wed, 15 Jun 2016 21:15:19 +0000 (17:15 -0400)]
[runtime] Fix jay path in Microsoft.Build

7 years ago[llvm] Add suport for OP_OBJC_GET_SELECTOR, not enabled yet.
Zoltan Varga [Wed, 15 Jun 2016 20:01:25 +0000 (16:01 -0400)]
[llvm] Add suport for OP_OBJC_GET_SELECTOR, not enabled yet.

7 years agoMerge pull request #3169 from lambdageek/fix-regression-70561
monojenkins [Wed, 15 Jun 2016 15:18:42 +0000 (16:18 +0100)]
Merge pull request #3169 from lambdageek/fix-regression-70561

[coop] Fix regression in bug-70561.cs

Match behavior of non-coop and don't set an exit code if the main method
throws an unhandled exception.

7 years agoMerge pull request #3171 from alexanderkyte/net_4x_mdoc_fixup
Alexander Kyte [Wed, 15 Jun 2016 14:25:28 +0000 (10:25 -0400)]
Merge pull request #3171 from alexanderkyte/net_4x_mdoc_fixup

[runtime] Fix inverted build check related to mcs docs

7 years ago[runtime] Fix inverted build check related to mcs docs
Alexander Kyte [Wed, 15 Jun 2016 14:22:50 +0000 (10:22 -0400)]
[runtime] Fix inverted build check related to mcs docs

7 years agoMerge pull request #2972 from lateralusX/jlorenss/vs2015-upgrade
João Matos [Wed, 15 Jun 2016 09:56:04 +0000 (10:56 +0100)]
Merge pull request #2972 from lateralusX/jlorenss/vs2015-upgrade

Visual Studio project/solution upgrade and enhancement.

7 years agoFix pedump build errors due to moved source file.
lateralusX [Wed, 15 Jun 2016 09:08:16 +0000 (11:08 +0200)]
Fix pedump build errors due to moved source file.

Changes done in commit 2f6e404ed1a274e942ba0325b55ce610c25a23f2 moving
pedump.c to different location cause build errors of pedump on Windows.

7 years agoReverted back to use target name for library pdb files and default
lateralusX [Wed, 15 Jun 2016 07:26:55 +0000 (09:26 +0200)]
Reverted back to use target name for library pdb files and default
naming for intermediate pdb files for exe/dll's.

All artifacts will now have the same name of their final pdb file as
the library/dll/exe target file name.

The problem with the naming turns out to be a problem in Visual Studio
when a exe/dll use the same name of its intermediate pdb files and final
pdb file. In that case the final pdb file produced by the linker will be
incorrect and not usable by the debugger. This was the reason for the initial
change, giving intermediate pdb files a different name. Moving back to the
default naming for intermediate pdb files for exe/dll's will give the same
effect (a different name) and since libraries are not affected by this
problem, libraries can use the target name for their pdb files as well.

7 years agoAdded new sources to Source Folder filter in libmonoutils.
lateralusX [Tue, 7 Jun 2016 11:46:34 +0000 (13:46 +0200)]
Added new sources to Source Folder filter in libmonoutils.

7 years agoDisable build of boehm GC on Windows x64.
lateralusX [Thu, 2 Jun 2016 14:37:54 +0000 (16:37 +0200)]
Disable build of boehm GC on Windows x64.

7 years agoAdded support to select static or dynamic c-runtime based on user property.
lateralusX [Thu, 2 Jun 2016 10:55:41 +0000 (12:55 +0200)]
Added support to select static or dynamic c-runtime based on user property.
All projects will inherit the RuntimeLibrary from mono.props where it now
can be controlled using a user property, MONO_USE_STATIC_C_RUNTIME.

7 years agoFixed .bat file to handle xcopy command not in path.
lateralusX [Thu, 2 Jun 2016 09:34:15 +0000 (11:34 +0200)]
Fixed .bat file to handle xcopy command not in path.

Also added support to not always replace config.h/version.h since that triggers
unnecessary rebuilds during development. New script will check if there is
an actual difference in the config.h/version.h file before doing the copy.

7 years agoAdded support to split GC builds into different build folders.
lateralusX [Mon, 9 May 2016 14:27:22 +0000 (16:27 +0200)]
Added support to split GC builds into different build folders.

7 years agoAdded files to corresponding filter folders (header files/source files).
lateralusX [Wed, 4 May 2016 13:12:36 +0000 (15:12 +0200)]
Added files to corresponding filter folders (header files/source files).

7 years agoFixes to default build/distribution location.
lateralusX [Wed, 4 May 2016 12:53:29 +0000 (14:53 +0200)]
Fixes to default build/distribution location.

7 years agoAdded additional build dependecies + setting up source availabilty depending on platform.
lateralusX [Wed, 4 May 2016 07:12:45 +0000 (09:12 +0200)]
Added additional build dependecies + setting up source availabilty depending on platform.

7 years agoAdded support for 64 toolchain + default log level masks.
lateralusX [Mon, 25 Apr 2016 14:34:57 +0000 (16:34 +0200)]
Added support for 64 toolchain + default log level masks.

7 years agoAdded regression tests as visual studio projects.
lateralusX [Fri, 15 Apr 2016 12:46:46 +0000 (14:46 +0200)]
Added regression tests as visual studio projects.

* Added regression test running mono/mini --regression [regression_tests]
* Added regression test running mono/mini --aot [regression_tests]
* Added default debugging options to run regression tests from within visual studio debugger.
* On new build system, setting up include folder if not availalble.

All changes applies to debug/release 32/64 bit.

7 years agoAdded missing include path for test projects.
lateralusX [Tue, 12 Apr 2016 16:11:13 +0000 (18:11 +0200)]
Added missing include path for test projects.

On a clean system there was a missing include path for some of the embedded samples.

7 years agoAdded regression test project.
lateralusX [Tue, 12 Apr 2016 12:16:14 +0000 (14:16 +0200)]
Added regression test project.

* Updated vs project files to resolve winsock, winsock2 build dependecies.
* Added vs project running basic mono-mini regression tests.

7 years agoAdded suffix to intermediate build .pdb files in order to avoid potential naming...
lateralusX [Tue, 12 Apr 2016 12:16:01 +0000 (14:16 +0200)]
Added suffix to intermediate build .pdb files in order to avoid potential naming conflicts when linking.

7 years agoAdded support for optional target build suffix.
lateralusX [Tue, 12 Apr 2016 12:15:29 +0000 (14:15 +0200)]
Added support for optional target build suffix.

7 years agoBetter property manager and user macros support.
lateralusX [Tue, 12 Apr 2016 12:14:58 +0000 (14:14 +0200)]
Better property manager and user macros support.

* Added support for user macros in order to set build/install/sgen.
* Added support for more arguments to bat files + support for quoted paths.
* Added support for verbose/quite output in bat files.
* Moved libmono xcopy post build step into separate bat file.
* Cleaned some sgen configs still left in vcxprojs.

7 years agoSeparate build tree and target suffix support.
lateralusX [Tue, 12 Apr 2016 12:14:29 +0000 (14:14 +0200)]
Separate build tree and target suffix support.

* Enabled build target suffix in order to lable a build (primarly for sgen).
* Enabled separate build tree.
* Dropped all sgen configurations, replaced by properties and target suffix.
* Fixed pdb naming of intermediate pdb files.

7 years agoRestructured build/package/install targets and split GC libraries.
lateralusX [Tue, 12 Apr 2016 12:13:03 +0000 (14:13 +0200)]
Restructured build/package/install targets and split GC libraries.

* Added package/install targets.
* Moved sgen into separate library.
* SGEN set as default GC for build (used GC controlled through mono.props).

7 years agoRefactored VS depdencies + restructring VS solution and projects.
lateralusX [Tue, 12 Apr 2016 12:11:36 +0000 (14:11 +0200)]
Refactored VS depdencies + restructring VS solution and projects.

7 years agoUpgrade to vs2015 for native projects.
lateralusX [Tue, 12 Apr 2016 12:10:35 +0000 (14:10 +0200)]
Upgrade to vs2015 for native projects.

* Upgraded all projects to new vs2015 tool chain.
* Used mono.props through property manager instead of import.
* Fixed dependencies to be more explicitly in additional dependecies.
* Fixed error in mono.props, switched $ to % when referencing internal variables.
* Added property variables for includes and libraries, defined in mono.props.

7 years ago[mkbundle] Improve error checking
Miguel de Icaza [Wed, 15 Jun 2016 06:25:23 +0000 (23:25 -0700)]
[mkbundle] Improve error checking

7 years ago[main] replace computed value by a constant
Miguel de Icaza [Wed, 15 Jun 2016 06:24:48 +0000 (23:24 -0700)]
[main] replace computed value by a constant

The reason why mkbundle is not working is that for some reason
this constant expression is producing different code than the
-24 that it is supposed to.

What is odd is that the return value from the lseek system
call is the same, but yet, read fails with an end-of-file with
this value, and otherwise it passes.

With this call:

     lseek (fd, -(16+sizeof(uint64_t)), SEEK_END)

strace displays:

lseek(0x3, 0xFFFFFFE8, 0x2)  = 19375512 0

With this call:

     lseek (fd, -24, SEEK_END)

strace displays:

lseek(0x3, 0xFFFFFFFFFFFFFFE8, 0x2)  = 19375512 0

Now, while both results from lseek are the same, a subsequent read
with 24 bytes to read returns zero on the former case, and 24 on
the latter case.

7 years ago[mcs] Use $(RESGEN) instead of resgen
Alexander Köplinger [Wed, 15 Jun 2016 01:12:02 +0000 (03:12 +0200)]
[mcs] Use $(RESGEN) instead of resgen

It broke the .deb package build

7 years agoMerge pull request #3168 from alexanderkyte/default_4_x_preset
Alexander Köplinger [Tue, 14 Jun 2016 23:16:49 +0000 (01:16 +0200)]
Merge pull request #3168 from alexanderkyte/default_4_x_preset

[runtime] Make the default preset only build net_4_x

7 years ago[coop] Fix regression in bug-70561.cs
Aleksey Kliger [Tue, 14 Jun 2016 23:11:19 +0000 (19:11 -0400)]
[coop] Fix regression in bug-70561.cs

Match behavior of non-coop and don't set an exit code if the main method
throws an unhandled exception.

7 years ago[runtime] Make the default preset only build net_4_x
Alexander Kyte [Tue, 14 Jun 2016 23:00:14 +0000 (19:00 -0400)]
[runtime] Make the default preset only build net_4_x

7 years agoMerge pull request #3089 from alexanderkyte/mobile_static_jenkins_script
Alexander Kyte [Tue, 14 Jun 2016 22:24:26 +0000 (18:24 -0400)]
Merge pull request #3089 from alexanderkyte/mobile_static_jenkins_script

[mobile_static] Update jenkins build script for mobile_static profile

7 years ago[runtime] [runtime] Fix the printing of unhandled exceptions in coop.
Zoltan Varga [Tue, 14 Jun 2016 22:06:54 +0000 (18:06 -0400)]
[runtime] [runtime] Fix the printing of unhandled exceptions in coop.

7 years ago[runtime] Return after setting the error in mono_jit_runtime_invoke (), otherwise...
Zoltan Varga [Tue, 14 Jun 2016 22:06:20 +0000 (18:06 -0400)]
[runtime] Return after setting the error in mono_jit_runtime_invoke (), otherwise mono_value_box_checked () initializes it again.

7 years agoWIP [library.make] Make resource usage declarative in the class libraries (#3159)
Miguel de Icaza [Tue, 14 Jun 2016 20:57:09 +0000 (13:57 -0700)]
WIP [library.make] Make resource usage declarative in the class libraries (#3159)

[library.make] Make resource usage declarative in the class libraries

7 years ago[jit] Set the 'real_offset' field of bblocks in mono_replace_ins (), the EH code...
Zoltan Varga [Tue, 14 Jun 2016 19:36:44 +0000 (15:36 -0400)]
[jit] Set the 'real_offset' field of bblocks in mono_replace_ins (), the EH code generator in llvm depends on it being set.

7 years agoMerge pull request #3165 from akoeplinger/fix-clock-monotonic-macos1012
Alexander Köplinger [Tue, 14 Jun 2016 17:08:11 +0000 (19:08 +0200)]
Merge pull request #3165 from akoeplinger/fix-clock-monotonic-macos1012

[utils] Work around CLOCK_MONOTONIC being defined on macOS 10.12 SDK despite targeting earlier releases

7 years ago[mcs] Support System.Object forwarded to any assembly in any references order
Marek Safar [Tue, 14 Jun 2016 17:02:52 +0000 (19:02 +0200)]
[mcs] Support System.Object forwarded to any assembly in any references order

7 years ago[utils] Work around CLOCK_MONOTONIC being defined on macOS 10.12 SDK despite targetin...
Alexander Köplinger [Tue, 14 Jun 2016 14:39:41 +0000 (16:39 +0200)]
[utils] Work around CLOCK_MONOTONIC being defined on macOS 10.12 SDK despite targeting earlier releases

Should fix https://bugzilla.xamarin.com/show_bug.cgi?id=41786

7 years agoMerge pull request #3162 from alexanderkyte/ignore_pkits
Alexander Kyte [Mon, 13 Jun 2016 20:06:28 +0000 (16:06 -0400)]
Merge pull request #3162 from alexanderkyte/ignore_pkits

[mobile_static] Skip PKITS tests on mobile_static due to missing