Compare commits

...
Author SHA1 Message Date
Alex Rønne Petersen ff9d2c4ffc [runtime] Fix profiler reporting of object allocations.
Previously, not all allocations would be reported. For example, when using
managed allocators, we would go through mono_gc_alloc_obj () and friends which
did not call mono_profiler_allocation (). There were also some functions in
object.c which did not call it.

For SGen, we now report allocations in the client code, which is where all
object allocations ultimately end up going whether or not we're using managed
allocators. For Boehm, we call mono_profiler_allocation () in the object.c
macros. (This is not pretty, but will go away when Boehm does.)

Conflicts:

	mono/metadata/profiler-private.h
	mono/metadata/sgen-mono.c
2015-05-02 01:35:55 +02:00
Sebastien Pouliot 5a0b19f1a1 [linker] Mark SecurityDeclarations [#28918]
Security declarations looks very similar to custom attributes - but
they are not (e.g. a different metadata table).

They need to be marked, just like other metadata, by the linker because
they can encode types that won't show up in the type (or assembly)
references.

Ignoring this can create an invalid binary (the kind that even Cecil
can't load back for further processing).
2015-05-01 13:45:09 +02:00
Zoltan Varga ed6b20ecc8 [jit] Increase some trampoline sizes. 2015-04-29 17:24:05 -04:00
Alex Rønne Petersen f5bd8428e3 [utils] Fix yet more visibility issues. 2015-04-29 18:03:55 +02:00
Alex Rønne Petersen 72e497f232 [mini] Fix visibility of mono_aot_get_method (). 2015-04-29 18:03:55 +02:00
Rolf Bjarne Kvinge 77adc2a461 [runtime] Don't call mach_port_deallocate on tasks we don't own.
Fixes random/strange hangs/crashes (many native API starts returning
out-of-memory errors when there is plenty of memory available, other
just hang inexplicably) when profiling.
2015-04-29 16:53:28 +01:00
Ludovic Henry d5acd37572 [runtime] Fix call to task_for_pid in proclib utils
task_for_pid requires special privileges on osx 10.5+ and ios, so it's better to avoid calling it.
2015-04-29 16:53:19 +01:00
João Matos e5678fa983 [aot] Improve error checking when setting up class vtable.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=28816.
2015-04-29 16:35:11 +01:00
Zoltan Varga 9476d562d9 [jit] Use the same dwarf<->hw register mapping on x86 for both LLVM and jitted code, the one used by LLVM is the official version.
Cherry-pick of https://github.com/mono/mono/commit/2cab68d28c574320f6927b6677b4e3ea213b2e20.
2015-04-29 16:22:10 +01:00
Alex Rønne Petersen c110da5dc6 [mini] Expose mono_aot_get_method () as an API-unstable function.
This will be used by the profiler.
2015-04-29 16:34:19 +02:00
Alex Rønne Petersen 44ba74f134 [mini] Expose an API-unstable mono_get_jit_info_from_method () function.
This will be used by the profiler.

Conflicts:

	mono/mini/mini-runtime.c
2015-04-29 16:34:04 +02:00
Alex Rønne Petersen 0424c0e425 [profiler] Disable perf events by default.
As it turns out, `perf` support crashes/hangs on a lot of Linux
kernels in the wild, and produces no output on some Android devices.
So, given that using a signal + helper thread is more reliable, use
it by default and make `perf` support optional.

The configure flag is now `--enable-perf-events`.
2015-04-29 10:45:01 +02:00
Alex Rønne Petersen 145bf1a485 [profiler] Avoid a slow path in mono_jit_info_table_find (). 2015-04-29 10:44:56 +02:00
Alex Rønne Petersen 5b658b5c72 [profiler] Really fix looking up JIT info for AOT'd methods.
mono_aot_get_method () will not necessarily put methods into the
MonoDomain::jit_code_hash table. But it does return an IP that we
can use to look up the JIT info with mono_jit_info_table_find ().
2015-04-29 10:44:48 +02:00
Alex Rønne Petersen f81d1dba42 [profiler] Fix finding methods in other domains than the current one.
In certain cross-domain scenarios, the method we're executing
is not necessarily emitted in the current domain. So we need
to scan all domains for it.
2015-04-29 10:44:39 +02:00
Alex Rønne Petersen e01c79dffd [profiler] Redesign buffer flushing and method reporting.
The main goal of this change is to ensure that all methods have a `TYPE_JIT`
event emitted in the stream before they are referenced in other events. Before
this change, `TYPE_JIT` events could arrive out of order or not be emitted at
all because of generic sharing.

We now use a separate thread for writing log buffers to the output file.
Whenever a method is referenced in a TLS log buffer, we add it to a TLS list of
methods. When we ship the TLS log buffer off to the writer thread, we also send
the TLS list of methods. The writer thread first goes over all the methods and,
if some of them haven't had a `TYPE_JIT` event emitted yet, emits them to a
temporary buffer which is flushed just before flushing the main log buffer.

This approach ensures that `TYPE_JIT` events will *always* come before the
events that reference them.

Bookkeeping of which methods have been emitted to the output stream is done in
a global, concurrent hash table. Before a thread adds a method to its TLS list
of methods, it checks if the method is in the hash table. If it is, we know
that the method has already been emitted to the output stream, so it isn't
added to the list. The writer thread is the only thread that updates the hash
table (which happens when it flushes the temporary method buffer). So,
eventually, all TLS method lists will end up being empty because all methods
have been emitted to the output stream.
2015-04-29 10:44:31 +02:00
Zoltan Varga 373d684397 Fix the mobile build. 2015-04-28 15:58:47 -04:00
Zoltan Varga 735f5b3ee8 [runtime] Fix the non-msvc build. 2015-04-27 16:08:47 -04:00
Zoltan Varga feb16e4022 [jit] Disable deadce in the liveness2 pass as well when compiling for sdb. Fixes #28847. 2015-04-27 15:20:01 -04:00
Alex Rønne Petersen 436c5d2e57 [mini] Fix intrinsic signature checks to take into account the 'this' parameter. 2015-04-27 15:11:40 -04:00
Zoltan Varga d0620f1ab5 [runtime] Fix freeing invalid memory in CreateProcess () if the executable was not found. Fixes #28209. 2015-04-27 15:00:45 -04:00
Alexis Christoforides 3a6e855647 [DataContractJsonSerializer] Allow abstract base classes in lists. Fixes #26998
Abstract classes can still have subclasses with KnownType attributes, which are allowed in deserialization.

This used to work as the '__type' hint  was always honored no matter the type, and broke with https://github.com/mono/mono/commit/71e152accc727089faffa6b4fd6bf58cb62636cf which removed that behavior.
2015-04-27 12:17:31 -04:00
Marek Safar 5521f11004 [corlib] First specific culture returned by enumerator was not fully initialized. Fixes #29039 2015-04-27 16:43:41 +02:00
Marek Safar 1513f8f827 Merge pull request #1727 from esdrubal/mono-4.0.0-branch
[System.Xml] Fixed DateTime parsing of Xml strings
2015-04-27 16:35:26 +02:00
Miguel de Icaza 7975f5090d Update version 2015-04-26 09:00:31 -04:00
Marek Safar 1aa57ef746 [corlib] Add DefaultDllImportSearchPathsAttribute 2015-04-25 08:53:19 -04:00
Alexis Christoforides fd35b80bef Bump to bring in xamarin/bockbuild@257a1a8920 2015-04-22 15:20:53 -04:00
Marcos Henrich 71385a445f [System.Xml] Fixed DateTime parsing of Xml strings
System.Xml was failing to parse DateTime serializations such as
"2000-02-29T23:59:59+13:60".
This is caused by using .NET DateTime and still having the old
System.Xml in branch 4.0
This logic is implemented in .NET by XsdDateTime.
Added fallbacks to .NET XsdDateTime (renamed to XsdDateTime2) when our
parser fails.

The fix is specific to mono 4.0. As in mono master we are already using
.NET System.Xml.
2015-04-22 13:27:32 +01:00
Alexis Christoforides c8db1b0fbc Bump to bring in xamarin/bockbuild@42570d260b 2015-04-16 12:52:12 -04:00
Rodrigo Kumpera d136b7923f Commit marker for the gtk rendering fix. 2015-04-13 11:42:16 -04:00
João Matos ba35e6882f Merge pull request #1697 from directhex/mono-4.0.0-branch
[RPM] Fix MONO_PATH in RPM dependency generators
2015-04-09 13:22:29 +01:00
Jo Shields 0dfb848cde [RPM] Fix MONO_PATH in RPM dependency generators
Otherwise, RPMs don't have any dependency information
2015-04-09 13:19:15 +01:00
Zoltan Varga f42a83b1b4 [runtime] Allocate more space to thunks in dynamic methods. Fixes #28747. 2015-04-07 17:15:21 -04:00
Alexander Köplinger 38e08858e6 Fix incorrectly resolved merge conflict
aot-compiler was incorrectly removed from net_4_5_SUBDIRS in ccc2e36bc5, it should still be there in mono-4.0.0-branch (it was moved to  net_4_5_PARALLEL_SUBDIRS in 3ceb869495 later on).
2015-04-07 14:36:12 +02:00
Alexander Köplinger ccc2e36bc5 Integrate binary reference assemblies for v2.0/3.5 into the build system
Rename the net_4_0 profile which is already only used to trigger copying of reference assemblies
to binary_reference_assemblies and include the 2.0/3.5 files there. This should make it easier
to add more profiles in the future and doesn't clutter the build system as much as making separate
net_2_0 and net_3_5 profiles that do the same.

Conflicts:
	mcs/class/Makefile
2015-04-06 18:27:27 -04:00
Rodrigo Kumpera fe1279932f Update the reference assemblies we ship in mono. 2015-04-06 12:52:37 -04:00
Marcos Henrich 9236ac41e9 [corlib] TimeZoneInfo.TryAddTicks is now private. 2015-04-04 15:22:07 +01:00
Marek Safar 4639c99a48 [mcs] Mutate nested storey initialization only when needed. Fixes #28211 2015-04-03 15:55:07 +02:00
Marcos Henrich 7fc9ff987a [corlib] Refactored TimeZoneInfo DateTime overflow checks.
Added more overflow checks.
Fixed some overflow checks.
2015-04-03 10:27:53 +01:00
Marcos Henrich 989c0ff6aa [corlib] Fixed ParseTZBuffer with DST periods longer than a year.
AdjustmentRule specifies a DST period that starts and ends within a year.
When we have a DST period longer than a year, the generated AdjustmentRule may not be usable.
Thus we fallback to the transitions.
Fixes #24086.
2015-04-03 10:27:52 +01:00
Marcos Henrich 4420113b52 [corlib] Removed referencesource duplicated code. 2015-04-03 10:27:51 +01:00
Marcos Henrich f7c051a73c [corlib] Renamed GetUtcOffset to GetUtcOffsetHelper.
The new name is to avoid using the helper method instead of GetUtcOffset.
2015-04-03 10:27:50 +01:00
Marcos Henrich c555aee959 [corlib] Changed TimeZoneInfo methods to use GetUtcOffset.
In some cases rules are not available so we use GetUtcOffset instead of GetApplicableRule.
2015-04-03 10:27:48 +01:00
Sebastien Pouliot f26999f403 [linker] Ensure updated Scope for exported types (e.g. unlinked PCL facade assemblies in a Nuget) [#28617] 2015-04-02 16:46:11 -04:00
Sebastien Pouliot 125e4f4705 [tools] Fix mono-cil-strip to return non-zero on failure [#28617] 2015-04-02 16:46:01 -04:00
Marek Safar 8d291f789a [mcs] Handle null operator inside parenthesis expression. Fixes #28172 2015-04-02 15:24:33 +02:00
Zoltan Varga f70e175f52 Fix the build. 2015-04-01 10:53:48 -04:00
Zoltan Varga cd906692af Revert "Fix the build."
This reverts commit 21d849bd5b.

Revert this as it picked up unrelated changes.
2015-04-01 10:52:35 -04:00
Marek Safar 1830c45f5e [system.net.http] Use correct separator for headers tostring 2015-04-01 10:01:47 +02:00
Sebastien Pouliot 3a1c4b6e41 [tests] ManualResetEventSlim.SpinCount depends on the number of CPU/cores and we can't assume everything as multiple CPU/cores [#28611] 2015-03-31 21:30:48 -04:00
Zoltan Varga bce084ad29 [runtime] Add more caches to mono_marshal_get_native_wrapper () to avoid mixing wrappers with/without exception checks. 2015-03-31 18:33:13 -04:00
Zoltan Varga 21d849bd5b Fix the build. 2015-03-27 12:14:31 -04:00
Zoltan Varga ce30aaaa01 [runtime] Synchronize the overflow checks between mono_string_new_size () and mono_gc_alloc_string (). 2015-03-27 06:38:14 -04:00
Zoltan Varga 5c1a143121 [jit] Avoid emitting seq points in inlined methods. 2015-03-27 06:37:55 -04:00
Marek Safar f99b5b2825 [mcs] Reset flowanalysis finally scope per parameters block. Fixes #28196 2015-03-27 07:36:34 +01:00
Zoltan Varga ce674ebde7 [io-layer] Fix the freeing of MonoProcess structures. Fixes #28209. 2015-03-26 20:50:36 -04:00
Marek Safar 87c62a19b2 [system.net.http] Parse range values using long range. Fixes #26109 2015-03-26 23:47:04 +01:00
Marek Safar d2a79f98fb [mcs] The left-hand side of an assignment cannot contain a null propagating operator. Fixes #28435 2015-03-26 22:52:38 +01:00
Vincent Povirk 051999d6f0 Rename decimal functions to not conflict with win32 versions. 2015-03-26 21:01:45 +01:00
Martin Baulig 4e6e2a89fe [System]: Fix the AllowWriteStreamBuffering check. Bugs #26640 and #26936.
Added new tests for this to the web-tests:
https://github.com/xamarin/web-tests/commit/e7b5ac42897e629e9e4107cf6f9ae9e0a9fef45a

and re-enabled this one, which regressed:
https://github.com/xamarin/web-tests/commit/046da02c631c8799c7ab5025cd3b685f4a3e66f6

(cherry picked from commit 6808e6a5e6)
2015-03-26 16:13:39 +01:00
Marek Safar 291931ebea [mcs] Report abstract member hiding only for members which one can override. Fixes #28213 2015-03-26 10:06:52 +01:00
Marek Safar 57df2b7bc3 [mcs] Resize identifier buffer in all cases. Fixes #28292 2015-03-25 17:19:04 +01:00
Marek Safar 4fb3a99b5f [mcs] Fix parsing of interpolated strings inside conditional expression. Fixes #28293 2015-03-25 16:37:22 +01:00
Marek Safar b4eb72ca7d [mcs] Allow built-in types to have partial declaration 2015-03-25 15:13:25 +01:00
Zoltan Varga c61bcc925d [runtime] Avoid returning null from Marshal.AllocCoTaskMem () if size is 0. Fixes #28383. 2015-03-25 01:31:33 -04:00
Alex Rønne Petersen b4d6290008 [profiler] Make perf syscall work on ARM64. 2015-03-25 02:43:34 +01:00
Alex Rønne Petersen 9e5820094b [profiler] Clean up some unused declarations. 2015-03-25 02:43:29 +01:00
Alex Rønne Petersen 86ee34858d [profiler] Don't build the profiler on Windows. 2015-03-25 02:43:17 +01:00
Alex Rønne Petersen b0a10b2f73 [configure] Add a --disable-perf-events flag to disable perf on Linux. 2015-03-25 02:43:07 +01:00
Alex Soto 84a1764a57 [MonoDataSqlite] Add test for Xamarin.iOS specific bug 27864
src: https://bugzilla.xamarin.com/show_bug.cgi?id=27864

As of iOS 8.2 Apple updated Sqlite and broke queries that used to work
pre iOS 8.2 like the select command in this test, The pruppose of this
test is to know when apple fixes this. Expected test behaivour is as follows.

* If iOS 8.2+ Test will pass as long as apple does not fix the bug
* If iOS < 8.2 Test will pass as it does work as expected
* If iOS 8.2+ and apple fixed bug 27864 test will fail and we will need to
  remove the fail check on lines 105 and 106
2015-03-24 17:34:19 -06:00
Zoltan Varga a0a93c4263 Revert "[io-layer] Fix the freeing of MonoProcess structures. Fixes #28209."
This reverts commit 9e351577c2.

Revert this until it is fixed.
2015-03-24 17:35:54 -04:00
Zoltan Varga e25c686499 Revert "[runtime] Fix an uninitialized memory error added by eaf200b37bd8ba29d59fc7054f8409e9b76b5697."
This reverts commit 2335cca8fd.

Revert this until it is fixed.
2015-03-24 17:35:40 -04:00
Zoltan Varga d2f18038ba Revert "[runtime] Fix another regression caused by eaf200b37bd8ba29d59fc7054f8409e9b76b5697."
This reverts commit 5c55cf4b06.

Revert this until it is fixed.
2015-03-24 17:35:20 -04:00
Zoltan Varga 5c55cf4b06 [runtime] Fix another regression caused by eaf200b37b. 2015-03-24 16:51:53 -04:00
Marcos Henrich ec5f493016 [System] Fixed RemoveConnectionGroup concurrent issue.
CloseConnectionGroup can concurrently call RemoveConnectionGroup and remove a group that has added to removeList.
We now check that the group still exists before removing it.
Fixes #19823.
2015-03-24 19:19:09 +00:00
Zoltan Varga 2335cca8fd [runtime] Fix an uninitialized memory error added by eaf200b37b. 2015-03-24 14:56:31 -04:00
Zoltan Varga 9e351577c2 [io-layer] Fix the freeing of MonoProcess structures. Fixes #28209. 2015-03-24 12:37:01 -04:00
Sebastien Pouliot b7bcd23071 [tests] Tweak MemoryMappedFile test case that fails on iOS/ARM64 [#27667]
Filled with Apple. From bug report:

The problem appears to be caused by a bug in mmap on the arm64 ios.

In this test, we request a page and mmap returns successfully, but when trying
to access the mapped memory, the program crashes after the 4097th byte, meaning
that it only maps us 4kb(???). It should be mentioned that on arm64 ios the
page size is 16kb.
2015-03-24 10:47:32 -04:00
Sebastien Pouliot 798a777153 Revert "Fix mmap past file end on arm64 ios."
This reverts commit 70f5971e04.
2015-03-24 10:17:08 -04:00
Alex Rønne Petersen c52336f439 [arm] Also fix OP_ATOMIC_STORE_R4. 2015-03-24 04:26:04 +01:00
Sebastien Pouliot e3dc17469e [tests] Tweak DateTime.AddMillisecondsOutOfRangeException* tests to work on ARM [#28311] 2015-03-23 18:09:14 -04:00
Marek Safar 26d10e6572 Bump reference sources for bug #28331 2015-03-23 20:12:40 +01:00
Zoltan Varga 89a9c7646e [arm] Fix OP_ATOMIC_LOAD_R4. 2015-03-23 14:25:45 -04:00
Sebastien Pouliot b1c6715167 [tests] Some of the new decimal tests (ported from MS tests) do not work on every culture, this set one that works for them 2015-03-20 15:26:39 -04:00
Zoltan Varga f1258f8548 [runtime] Disable the locking of archives in libtool, it was a workaround around an old darwin bug which got fixed years ago: http://lists.gnu.org/archive/html/bug-libtool/2009-05/msg00062.html. 2015-03-20 00:18:06 -04:00
Zoltan Varga a4372a69fb [aot] Fix support for direct icalls in llvm mode. 2015-03-19 23:26:41 -04:00
Zoltan Varga d474800f1a [jit] Use unique castclass caches in all cases. Fixes #27787. 2015-03-19 22:46:25 -04:00
Zoltan Varga a59c479a68 [runtime] Fix the isinst_with_cache wrapper on 64 bit platforms. 2015-03-19 22:46:17 -04:00
Zoltan Varga ce8f657da1 [io-layer] Avoid closing std file descriptors on shutdown. Fixes #28098. 2015-03-19 17:36:36 -04:00
Zoltan Varga 1605a60754 Fix the build. 2015-03-17 17:44:06 -04:00
Zoltan Varga 67a5a11bd3 [jit] Avoid disabling direct calls to icalls on arm64+llvm. 2015-03-17 17:38:51 -04:00
Zoltan Varga 00232c8704 [jit] Add exception checks after direct calls to icalls by inlining the wrapper. 2015-03-17 17:38:22 -04:00
Zoltan Varga 44a0663032 [jit] Disable direct icalls for now to fix the build. 2015-03-17 17:38:12 -04:00
Zoltan Varga 93cae9f52b [jit] Add support for directly calling normal icalls. Enable it for a few perf-sensitive classes like Math. 2015-03-17 17:37:31 -04:00
Zoltan Varga 0078c40250 [aot] Enable direct calls to icalls in aot mode, disable them when the 'direct-calls' aot option is used. 2015-03-17 17:33:41 -04:00
Zoltan Varga 18d408f00d [jit] Disable direct calls to icalls when using llvm, llvm can't handle direct calls to 64 bit addresses (tests/jit-float.exe fails). 2015-03-17 17:28:54 -04:00
Zoltan Varga 9578437645 [jit] Make the opcode emulation jit icalls callable without a wrapper in some cases. 2015-03-17 17:26:18 -04:00
Zoltan Varga df3eb65bb7 [runtime] Use mono_set_pending_exception () in some places in icalls. Avoid using it for throwing exceptions returned by mono_thread_execute_interruption (), since that seems to cause problems. 2015-03-17 17:25:15 -04:00
Zoltan Varga 82b07416d5 [runtime] Mark mono_set_pending_exception () as a cold function, so calling code is generated out-of-line. 2015-03-17 17:25:02 -04:00
Zoltan Varga 886b00dc1c [jit] Use mono_set_pending_exception () instead of throwing exceptions in JIT icalls. 2015-03-17 17:24:56 -04:00
Zoltan Varga 990c40cd4e [jit] Make mono_thread_interruption_checkpoint () return the exception which needs to be thrown and throw it from the managed method/wrapper which called it. 2015-03-17 17:24:27 -04:00
Vlad Brezae 1b875c9b15 [x86] Handle stack pop done by native stdcalls.
The problem was caused with the introduction of the pushless backend. We have to compensate for the arguments being popped by native stdcall callees, to keep param_area from shrinking. Fixes #27597
2015-03-17 04:53:59 -04:00
Zoltan Varga e4c026208c [io-layer] Avoid the usage of atexit (), clean up handles normally. 2015-03-16 16:26:37 -04:00
Marcos Henrich 52ddcb28c3 [runtime] Fixed Process.GetProcesses ().
Process.GetProcesses () was not returning any processes.
2015-03-16 12:56:00 +00:00
Zoltan Varga 565c18bf2f Fix the build. 2015-03-14 15:13:08 -04:00
Zoltan Varga c961e6ed4b Fix the aot compiler. 2015-03-14 05:02:19 -04:00
João Matos d5b9350783 [aot] Wrap the commands we pass to Windows's system() in double quotes.
We need an extra set of quotes around the whole command to properly handle commands
with spaces since internally the command is called through "cmd /c.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=27899.
2015-03-13 17:15:12 +00:00
João Matos 3f23cdd9a5 [aot] Escape the command executables with quotes to deal properly with spaces in paths. 2015-03-13 17:15:10 +00:00
João Matos b4921c741c [aot] Ensure the LLVM tools path ends with a directory separator appropriate to the system. 2015-03-13 17:15:08 +00:00
Rolf Bjarne Kvinge eee6839126 [mono-api-html] Render generic parameter constraints.
Makes changed constraints show up in diffs.
2015-03-13 16:44:20 +01:00
Zoltan Varga 3b18a06f63 [jit] Throw the proper exception on integer overflow from div/rem if MONO_ARCH_NEED_DIV_CHECK is defined. 2015-03-12 18:28:04 -04:00
João Matos 08678f18e7 [eglib] Fixed file being created without read/write permission on Windows.
This bug manifested itself as files being written to disk with 0 bytes.

Fixes the AOT compiler on Windows not working properly.

https://bugzilla.xamarin.com/show_bug.cgi?id=27900
2015-03-12 16:41:37 +00:00
Marcos Henrich d51afc4c5b [corlib] TimeZoneInfo.TryGetTransitionOffset overflow checks. 2015-03-12 13:23:03 +00:00
Marcos Henrich bc7b4e330a [corlib] Fixed DateTime overflow check in TimeZoneInfo. 2015-03-12 12:46:17 +00:00
Zoltan Varga 9f0f929a97 [jit] Enable the gsharedvt testcase which now works. 2015-03-11 18:48:39 -04:00
Rodrigo Kumpera 165a47d044 Merge pull request #1625 from BrzVlad/fix-ios-mmap
Fix mmap past file end on arm64 ios.
2015-03-11 17:14:55 -05:00
Vlad Brezae 70f5971e04 Fix mmap past file end on arm64 ios.
On arm64, where page size is 16k, if trying to map after the file end mmap doesn't map us the full page but only 4kb. This bug is present on iOS 8.2. As a workaround, we forcefully extend the file to the desired size to make sure than we can map the full page.

https://bugzilla.xamarin.com/show_bug.cgi?id=27667
2015-03-11 14:01:43 -07:00
Marek Safar fac9fc87e6 [system] Fixes InvalidCastException in OpenReadAsyncCallback 2015-03-11 17:28:59 +01:00
Rodrigo Kumpera 5554b6ad11 [io-layer] When checking if a file is a program check both read and execute permissions. Fixes #27565
The original behavior of only checking for read permission broke sudo on OSX which only have the execute permission set.
2015-03-11 12:28:51 -04:00
Jo Shields 625f62c167 [msvc] Change target MSVC release from v120 to v120_xp
They're basically the same thing, but v120 has DX10+ capabilities and v120_xp
is DX9 only. Since we're not building against DirectX, the difference is
purely academic - but changing the value to v120_xp means MSVC binaries run
on XP+, not Vista+

(cherry picked from commit 577482e336)
2015-03-11 15:25:16 +00:00
Jo Shields d3aedd8189 [msvc] Refresh .def files
(cherry picked from commit 1d33de4a70)
2015-03-11 12:06:46 +00:00
Jo Shields 1bd3b8aca0 Bump winconfig.h to 4.0.0 2015-03-11 10:13:09 +00:00
Jo Shields 39dbbe2d65 Use MSVC2013 for *all* mono.sln dependants
(cherry picked from commit c127ea46a3)
2015-03-11 10:00:48 +00:00
Jo Shields 7f27bd72df Add _WIN32_WINNT to Release definition, not just Debug
(cherry picked from commit 21bc7fa948bee919644a733ca1355366c69926fd)
2015-03-11 09:49:15 +00:00
João Matos f31b86c340 [runtime] Upgraded Jay MSVC project to VS 2013.
(cherry picked from commit b528a79db5)
2015-03-11 09:37:25 +00:00
João Matos bc98119172 [runtime] Fixed the MSVC build.
Even though this seems like it's just moving the files around in the project, for some reason it makes a difference to VS.

(cherry picked from commit 220afd9d49)
2015-03-11 09:30:01 +00:00
Zoltan Varga 1aba894227 Fix the build. 2015-03-10 18:26:51 -04:00
Zoltan Varga 419f2abbd9 Fix some bugs in 92ca06aa7d. Fixes #26989. 2015-03-10 17:54:26 -04:00
Zoltan Varga ab869b5517 [jit] Fix the handling of byref locals in mono_allocate_stack_slots2 (). 2015-03-10 17:52:42 -04:00
Mark Probst c00db28a9b [tests] Test case for #27147. 2015-03-10 14:44:52 -07:00
Mark Probst a69610255d [sgen] Fix a bug in 64 bit LOS cardtable scanning. Fixes #27147. 2015-03-10 14:44:50 -07:00
Alexander Köplinger 397fb0c548 [corlib] Fix timezone dependent DateTimeOffset test
Instead of trying to recreate the date with the current timezone, we should make the date assume UTC and compare against that.
2015-03-09 21:59:43 -04:00
João Matos 73d7873d31 [runtime] Fixed Windows mono_threads_core_get_stack_bounds to work with cross-compiled targets. 2015-03-09 14:22:16 +00:00
João Matos 66c1b9c77c Enable x86 cross compilation on Windows. 2015-03-06 18:15:12 +00:00
João Matos 922f5662ed Do not try to use the native GCC linker when targeting Android from Windows. 2015-03-06 17:43:06 +00:00
João Matos 59c0207c87 Fixed Windows system commands calls with non-ASCII paths.
This is a bit of an hack but it works for now... ideally we should be processing the Unicode command line flags passed by the CRT at startup instead of trying to convert the MBCS string to a wide string.
2015-03-06 17:43:04 +00:00
Sebastien Pouliot e80398b23f Remove the EXPORT ciphers and related code path
That was still useful in 2003/2004 but the technical and legal landscape
    changed a lot since then. Removing the old, limited key size, cipher
    suites also allow removed additional parts of the code that deals with
    them.
2015-03-06 10:37:57 -05:00
Sebastien Pouliot 4c54e08936 Remove the client-side SSLv2 fallback.
There's almost no SSLv3 web site left so a v2 fallback is only extra
    code we do not need to carry forward.
2015-03-06 10:37:55 -05:00
Sebastien Pouliot 5c2a3c25fd TLS protocol: add handshake state validation 2015-03-06 10:37:53 -05:00
Rodrigo Kumpera 53d221e810 [loader] If probing for a pinvoke fails, log the error mono_dl_symbol gives us.
We used to swallow the error, which is unhelpful.

The reason for that might be because we probe multiple names before giving up but
even then, it's ok log all attempts. It will make troubleshooting easy, even if we
have to go through a lot more log entries.
2015-03-05 15:22:03 -05:00
Zoltan Varga ea43208df6 [sdb] Avoid asserts on darwin when the thread deregistration code is ran from a pthread dtor. Fixes #27697. 2015-03-05 15:03:54 -05:00
Sebastien Pouliot 81f43a2487 [tests] IPInterfaceProperties DNS address does not currently work on iOS devices (since it read /etc/resolve.conf). Ignore it for XI until #27707 is fixed 2015-03-05 14:04:09 -05:00
Miguel de Icaza 89a08ecc33 [System.ServiceModel.Web/WebMessageFormatter] Fix OperationContracts with void returns
WebMessageFormatter crashes when the OperationContracts had a void return type.

Fixes #20764, patch from <[email protected]>
2015-03-05 11:34:39 -05:00
Miguel de Icaza 9aae4ade12 [SslClientStream] Prevent crashes when a connection is closed
When a socket has been closed as part of the negotiation, the
SendAlert method would crash when trying to reuse the socket.

Add try/catch around this to prevent this.

Fixes #19334
2015-03-05 11:33:55 -05:00
João Matos 51d34c61fd Support multiple options when processing the AOT flag "ld-flags". 2015-03-03 16:29:41 +00:00
Zoltan Varga 1050938254 [aot] Fix thumb support with separate llvm modules. 2015-03-02 22:38:38 -05:00
Zoltan Varga ab5d6b3b9f [arm] Fix support for backward branches in mono_arm_get_thumb_plt_entry (). 2015-03-02 22:38:33 -05:00
Marek Safar b6438ca27b [mcs] Handle string constants inside interpolated string expression. Fixes #27533 2015-03-02 14:20:42 +01:00
Jo Shields 092a04e4f7 Workaround for X509Certificate.RSA throwing an unhandled exception in ASN1 parsing of certificates with ECC public keys only. 2015-03-02 13:07:14 +00:00
Marek Safar fcb023636e Bump referencesource to mono-4.0.0-branch 2015-03-02 11:11:33 +01:00
Marek Safar b16f85b9dd [mcs] Add cloning to string interpolation expressions. Fixes #27525 2015-03-02 10:17:15 +01:00
Alexis Christoforides 5b7798b6c5 Bump to trigger build with https://github.com/xamarin/bockbuild/commit/b8ac90ecd1e89edd9ba62e3fe04581cb75f1d063 2015-03-01 12:09:54 -05:00
Zoltan Varga 709565592d [llvm] Increase the size of a parameter array which was too small for some arm64 calling conventions. 2015-02-27 13:33:54 -05:00
João Matos 85f7fefe8a Added "ld-flags" to pass extra linker flags to the AOT linker pipeline. 2015-02-27 17:27:16 +00:00
Rodrigo Kumpera e0873dee3b Remove explicit support for 2.0, it will now use 4.5 2015-02-27 11:07:44 -05:00
Zoltan Varga 26340997e5 [aot] Fix thumb support when using separate llvm modules. 2015-02-26 15:27:31 -05:00
Zoltan Varga 43743ac7f8 [runtime] Add a --disable-visibility-hidden flag to disable the usage of -fvisibility=hidden for now. 2015-02-26 15:20:59 -05:00
Rolf Bjarne Kvinge cfe89ef924 Ignore a few decimal tests on mobile, according to #27269
https://bugzilla.xamarin.com/show_bug.cgi?id=27269
2015-02-26 20:00:41 +01:00
Zoltan Varga 8a3a77dce1 [runtime] Disable the "bridge-implementation=tarjan,major=marksweep-conc|ms-conc-tarjan-bridge" sgen tests which currently fail. 2015-02-26 12:57:52 -05:00
Rolf Bjarne Kvinge 00251b8c11 Don't use _NSGetEnviron on arm64. 2015-02-26 13:55:41 +01:00
Rolf Bjarne Kvinge 2c78813a69 Restrict IOKit usage to desktop OSX.
IOKit is a private framework in iOS, so it can't be used (and
no headers are provided, so it doesn't even compile).
2015-02-26 13:52:16 +01:00
João Matos a9a759626a Fixed compilation on Linux targets without linux/serial.h.
/Users/builder/data/lanes/monodroid-mavericks-master/7de6731a/source/mono/support/serial.c:25:26: fatal error: linux/serial.h: No such file or directory
 #include <linux/serial.h>

The header is only available on Android NDK API level >= 21.
2015-02-26 12:10:03 +00:00
Alexander Köplinger ebf6644648 Remove EntityFramework from class libs
We currently ship a horribly outdated version of EF. This is unnecessary since EF is on NuGet and has an active set of users using it on Unix.

Miguel gave his +1 on the mailing list already.
2015-02-26 01:29:54 +01:00
Rodrigo Kumpera c5a2a17a55 Fix my last commit to properly include the tarjan test suite. 2015-02-25 19:16:20 -05:00
Rodrigo Kumpera a2042e361c Add the tarjan bridge to the test matrix. 2015-02-25 19:16:14 -05:00
Rodrigo Kumpera 1293675929 [sgen] Fix the sgen bridge test suite. Oh my. 2015-02-25 19:16:10 -05:00
Rodrigo Kumpera 5875dd48c2 [sgen-bridge] Fix all the bridges after the change to have descriptor loading happen outside of scanning.
This changes all bridges to use the _safe variant of sgen_obj_get_descriptor. Bridge processing happens in
the post-scan world, before objects get untagged.
2015-02-25 18:23:24 -05:00
Miguel de Icaza c1d60b3918 [Serial] Add support for high baud rates to MacOS 2015-02-25 16:32:43 -05:00
Miguel de Icaza 6e688fc5a8 [serial,signal] Add support for Linux arbitrary baud rates + drop Apple legacy poll support
This patch brings support for arbitrary baud rates in Linux, from patch:

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

Which has been MIT licensed (see mono-devel-list).

In addition, while testing the patch, discovered that we are using
fakepoll.h on MacOS which was there to support Tiger-era broken poll
implementations.

The details about the lack of poll support come from this document
that is now only available on web.archive.org:

http://web.archive.org/web/20030604064847/http://developer.apple.com/technotes/tn2002/tn2071.html

And the original Mono bug that reported the problem in 2008, followed
by the fixes is reported and discussed here:

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

The source of the problem, confirmed by an Apple employee at the time
(form the bug) is that poll sometimes results in returning POLLHUP
when a POLLIN was expected:

http://curl.haxx.se/mail/lib-2005-05/0122.html

This web site tracks the behavior of poll (POLLHUP and POLLIN) across
Posix implementations when you reach an end of file:

http://www.greenend.org.uk/rjk/tech/poll.html
2015-02-25 15:17:33 -05:00
Marek Safar ff2d07c4a1 [system.net.http] Add another workaround for incompatible mono Uri handling. Fixes #27386 2015-02-25 12:32:11 +01:00
Marek Safar 83d87aeb90 [System.Net.Http] Change relative uri test to not require internet access 2015-02-25 12:32:02 +01:00
Marek Safar ca9ee4b264 [Mono.XBuild.Tasks] Fixes versioning with newer than 4.0 special msbuild profiles 2015-02-24 18:11:00 -05:00
Rodrigo Kumpera 807ca43a59 Bump mono version to 4.0 2015-02-24 17:28:43 -05:00
Rodrigo Kumpera 7ca1857b8d Merge pull request #1592 from akoeplinger/remove-npgsql-4.0
Remove Npgsql from class libs (mono-4.0.0-branch)
2015-02-24 14:55:40 -06:00
Alexander Köplinger 51e5f8cc9b Remove Npgsql from class libs
This has been requested by the maintainers of Npgsql a few times already (https://bugzilla.xamarin.com/show_bug.cgi?id=23119) and we should do it for Mono 4.0.
Miguel gave his +1 on the mailing list already.
2015-02-24 21:50:42 +01:00
Marek Safar 46b86edb63 [facades] Add missing System.ServiceModel.Primitives forwarders to MT profile. Fixes #27338 2015-02-24 20:31:01 +01:00
Marek Safar ee2d91851a [system.net.http] Accept header with multiple values. Fixes #27352 2015-02-24 19:18:44 +01:00
Marek Safar 3e854a1f22 [build] 3.10 bump for bootstrap was too much 2015-02-24 09:01:52 +01:00
Marek Safar 4576568996 [system] Bump reference sources to get correct category names 2015-02-24 08:51:33 +01:00
Zoltan Varga 51a74a27da [runtime] Disable some dyncall/gsharedvt fullaot tests on amd64. 2015-02-23 19:50:03 -05:00
Zoltan Varga 7aa521b02c [bcl] Fix Console support on ios, the TextWriter class from the reference sources called TextWriter:Write(char), so stdout was never flushed. 2015-02-23 19:47:52 -05:00
Alexander Köplinger f3f1799700 Ensure MakeRelative() works even when basePath doesn't end in slash 2015-02-22 20:41:29 +01:00
Alexander Köplinger 0a8592dc5b [Microsoft.Build.Engine] Implement MakeRelative() predefined property function 2015-02-22 20:09:31 +01:00
Marek Safar 321bb7200c Merge pull request #1573 from akoeplinger/msbuild-import-empty
[Microsoft.Build.Engine] Ignore import with empty project attribute when condition is false
2015-02-21 13:22:01 +01:00
João Matos b92e728081 Merge pull request #1583 from akoeplinger/fix-genproj-line-endings
[genproj] Fix line endings in generated file to be CRLF
2015-02-20 20:14:15 +00:00
Atsushi Eno 684f9b08a5 Merge branch 'master' of github.com:mono/mono
(some commits occurred while I have been cherry-picking a lot of "they are
in import-system-xml branch but it works with existing sys.xml" stuff.)
work in master
2015-02-21 03:35:57 +08:00
Atsushi Eno 545cdaf8f7 [WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
It needs LocalName. So use other overloads instead.
2015-02-21 03:33:23 +08:00
Atsushi Eno 6499ba871d [XLinq] create new instance of XmlSchemaInfo for each XObject from XmlReader.
In referencesource, XmlReader.SchemaInfo does not return different instances
for each node at its state but just returns the XmlReader itself (which
implements IXmlSchemaInfo). Hence, if we just set the corresponding
IXmlScemaInfo to each XObject, it results in inconsistent state.

This fixes two regressions in ExtensionsTest (XAttributeFailValidate and
XAttributeThrowExceptionValidate).
2015-02-21 03:32:44 +08:00
Atsushi Eno 923ed6b241 [Sys.Security] don't expect XmlNode.ChildNodes returns the same instance.
It did in mono implementation. It doesn't on referencesource.
2015-02-21 03:31:39 +08:00
Atsushi Eno d9184320f7 [Configuration] skip whitespaces in the settings xml.
This is required after we switch to referencesource, which somehow
preserves whitespaces during deserialization from xml.
2015-02-21 03:29:21 +08:00
Atsushi Eno 2951e3b6d8 [Xaml] XamlXmlWriter should flush output when disposing.
With referencesource, XmlWriter for TextWriter buffers the output.
When closing XamlXmlWriter, it does not flush the output, causing
the buffered XmlWriter output discarded in the wild.
2015-02-21 03:28:44 +08:00
Atsushi Eno 3001bd0d94 [WCF] for certain kind of Messages, do now write BodyContents twice. 2015-02-21 03:28:07 +08:00
Atsushi Eno a1d5c9c48d [Sys.Xml] when deserializing XmlNode, use XmlReader's NameTable. 2015-02-21 03:26:10 +08:00
Atsushi Eno abb3e7dcfc [WCF] fix wrong using scope on XmlWriter in security token serializer test. 2015-02-21 03:25:29 +08:00
Atsushi Eno cdb4002190 [WCF] do not use XmlReader.Name to check LocalName.
It won't match for prefixed ones.
2015-02-21 03:24:54 +08:00
Atsushi Eno 358275e836 [WCF] Do not expect XmlElement.FirstChild is non-whitespace here.
Fix several regressions caused by referencesource Sys.Xml import.
2015-02-21 03:24:12 +08:00
Atsushi Eno a0dece2329 [S.R.Serialization] fix referencesource glitch in XmlMtomDictionaryWriter.
MTOM writer didn't expect multiple top-level elements are rejected at
ConformanceLevel.Auto, neiher do against Write[Start/End]Document() with
such elements.

Also Flush is often needed before directly writing to the Stream(Writer).

EOLs handling was also inconsistent between referencesource and old mono.
2015-02-21 03:23:15 +08:00
Atsushi Eno a3383d1be5 [S.R.Serialization] add missing attributes in MS serialization namespace.
This fixes another regression which failed to load Test ns22.xsd.
2015-02-21 03:22:08 +08:00
Atsushi Eno 74e70ff985 [Sys.Xml] don't use XmlSchemaElement.ElementType anymore. MS doesn't use it.
XML Schema compilation is done in referencesource.
XmlSchemaImporter is based on mono code. Hence this glitch happened.

The following regression is fixed:

1) MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes : System.InvalidOperationException : 'Root' is missing.
at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping (System.Xml.XmlQualifiedName name) [0x0005a] in /svn/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs:453
at MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes () [0x00039] in /svn/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSchemaImporterTests.cs:1104
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2015-02-21 03:19:06 +08:00
Atsushi Eno d41451bcbf Our XmlDictionaryWriter implementation expects XmlReader at non-Initial state.
It is to fix glitch between mono Sys.Xml and referencesource.
2015-02-21 03:16:58 +08:00
Atsushi Eno c56064b05c [Sys.Data] DataSet.ReadXmlSchema(): use LocalName instead of Name on XmlReader.
MS referencesource Sys.Xml uncovered this bug.
2015-02-21 03:16:15 +08:00
Zoltan Varga 2202e97c33 [aot] Fix the emission of llvm plt entries. 2015-02-20 14:00:17 -05:00
Marek Safar cfbb82b747 [corlib] Fixes build with old UnmanagedMemoryStream 2015-02-20 18:46:31 +01:00
Atsushi Eno 49d79191ca Add missing new I18N DefaultEncoder class. 2015-02-21 00:52:26 +08:00
Atsushi Eno 3f355da212 Add old mono Encoder and use it in MonoEncoding to keep compatibility.
There was some glitch in CP932 encoding and referencesource Encoder
that caused error in Convert(), shown in System.XML tests.
To avoid this, bring back old Encoder as we used before and keep
compatible processing.

It might be buggier, but doesn't regress. We may be able to bring nlp-
based Encodings later too.
2015-02-21 00:52:20 +08:00
Zoltan Varga 392200a812 [runtime] Export the GC bridge api functions. 2015-02-20 11:51:19 -05:00
Miguel de Icaza 0e8701a161 Merge pull request #1582 from zevane/patch-1
Make the class thread-safe
2015-02-20 11:23:50 -05:00
Marek Safar 6800659e8c [corlib] Remove ResourceCloseHandler usage 2015-02-20 17:07:15 +01:00
Marek Safar 01db1cc9ad [corlib] Add more internal apis 2015-02-20 15:09:14 +01:00
Marek Safar ed2510cc14 [build] Handle multiple entries in RESOURCE_STRINGS 2015-02-20 13:34:18 +01:00
Marek Safar 7a57bd6b3d Bump reference sources to revert Add read-only interfaces to some collections 2015-02-20 11:25:23 +01:00
Marek Safar 8e90a963d6 Use more resource text strings from reference sources 2015-02-20 11:16:18 +01:00
Marek Safar 71533001b8 [System.Runtime.Serialization] Makefile cleanup 2015-02-20 09:57:30 +01:00
Marek Safar f364eca194 [System.Numerics] Cleanup Makefile 2015-02-20 09:52:44 +01:00
Marek Safar b1941bc08a [System.ComponentModel.DataAnnotations] Makefile clean-up 2015-02-20 09:44:37 +01:00
zevane b3ddd74efb Make the class thread-safe
If two threads request the same section, which isn't yet cached, both try to insert it into the cache, causing a "Key duplication when adding...". It's neccesary to lock the getter. This solves bugs #5263, #7785, #18303
2015-02-20 09:12:47 +01:00
Marek Safar 754793df9e [corlib] Switch to official mscorlib.txt 2015-02-20 08:49:17 +01:00
Miguel de Icaza 414d11f976 Bring referencesource messages that were just published by Microsoft 2015-02-19 21:02:49 -05:00
Zoltan Varga 285f867593 [aot] Fix the emission of dwarf debug info. 2015-02-19 20:24:38 -05:00
Zoltan Varga 5fc41fcb56 [aot] Emit dwarf emission on arm64. 2015-02-19 20:02:39 -05:00
Zoltan Varga af3c010407 [llvm] Fix a bug introduced by 61ae03fef1. 2015-02-19 18:53:37 -05:00
Zoltan Varga c3611d4d3b [llvm] Mark methods with the NOINLINING attribute as non-inlinable. 2015-02-19 17:17:20 -05:00
Zoltan Varga 61ae03fef1 [llvm] Refactor the calling convention handling code a bit, add support for returning fp structures by value. 2015-02-19 17:04:07 -05:00
Ludovic Henry 986e58d530 [tpl] Increase wait timing in test suite to adapt to the slower ramp up of the ThreadPool 2015-02-19 15:49:19 -05:00
Zoltan Varga 127602a843 [aot] Enable LLVM level inlining. 2015-02-19 14:34:33 -05:00
Marek Safar fbe7c55a56 [system.web] Tests update 2015-02-19 20:12:52 +01:00
Marek Safar 6e488234ae [WindowsBase] Implement Vector formattable ToString 2015-02-19 20:12:52 +01:00
Marek Safar ea43322c29 [corlib] BufferedStream from reference sources 2015-02-19 20:12:51 +01:00
Zoltan Varga 689a615a71 [llvm] Mark methods with clauses as noinline. 2015-02-19 14:06:20 -05:00
Zoltan Varga e869cc56a5 [jit] Fix the overflow checks in the liveness2 pass since the liveness ranges are stored as signed ints. 2015-02-19 14:05:51 -05:00
Zoltan Varga ae9d99d2d3 [aot] Fix catching exceptions in gshared methods on amd64. 2015-02-19 13:26:23 -05:00
Alexander Köplinger 042a9afd50 [genproj] Fix line endings in generated file to be CRLF
The template uses CRLF everywhere, so we should generate the same to avoid mixed line endings.
2015-02-19 19:23:23 +01:00
Zoltan Varga eb7ed887ac [llvm] Mark the mono_aot_personality () function as used, to prevent llvm from optimizing it away. 2015-02-19 12:10:02 -05:00
Zoltan Varga 08b8f74db5 [runtime] Export a few functions needed by xam.mac. 2015-02-19 11:41:11 -05:00
Jo Shields 2750f4970d Add ReferenceSources/mscorlib.txt to EXTRA_DIST (fixes distcheck) 2015-02-19 16:11:28 +00:00
Marek Safar 65347a166e [corlib] Text streams from reference sources 2015-02-19 17:04:14 +01:00
Marek Safar ce4e2497be [corlib] Use public TextWriter.Synchronized for Console synchronization and leave stream closing handling to underlying stream 2015-02-19 16:42:57 +01:00
Marek Safar 1425ace040 [corlib] Stream, MemoryStream from reference sources 2015-02-19 13:04:46 +01:00
Marek Safar 8da38a9e4a [corlib] Access null stream using public property 2015-02-19 13:04:46 +01:00
Marek Safar ffc36ef3bd [corlib] Rename IsDirectorySeparator method to match reference sources 2015-02-19 13:04:46 +01:00
Alex Rønne Petersen 9af7d9083a Stop building with -Wdeclaration-after-statement since we're C99 now. 2015-02-19 11:04:59 +01:00
Zoltan Varga f8c5acaf45 [aot] Fix an assertion. 2015-02-18 20:35:47 -05:00
Zoltan Varga 2c1b64477b [llvm] Emit null checks for remainders as well. 2015-02-18 19:15:12 -05:00
Zoltan Varga 5e0b127e15 [llvm] Emit null checks in div opcodes if needed. 2015-02-18 19:04:51 -05:00
Zoltan Varga a0c1fb5a1a [aot] Fix binary search in the code offsets table when emitting llvm code separately. 2015-02-18 19:04:08 -05:00
Zoltan Varga 98316e0be1 [aot] Fix the computation of LLVM code ranges. 2015-02-18 18:24:49 -05:00
Jo Shields 2d6092f45e Ensure check-seq-point target exits immediately on failure. 2015-02-18 23:14:19 +00:00
Zoltan Varga 2c69ccd9f0 [jit] Disable llvm support for the atomic load/store opcodes for now to fix corlib test failures. 2015-02-18 17:31:02 -05:00
Zoltan Varga 77f4176af0 [aot] Handle separate blocks of llvm and jitted code correctly. 2015-02-18 17:10:57 -05:00
Mark Probst fee8ae7ef6 [sgen] Correctly calculate size of zero-based one-dimensional non-vector arrays. 2015-02-18 12:43:31 -08:00
Marek Safar a803d17038 [mcs] Make compiler output deterministic. Fixes #26842 2015-02-18 20:02:31 +01:00
Zoltan Varga 28a2664d4a Merge pull request #1576 from McSherry/patch-1
revises GZipStream ctor parameter names
2015-02-18 13:41:08 -05:00
Zoltan Varga 04ba85af27 [runtime] Really fix the loadable LLVM build. 2015-02-18 13:39:08 -05:00
Liam McSherry dd939ec86a revises GZipStream ctor parameter names
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.

[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 18:32:43 +00:00
Jo Shields 9f5a7ae769 Just avoid BSD sed altogether. 2015-02-18 18:29:01 +00:00
Jo Shields 85f78490d2 More fixes for BSD sed breaking check-seq-point target 2015-02-18 17:42:15 +00:00
Jo Shields dad995933c Further fixes to check-seq-point test 2015-02-18 17:17:21 +00:00
Jo Shields afc70b2b7e Fix test suite on OSX 2015-02-18 16:54:54 +00:00
Zoltan Varga 5e4ee3ccea [runtime] Fix the loadable LLVM build. 2015-02-18 11:43:32 -05:00
Marek Safar 038b3b6cea Bump ikdasm to fix crashes on mobile mscorlib 2015-02-18 17:05:16 +01:00
João Matos 08ea547ec4 Merge pull request #1575 from mono/revert-1574-patch-1
Revert "revises GZipStream ctor parameter names"
2015-02-18 16:00:06 +00:00
João Matos f0a399e640 Revert "revises GZipStream ctor parameter names" 2015-02-18 15:59:39 +00:00
João Matos fb9ae0f835 Merge pull request #1574 from McSherry/patch-1
revises GZipStream ctor parameter names
2015-02-18 15:59:16 +00:00
Liam McSherry 1f07b1320c revises GZipStream ctor parameter names
By changing the names of the parameters, code that uses .NET GZipStream constructors[1][2] with named parameters can use this GZipStream without change.

[1]: https://msdn.microsoft.com/en-us/library/as1ff51s(v=vs.110).aspx
[2]: https://msdn.microsoft.com/en-us/library/27ck2z1y(v=vs.110).aspx
2015-02-18 15:55:01 +00:00
João Matos 8e87cce42c [profiler] Fixed an Android build regression introduced by 2b74940f64. 2015-02-18 15:29:57 +00:00
Zoltan Varga bfafeddc2b [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. Use a separate SHARED_CFLAGS variable so it only affects a subset of libs. 2015-02-18 08:12:32 -05:00
Zoltan Varga 0927b86347 Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
This reverts commit 8a5a230aec.

Revert this as it still causes test failures.
2015-02-18 08:11:22 -05:00
João Matos 7e9504a10d [monodis] Fixed building against LLVM-compiled Mono. 2015-02-18 12:49:01 +00:00
João Matos b50b381226 Merge pull request #1572 from directhex/emit-nunit-xml-in-unmanaged-tests
Emit NUnit representation of check-seq-points target.
2015-02-18 12:26:09 +00:00
Jo Shields a34e257fd2 Emit NUnit representation of check-seq-points target.
This generates an XML representation of the check-seq-points target,
as separate tests, which can be easily tracked by anything which
parses NUnit output (e.g. Jenkins or other CI systems). For example,
we are currently regressed on this on ARM.
2015-02-18 12:10:39 +00:00
Marek Safar da706a2058 [corlib] Removes extra bufffer from FileStream async mode writes. Fixes #27086 2015-02-18 12:56:36 +01:00
Martin Baulig a20a0459be Merge pull request #1464 from akoeplinger/fix-portable-target
[xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
2015-02-18 08:12:08 +01:00
Alexander Köplinger bf3d9609ba [Microsoft.Build.Engine] Ignore import with empty project attribute when condition is false
<Import Project="$(Variable)" Condition="false" /> causes an exception otherwise when Variable is not set.
Also added a test for condition referencing extension path after discussion in https://github.com/akoeplinger/mono/commit/f13d9cb5dacbb5c9f758d6dd8b9aacf46b5508b6
2015-02-18 07:38:41 +01:00
Miguel de Icaza aeb24275bc Merge pull request #1563 from directhex/emit-nunit-xml-in-unmanaged-tests
Generate NUnit interpretation of whether "mono --regressions" passed
2015-02-17 23:27:58 -05:00
Zoltan Varga 8a5a230aec [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. 2015-02-17 19:05:03 -05:00
Zoltan Varga 2b74940f64 [runtime] Link the logging profiler against eglib. 2015-02-17 19:03:39 -05:00
Zoltan Varga 065f41d168 [runtime] Export mono_threads_attach_tools_thread (). 2015-02-17 19:03:39 -05:00
Marek Safar 4d91c8e7d2 [build] Remove misused bootstrap profile definition 2015-02-17 21:58:23 +01:00
Marek Safar 451e14e4c8 [corlib] Remove duplicate source files 2015-02-17 21:43:23 +01:00
Marek Safar c495250fde [corlib] Replace resource keys with actual messages during compilation 2015-02-17 21:43:22 +01:00
Rodrigo Kumpera 04eeb70c8c Merge pull request #1570 from mono/fix27010
Bug 27010 - Difference in Assembly.GetExportedTypes with .NET
2015-02-17 13:49:05 -06:00
Alex Rønne Petersen 8bf480fc62 Merge pull request #1571 from evincarofautumn/fix-warning
[utils] Fix warning in Makefile.am.
2015-02-17 19:58:14 +01:00
Jon Purdy f14d23b7f0 [utils] Fix warning in Makefile.am. 2015-02-17 10:56:15 -08:00
João Matos b8dec77eea [mini] Improve the driver to handle more cases of incompatible cross-compilation targets. 2015-02-17 16:12:49 +00:00
João Matos ac8ae330c7 [metadata] Do not try to use host context members when cross-compiling. 2015-02-17 16:12:11 +00:00
João Matos 85e5ebbfa9 [metadata] Add missing ARM64 object offsets.
This fixes the mobile products build with Mono master.
2015-02-17 16:11:21 +00:00
Zoltan Varga 0ba6d1777d [aot] Fix the emission of ElementAddr wrappers. 2015-02-17 07:46:11 -05:00
Zoltan Varga 4c8a1a6733 [runtime] Link monodis against libmonoruntime instead of libmono which can be a dynamic lib. 2015-02-17 06:59:29 -05:00
Zoltan Varga ff2cfae862 [gsharedvt] Implement support for multi-dimensional arrays in gsharedvt methods. 2015-02-17 06:57:43 -05:00
Zoltan Varga acbe5f52d5 Fix a warning. 2015-02-17 05:44:58 -05:00
Marek Safar 673e8fa8ee [mcs] Single name meaning relaxation to match roslyn 2015-02-17 10:59:33 +01:00
Alex Rønne Petersen 33ad107825 Update refsrc to get read-only interface changes for System/System.Core. 2015-02-17 10:53:10 +01:00
Marek Safar 877e8ce941 [mcs] Fixes check for overriden auto-properties. 2015-02-17 08:14:21 +01:00
Ungureanu Marius 818d229538 Bug 27010 - Difference in Assembly.GetExportedTypes with .NET 2015-02-17 06:41:12 +02:00
Alex Rønne Petersen 235f543d94 [mini] Fix a crash on armel. 2015-02-17 02:04:15 +01:00
Zoltan Varga 6ee1b1b565 [jit] Add tests for arm64 gsharedvt argument passing. 2015-02-16 16:07:03 -05:00
Zoltan Varga 175c1a521d [jit] Add tests for arm64 gsharedvt argument passing. 2015-02-16 15:20:17 -05:00
Alexander Köplinger 8f7a551c0c [Microsoft.Build.Tasks] Rethrow exception in Copy task
This way we don't lose the original stacktrace.
2015-02-16 19:05:00 +01:00
Marek Safar 724c1becc1 Add new test 2015-02-16 17:03:50 +01:00
Marek Safar ed517ad778 [mcs] Implements dictionary initializers on pointer types 2015-02-16 16:48:24 +01:00
Miguel de Icaza aef0b3e04c Merge pull request #1542 from ninjarobot/UriTemplateMatchException
Fix to UriTemplate.Match to properly handle query parameters without a v...
2015-02-16 10:19:44 -05:00
Miguel de Icaza 5715cdc582 [System.ServiceModel] Prevent server crash when client disconnect
This patch is an updated version of a pull request (377) from Rob
Wilkens to fix #5926
2015-02-16 10:01:22 -05:00
João Matos bccf5cf121 [aot] Re-organize JSON dumping code. 2015-02-16 12:48:05 +00:00
João Matos d9234357f6 Revert "[aot] Re-organize JSON dumping code."
This reverts commit 25969466b5.
2015-02-16 12:46:29 +00:00
João Matos b4926395c6 [git] Ignore Doxygen-related generated files. 2015-02-16 12:39:03 +00:00
Zoltan Varga 25969466b5 [aot] Re-organize JSON dumping code. 2015-02-16 12:38:40 +00:00
Marek Safar bc57fda921 Merge pull request #1568 from akoeplinger/xbuild
[Microsoft.Build.Tasks] Implement retries in Copy task and add a stub.
2015-02-16 07:54:54 +01:00
Atsushi Eno 90b1124402 Merge branch 'import-text-encoding-2' 2015-02-16 14:34:19 +08:00
Alexander Köplinger 40c0dfcf93 [Microsoft.Build.Tasks] Add stub for UseHardlinksIfPossible to Copy task
Creating hardlinks in .NET doesn't have a nice API and using Mono.Unix/Pinvoke doesn't
seem worth the effort at this point since the feature is off by default on msbuild as well.
2015-02-16 01:50:07 +01:00
Alexander Köplinger baaf07c104 [Microsoft.Build.Tasks] Implement retries in Copy task 2015-02-16 01:38:06 +01:00
Atsushi Eno e4b2bc75aa [sys.xaml] serialize string value as string, do not try ValueConverter.
Fixed some xwt object serialization.
2015-02-16 03:32:49 +08:00
Zoltan Varga bcd70a77a7 [jit] Fix a regression introduced by 00a28a7dfd which disabled liveness2 for most methods. 2015-02-14 15:51:11 -05:00
Zoltan Varga bca66a090d [arm64] Add a test for vtype by ref returns in dyn calls. 2015-02-13 17:54:31 -05:00
João Matos 874d17321d [runtime] Fixed TLS detection on AMD64 to support cross-compilation. 2015-02-13 16:45:46 +00:00
Marek Safar 52c33f00ff [mcs] Better error reporting after delegate probing failed. Fixs #27043 2015-02-13 17:42:41 +01:00
João Matos e3279063de [aot] Added JSON dumping support.
This is enabled by passing "aot=dump" to the Mono AOT driver and will create a JSON file in the working directory with the name of the assembly.

It's still a work-in-progress and will see improvements in the data dumped as it's needed.
2015-02-13 16:41:07 +00:00
Marek Safar b9c8a612b7 [mcs] Set fixed buffer layourt wihout StructLayoutAttribute when possible. Fixes #27020 2015-02-13 16:49:22 +01:00
Marek Safar 8d3c6d44f8 [corlib] Random from reference sources 2015-02-13 15:05:43 +01:00
Marek Safar da9546edfd [corlib] MissingMember exceptions from reference sources 2015-02-13 14:58:40 +01:00
Marek Safar 09b16951bc [corlib] UnitySerialization from reference sources 2015-02-13 14:45:46 +01:00
Marek Safar 8157ba59ce [system.net.http] Parsing of nested parens inside comment. Fixes #27036 2015-02-13 14:37:32 +01:00
Marek Safar 1128af49cf [mcs] Resolve using aliases on demand to fix issue with nested types. Fixes #27001 2015-02-13 14:37:31 +01:00
João Matos 08014c4629 [monodis] Attempt to fix the Cygwin build.
CCLD     monodis.exe
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-opcodes.o): In function `mono_opcode_name':
/cygdrive/c/projects/mono-817/mono/metadata/opcodes.c:63: multiple definition of `mono_opcode_name'
../mini/.libs/libmonosgen-2.0.dll.a(d001720.o):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
2015-02-13 12:43:06 +00:00
Atsushi Eno f47937f8f3 avoid reflection in EncodingHelper.
as per https://github.com/mono/mono/pull/1566#discussion_r24653304
2015-02-13 18:25:49 +08:00
Atsushi Eno 59dc2b42c8 [encoding] import referencesource encoding foundation types.
This change does not involve Windows-specific NLS-based encodings.
We will be still using I18N assemblies until we make more grand design
changes (Xamarin products premise those assemblies).

This also fixes bug #23771 and probably more.
2015-02-13 16:41:05 +08:00
Zoltan Varga 2a3385da86 Fix a warning. 2015-02-13 02:16:16 -05:00
Alex Rønne Petersen 61e8b5e6d0 [mini] Add a MONO_ARM_FORCE_SOFT_FLOAT environment variable. 2015-02-13 08:08:44 +01:00
Zoltan Varga 8a3b8e716f [runtime] Overwrite logging profiler output files automatically. 2015-02-13 00:39:48 -05:00
Zoltan Varga f16a4a1975 [runtime] Export mono_personality (), which is accessed from llvm compiled code. 2015-02-13 00:29:24 -05:00
Zoltan Varga b45199d288 [corlib] Fix a race in LazyTest.EnsureSingleThreadSafeExecution (). 2015-02-13 00:15:52 -05:00
Zoltan Varga 82554c4e89 [runtime] Add a SHARED_CFLAGS autoconf var which can be used to pass the -fvisibility=hidden flag. 2015-02-13 00:10:51 -05:00
Rodrigo Kumpera 19a22ede0d Merge pull request #1439 from BrzVlad/feature-managed-allocator
[jit] Optimize the managed allocator fastpath for small objects
2015-02-12 17:43:52 -06:00
Atsushi Eno 93ce056a76 Merge pull request #1496 from echampet/serializers
System.Xml.Serialization: fix xml serializers generation for Web Services
2015-02-13 05:08:10 +08:00
Atsushi Eno 33694c02b3 [encoding] as part of referencesource import, use new EncodingHelper class.
This will remain after importing referencesource and offer mono-only
internals for some classes. This involves icall (owner class) change.
2015-02-13 04:24:47 +08:00
Marek Safar 2ca5117fd2 [system] Mark ping MT implementation as broken 2015-02-12 19:09:08 +01:00
João Matos ccf89b6b5b [runtime] Fixed TLS detection on x86 to support cross-compilation. Fixes #26969.
https://bugzilla.xamarin.com/show_bug.cgi?id=26969.
2015-02-12 17:40:13 +00:00
Zoltan Varga 83ae5b92ac [runtime] Fix an automake warning. 2015-02-12 12:29:37 -05:00
Zoltan Varga 679f9b44a5 [runtime] Fix an initialization race when using custom marshallers. 2015-02-12 12:13:54 -05:00
João Matos 98a88d8009 Merge pull request #1534 from haf/bugs/hmac-wrong-keysizes
Bugs/hmac wrong keysizes
2015-02-12 16:46:00 +00:00
Marek Safar 72eb18f84d [system] More linker friendly tests 2015-02-12 17:00:34 +01:00
Jo Shields 12baa6e696 Generate NUnit interpretation of whether "mono --regressions" passed 2015-02-12 15:22:17 +00:00
Zoltan Varga d7ae2816fe Merge pull request #1562 from vkargov/master
[runtime] Mark TLS variables as explicitly used
2015-02-12 10:03:40 -05:00
Vladimir Kargov 16ee025230 [runtime]
Mark TLS variables as explicitly used to avoid their unwarranted deletion
by the compiler overlooking their usage in inline assembly sections.
2015-02-12 17:45:34 +03:00
João Matos 90185288b1 [aot] Fixed LLVM assembly generation for non-Mach targets.
Fixes bugzilla #26964.
2015-02-12 13:42:46 +00:00
Marek Safar 45448a3f16 [corlib] Add timeout to more tests 2015-02-12 14:21:24 +01:00
Zoltan Varga 9eea9b6d70 [aot] Fix emission of symbol sizes which got broken by 05cd4225b2. 2015-02-12 07:49:08 -05:00
Marek Safar 3af8147e4d [system] Add old monotouch test codepath 2015-02-12 13:24:16 +01:00
Marek Safar 3d3c8b9bc6 [system.core] Fix wrong 405f9534df 2015-02-12 13:20:10 +01:00
Zoltan Varga 0871f1f266 Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
This reverts commit 90e86725ac.

Revert this as it causes many test failures.
2015-02-12 06:47:09 -05:00
Zoltan Varga b64c24b4ea [runtime] Export mono_gc_toggleref_add (). 2015-02-12 06:45:45 -05:00
Zoltan Varga 90e86725ac [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. 2015-02-12 05:22:52 -05:00
Zoltan Varga 17eadbf010 [runtime] Define MONO_API_EXPORT properly for gcc, and define MONO_DLL_EXPORT so it is actually used during the build. 2015-02-12 05:21:50 -05:00
Zoltan Varga 029753034f Revert "[runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported."
This reverts commit beb1463b6c.

Revert this for now as it breaks loading symbols from the mono executable on osx.
2015-02-12 04:51:06 -05:00
Marek Safar 52227a1e6d [runtime] Return strongly typed array from GetModules to match managed signature. Fixes a crash with strongly typed enumerator 2015-02-12 10:09:06 +01:00
Marcos Henrich b3aec8113a [corlib] Fixes commit ceef1e2.
We want to remove the module check from GetMethodToken not SetUserEntryPoint.
2015-02-12 08:59:21 +00:00
Zoltan Varga 4ef4090a22 [runtime] Export symbols from libtest. 2015-02-12 03:53:26 -05:00
Zoltan Varga 250cd40b86 [runtime] Remove unused MONO_ARCH_SAVE_REGS declarations. 2015-02-12 03:46:49 -05:00
Zoltan Varga b34c3f6f64 [jit] Remove unused MONO_ARCH_SAVE_REGS declarations. 2015-02-12 03:32:58 -05:00
Zoltan Varga d9259e59e1 [monodis] Build monodis against the static mono libraries. 2015-02-12 03:04:39 -05:00
Zoltan Varga beb1463b6c [runtime] Use -fvisibility=hidden so only symbols marked with MONO_API are exported. 2015-02-12 02:25:19 -05:00
Sebastien Pouliot cfc0d6fc73 [linker] Do not update the Scope on TypeSpecification (fix mmp regression tests) 2015-02-11 15:38:48 -05:00
Zoltan Varga 6f572dcc58 Merge pull request #1561 from main--/patch-1
Only call string.Format in Debug.Assert if really necessary
2015-02-11 13:49:53 -05:00
main() 2e6efb3149 Only call string.Format in Debug.Assert if really necessary
Right now (without this change), Debug.Assert **always** formats its string parameters, even if doing so wouldn't be necessary because the condition is true. This has a huge impact on code that asserts frequently because it assumes that calling Assert(true, ...) is cheap.
2015-02-11 19:42:29 +01:00
Marek Safar ceef1e2379 Merge pull request #1560 from esdrubal/xlstregression
[corlib] ModuleBuilder.GetMethodToken no longer has a module check.
2015-02-11 17:17:27 +01:00
Marcos Henrich 9eb81476bd [corlib] ModuleBuilder.GetMethodToken no longer has a module check.
.NET implementation is able to get method tokens from other modules.
This was causing a regression on a System.Xml.Xsl.XslTransformTests.Bug487065 while using referencesource's System.Xml implementation.
2015-02-11 15:59:37 +00:00
Marcos Henrich 1e7a4a2114 [corlib] Test GetMethodToken ability to get other modules' tokens.
.NET implementation is able to get method tokens from other modules.
2015-02-11 15:59:36 +00:00
João Matos f1006fbbe0 [msvc] Upgrade the projects to require VS2013. 2015-02-11 15:55:43 +00:00
Alex Rønne Petersen 628f3d998b Use -std=gnu99 as we rely on the linux macro in some places. 2015-02-11 16:50:59 +01:00
Marek Safar 2326fa0721 Bump reference sources 2015-02-11 16:42:40 +01:00
Zoltan Varga 46357aee0b [runtime] Enable C99 mode. 2015-02-11 10:32:34 -05:00
Zoltan Varga 984a13d908 [runtime] Use ISO C __typeof__ instead of typeof () in one place. 2015-02-11 10:32:13 -05:00
Zoltan Varga 3b85df9c0d Fix the loadable llvm build. 2015-02-11 09:44:45 -05:00
Sebastien Pouliot b6d6280821 [linker] Ignore null type arguments in MarkWithResolvedScope
It's ignored in MarkType but it breaks calling Resolve in this case
2015-02-11 09:01:35 -05:00
Marek Safar 8db46e61fd [corlib] Fixes build 2015-02-11 14:04:35 +01:00
Zoltan Varga a42f4d8d22 Merge pull request #1559 from directhex/emit-nunit-xml-in-unmanaged-tests
Add NUnit XML emission to the managed runtime test runner.
2015-02-11 08:00:18 -05:00
Jo Shields 84a8428de1 Add NUnit XML emission to the managed runtime test runner.
This makes it easy to plug failures from the runtime tests into a visualisation, such as Jenkins' jUnit display system.
2015-02-11 12:48:45 +00:00
Zoltan Varga 078968540f Make the managed test runner the default in mono/tests, run with make M=0 to use the old one. 2015-02-11 07:47:39 -05:00
Zoltan Varga 9b617125bd [llvm] Maps structs made up of floats/doubles to llvm structs containing floats. 2015-02-11 07:02:45 -05:00
Marek Safar 4e27a21367 [system] Fix ping process exit code check 2015-02-11 12:04:50 +01:00
Marek Safar f97001e2c8 [system] updates fixed test 2015-02-11 10:47:54 +01:00
Marek Safar 405f9534df [system.core] Update aes test to match imported code 2015-02-11 09:43:17 +01:00
Marek Safar ec2e126dfd [mcs] Additional fix for #26892 2015-02-11 09:21:20 +01:00
Sebastien Pouliot d07822286c [linker] Resolve types inside custom attributes since they might refer to types in assemblies we won't be keeping [#26752]
Custom attributes encoding means it's possible to have a scope that will
point into a PCL facade even if we (just before saving) will resolve all
type references.

Since all other references can be made on the _real_ assembly and that
we do not want to include any facade assembly just for this we need to
resolve those type and update their scope.
2015-02-10 21:04:02 -05:00
João Matos 325744cb85 [build] Fixed the MSVC build. 2015-02-10 15:14:16 +00:00
Marek Safar 9b9b96980b [corlib] Guid from reference sources 2015-02-10 15:42:13 +01:00
Marek Safar 86e2bada8a [mcs] Fixes failing test 2015-02-10 15:42:13 +01:00
Marcos Henrich b94c4cdce1 [corlib] Calling 'tzi.exe -i' now prints olson transitions. 2015-02-10 10:44:35 +00:00
Marcos Henrich 7169eeb5e0 [corlib] Updated make target tzi.exe 2015-02-10 10:39:29 +00:00
Marcos Henrich 8473c6db7e Moved android-dump-tzdata make target to corlib.
Reason: All TimeZoneInfo related files are now all in corlib directory.
2015-02-10 10:32:30 +00:00
Zoltan Varga 2f95909242 Merge pull request #1557 from StephenMcConnel/bug-26887
Prevent right click from triggering ToolStripItem.HandleClick
2015-02-10 04:25:34 -05:00
Marek Safar 158487fe94 Rename binary reference assemblies location 2015-02-10 10:21:29 +01:00
Marek Safar 85ee5582f6 [eval] Add C#6 using handling 2015-02-10 10:12:43 +01:00
Zoltan Varga e26e45cf2f Merge pull request #1558 from ermshiperete/fixCrash
[MWF] Fix NullReferenceException introduced by commit a080a7d
2015-02-10 04:05:26 -05:00
Damien Daspit f7593c22b0 [MWF] Fix NullReferenceException introduced by commit a080a7d
Change-Id: I5709063cc7eecc01fd1e2978cd8aac096060c31e
2015-02-10 09:59:50 +01:00
Marek Safar a74bac2da2 [mcs] Fixed casts rules don't apply to strings and arrays. Fixes #26892 2015-02-10 09:31:22 +01:00
Marek Safar c7a4778737 [mcs] Resolve delegate optional parameters only once. Fixes #26840 2015-02-10 08:49:50 +01:00
Zoltan Varga 8562a498f3 [jit] Factor out the gsharedvt constrained call handling code into a separate function. 2015-02-10 02:27:13 -05:00
Zoltan Varga 382cf74c98 [jit] Fix some issues with constrained gsharedvt calls to be able to handle some cases encountered with the new MS reference source code. 2015-02-10 02:20:32 -05:00
Zoltan Varga b8f1a79295 Increase some trampoline buffer sizes. 2015-02-09 23:08:57 -05:00
Zoltan Varga d7b1944dce Bump referencesource. 2015-02-09 22:40:50 -05:00
Zoltan Varga c83aeed35f Bump referencesource to e6af770c424af46f78d3b8f90eebbb2e0d7953a2. 2015-02-09 22:35:07 -05:00
Alex Rønne Petersen 23fa25b4b5 Revert "[mini] Implement atomic exchange with xchg on x86."
This reverts commit c96e58280c.

Getting this to work right with regards to register allocation
is turning out to be more complicated than it seems. Going to
abandon this for now.
2015-02-10 03:01:33 +01:00
Alex Rønne Petersen c96e58280c [mini] Implement atomic exchange with xchg on x86. 2015-02-10 01:49:18 +01:00
Stephen McConnel e9cf1dc44a Prevent right click from triggering ToolStripItem.HandleClick
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=26887.
2015-02-09 18:39:18 -06:00
Zoltan Varga 8856edd6d3 Disable some full-aot tests on amd64 since it doesn't support dyn calls/gsharedvt. 2015-02-09 19:09:21 -05:00
Alex Rønne Petersen 0366b81069 [mini] Implement atomic exchange with xchg on amd64. 2015-02-09 23:41:30 +01:00
Marek Safar d2994b1b3d [corlib] Remove unused file 2015-02-09 23:15:16 +01:00
Marek Safar 8d9e34a098 [corlib] Keep file names ordered 2015-02-09 23:14:45 +01:00
Marek Safar 1bfa0567dc Merge pull request #1556 from atsushieno/import-text-encoding
import referencesource CharUnicodeInfo and remove some runtime char tables.
2015-02-09 20:09:04 +01:00
Alex Rønne Petersen 8aaed197ca Revert "[mini] Implement atomic exchange with xchg on x86/amd64."
This reverts commit 1a319806fe.

This seems to cause memory corruption that results in random
SGen crashes, especially in Roslyn.
2015-02-09 19:32:15 +01:00
Ludovic Henry 449666271a [runtime] Lower log level of "counters not enabled" message in counters 2015-02-09 13:12:11 -05:00
Atsushi Eno c72628cf46 Remove unused unicode category data (which is now charinfo.nlp). 2015-02-10 01:43:10 +08:00
João Matos 48b7a501b0 Initialize the counters support before registering new ones.
This bug manifests itself in mkbundle'd programs that use the machine config support. Under this case, we can end up registering counters before initializing the counter support in the runtime:

```
* thread #1: tid = 0x141dec, 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
  * frame #0: 0x003ebdff mtouch-32`mono_counters_register(name=0x0042f7e3, type=2048, addr=0x00b81288) + 31 at mono-counters.c:218
    frame #1: 0x0025c3f6 mtouch-32`mono_loader_init + 198 at loader.c:106
    frame #2: 0x0025f005 mtouch-32`mono_dllmap_insert(assembly=0x00000000, dll=0x00d0a0c0, func=0x00000000, tdll=0x00d0a0d0, tfunc=0x00000000) + 53 at loader.c:1321
    frame #3: 0x002c28ca mtouch-32`dllmap_start(user_data=0x00d0a0b0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040) + 698 at mono-config.c:290
    frame #4: 0x002c2010 mtouch-32`start_element(context=0x00d09fa0, element_name=0x00d0a0a0, attribute_names=0x00d0a030, attribute_values=0x00d0a040, user_data=0xbffffb68, error=0x00000000) + 240 at mono-config.c:176
    frame #5: 0x0040ba6d mtouch-32`monoeg_g_markup_parse_context_parse(context=0x00d09fa0, text=0x00b72f30, text_len=240, error=0x00000000) + 1965 at gmarkup.c:351
    frame #6: 0x002c0a93 mtouch-32`mono_config_parse_xml_with_context(state=0xbffffb68, text=0x00b72f30, len=240) + 147 at mono-config.c:440
    frame #7: 0x002c09eb mtouch-32`mono_config_parse_memory(buffer=0x00b72f30) + 123 at mono-config.c:482
    frame #8: 0x00001e6d mtouch-32`install_dll_config_files + 29
    frame #9: 0x00001c86 mtouch-32`mono_mkbundle_init + 22
    frame #10: 0x000029db mtouch-32`main + 331
    frame #11: 0x00001c65 mtouch-32`start + 53
```

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24605.
2015-02-09 17:40:04 +00:00
Atsushi Eno d8aba3fa75 replace CharUnicodeInfo with that of referencesource and update runtime.
CharUnicodeInfo had conversion methods for uppercase/lowercase
conversion, and they are actually used by TextInfo. So moved them.
Then added another icall for "lite" version of internal character table
loader.

The new CharUnicodeInfo depends on "charinfo.nlp" resource file, which
does not exist in referencesource but can be generated by coreclr build
tools (as src/mscorlib/src/System/Globalization/Tables/CharInfo.nlp).

The coreclr rev. that built this specific checkin was c4eb037.
2015-02-10 00:47:16 +08:00
Marek Safar 0daaf302a5 [corlib] Update failing test 2015-02-10 02:01:29 +10:00
Marek Safar fe40c28be0 Merge pull request #1555 from JetBrains/unrecognized_pragma
Skip unrecognized #pragma directive
2015-02-09 11:17:32 +01:00
Miguel de Icaza d12c06df59 Fix the build 2015-02-08 13:52:29 -05:00
Leonid Shalupov e9b8cb6682 Add test for skipping unrecognized #pragma directive 2015-02-08 19:09:25 +01:00
Leonid Shalupov c4890a882a Skip unrecognized #pragma directive 2015-02-08 19:09:02 +01:00
Zoltan Varga 8628fd051b [jit] Remove unused disable_vtypes_in_regs variable. 2015-02-08 03:23:53 -05:00
Miguel de Icaza 4489d2399d [monop] Port to use IKVM.Reflection, add -xi and -xa options to easily lookup Xamarin.Android and Xamarin.iOS types 2015-02-07 22:44:50 -05:00
Zoltan Varga cc6e967a23 [sdb] Use a variant of g_path_get_basename () which can handle windows paths as well. Fixes #26436. 2015-02-07 22:37:50 -05:00
Zoltan Varga 66f5f06469 Revert "[llvm] Maps structs made up of floats/doubles to llvm structs containing floats."
This reverts commit bc9c77280f.

Revert this as it breaks pinvoke2.exe.
2015-02-07 22:07:06 -05:00
Zoltan Varga e179554eee Revert "Fix the loadable llvm build."
This reverts commit dfe6b21b5e.

Revert this as it breaks pinvoke2.exe.
2015-02-07 22:06:47 -05:00
Zoltan Varga 1f14a9721b Fix the loadable llvm build. 2015-02-07 18:01:43 -05:00
João Matos 1a341220c6 [decimal] Fixed the Windows build.
Works around the following compile error:

```/Users/triton/Development/mono/mono/metadata/decimal-ms.h:3:16: error: redefinition of 'struct tagDEC'
 typedef struct tagDEC {
                ^
In file included from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unknwn.h:37:0,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objidl.h:477,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/objbase.h:66,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/ole2.h:17,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:12,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/winscard.h:10,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/windows.h:97,
                 from /Users/triton/Development/mono/mono/io-layer/io-layer.h:24,
                 from /Users/triton/Development/mono/mono/metadata/process.h:17,
                 from /Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/unistd.h:11,
                 from /Users/triton/Development/mono/mono/metadata/icall.c:27:
/Users/triton/Development/monodroid/builds/toolchains/windows/mxe/usr/i686-w64-mingw32.static/include/wtypes.h:452:16: note: originally defined here
 typedef struct tagDEC {
                ^
```
2015-02-07 14:21:35 +00:00
Zoltan Varga dfe6b21b5e Fix the loadable llvm build. 2015-02-07 07:56:26 -05:00
Miguel de Icaza bc68eda84d Merge pull request #1552 from mono/ms-decimal
Bring the CoreCLR Decimal support to Mono.
2015-02-07 00:05:15 -05:00
Zoltan Varga bc9c77280f [llvm] Maps structs made up of floats/doubles to llvm structs containing floats. 2015-02-06 19:12:03 -05:00
Miguel de Icaza d1ff413081 Make referencesource point to mono/referencesource's mono branch 2015-02-06 17:39:44 -05:00
Miguel de Icaza b8f68cc3f4 [Decimal] Remove old decimal from the metadata directory 2015-02-06 17:28:37 -05:00
Jeffrey Stedfast f2c6ec43dc [Mono.Debugger.Soft] Fixed StackFrame.Domain logic to not blow up 2015-02-06 17:24:57 -05:00
Zoltan Varga ad38eb5cac [arm64] Add r4 opcodes. 2015-02-06 16:18:29 -05:00
Miguel de Icaza e4ee7a5e1f Remove old implementation of Decimal support, it served us well 2015-02-06 15:56:27 -05:00
Miguel de Icaza 97f01eac96 Merge branch 'master' into ms-decimal 2015-02-06 15:54:31 -05:00
Miguel de Icaza b1ca045003 [Decimal] Add test cases from the bugs that this branch fixes 2015-02-06 15:51:14 -05:00
Miguel de Icaza 9e13adae4b [Decimal] Expand test suite with Microsoft's CoreFX Decimal tests 2015-02-06 15:25:58 -05:00
Miguel de Icaza c13ecfcdee [Decimal] Fix another missing cast, makes the entire Mono test suite pass 2015-02-06 14:54:49 -05:00
Miguel de Icaza d72f9a0fc7 [Decimal] Set the reserved field, fix signed to unsigned cast mistakes from the port, document places where MS does not explicitly set reserved; Down to 1 failure 2015-02-06 14:09:40 -05:00
Zoltan Varga 7656a6beb4 Merge branch 'r4fp-ir' 2015-02-06 13:40:16 -05:00
Zoltan Varga 5a61d55c7f Fix the build. 2015-02-06 13:37:47 -05:00
Zoltan Varga 76b0aebf27 Add mixed r4/r8 opcodes to binary opcodes. 2015-02-06 13:32:03 -05:00
Zoltan Varga 32f6084793 Exclude the float32 optimization from -O=all. 2015-02-06 13:32:03 -05:00
Zoltan Varga 067ab06be1 Implement arm support. 2015-02-06 13:32:02 -05:00
Zoltan Varga c77eb2b62e Add LLVM support. 2015-02-06 13:32:02 -05:00
Zoltan Varga e0caebb53a Fix OP_MOVE_F_TO_I4 and OP_MOVE_I4_TO_F in float32 mode. 2015-02-06 13:32:02 -05:00
Zoltan Varga 1d6362cdbd Add support for generating 32 bit floating point code when operating on floats.
Design:

- Handle r4 types in the front-end normally like other types.
- Controlled using a 'float32' optimization flag, may become the default in the future.
- new stack type STACK_R4.
- new set of opcodes prefixed by 'R', use the same vregs as 'F' opcodes.
- opcodes which worked with r4 values are used as before, but generate different code
  in the back end (OP_R4CONST/OP_LOADR4_MEMBASE/OP_STORER4_MEMBASE_REG, etc.).
2015-02-06 13:30:19 -05:00
Miguel de Icaza 0a7d65e63e [Decimal] Fix enumeration values, down to 2 failures 2015-02-06 12:46:17 -05:00
Marek Safar b927fa8ee6 [corlib] Imports messages from coreclr project 2015-02-06 18:37:32 +01:00
Jeffrey Stedfast fcd44bb0d5 [Microsoft.Build.Utilities] Fixed to make unit tests pass again 2015-02-06 12:24:18 -05:00
Alex Rønne Petersen 1f6c5e8be7 [mini] Bump move_f_to_i4/move_i4_to_f insn sizes on x86. 2015-02-06 17:55:58 +01:00
Marek Safar 815c1bd287 Merge pull request #1551 from directhex/fix-missing-System.Web.ApplicationServices-sources
Move files which were split out in 4.0 from System.Web...
2015-02-06 17:55:54 +01:00
Marek Safar 9a26c9ef5f [mcs] Correctly import metadata constant with mismatched type and value. Fixes #24675 2015-02-06 17:54:59 +01:00
Jo Shields f3d505ed1e Ensure missing test_op_il_seq_point.sh is shipped in tarballs. 2015-02-06 10:48:47 -05:00
Alex Rønne Petersen cb085a39c5 [mini] Remove OP_ICONV_TO_R8_RAW since OP_MOVE_I4_TO_F does the same thing. 2015-02-06 16:45:14 +01:00
Alex Rønne Petersen 2bb9ed862c [mini] Use a spill var for float <-> int data transfer opcodes on x86. 2015-02-06 16:45:14 +01:00
Alex Rønne Petersen 1046214694 [mini] Remove some unnecessary amd64 codegen macros (we already had them with different names). 2015-02-06 16:45:14 +01:00
Jo Shields eb53f82111 Move files which were split out from System.Web into System.Web.ApplicationServices into the latter's directory. They no longer need to be in the former, since we no longer build the 2.0 profile they were originally part of. This fixes "no rule to make target" errors on tarball builds, caused by those files no longer being shipped in tarballs (make dist does not traverse a ../ boundary, so it wasn't enough for them to be listed in System.Web.ApplicationServices' manifest by System.Web's folder) 2015-02-06 10:17:54 -05:00
Miguel de Icaza a51ac80865 Merge pull request #1550 from tpetazzoni/mips-fix
mono-context.h: fix build on MIPS
2015-02-06 09:50:33 -05:00
Sebastien Pouliot 375b749fca [tests] Fix TypeDescriptorTests compilation when NUnitLite is used 2015-02-06 09:37:21 -05:00
Marek Safar c7ad272b9a [mcs] Fix cloning of labels from outer anonymous block. Fixes #26736 2015-02-06 15:14:26 +01:00
Marek Safar baa2c983b3 [mcs] Replace 1684 warning turned into error with unique 7069 error code 2015-02-06 15:14:26 +01:00
Thomas Petazzoni 8f489c24e1 mono-context.h: fix build on MIPS
The mono-context.h file uses definitions such as mips_fp and mips_sp,
which are defined in <mono/arch/mips/mips-codegen.h>, but this file is
not included, leading to build failures.

This fix is similar to 4437ecea91 (for
ARM).

Signed-off-by: Thomas Petazzoni <[email protected]>
2015-02-06 14:56:10 +01:00
João Matos 88e35ade18 [runtime] Fixed potential memory leak in a8390dcd63. 2015-02-06 12:46:24 +00:00
João Matos a8390dcd63 [runtime] Fixed marshalling bug in mono_marshal_get_native_func_wrapper.
It was caused by a mismatch of the `sig` and `csig` variables when looking the wrapper in the marshalling cache.

This was manifesting as the following crash in all Monodroid programs:

```
#0  mono_type_hash () at /Users/joao/Dev/droid/mono/mono/metadata/metadata.c:1390
#1  0x7512edf4 in mono_signature_hash () at /Users/joao/Dev/droid/mono/mono/metadata/metadata.c:4957
#2  0x75115d18 in signature_pointer_pair_hash () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#3  0x751dca10 in rehash () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#4  0x751dcbe0 in monoeg_g_hash_table_insert_replace () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#5  0x75119570 in mono_mb_create_and_cache_full () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#6  0x75127390 in mono_marshal_get_native_func_wrapper () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
#7  0x75127780 in mono_ftnptr_to_delegate () from /Users/joao/Dev/droid/monodroid/tests/runtime/gdb-symbols/libmonosgen-2.0.so
```

Originally introduced in https://github.com/mono/mono/pull/1540.
2015-02-06 12:35:45 +00:00
Marek Safar 6733010353 Merge pull request #1508 from slluis/fix-20966
Generate proper Link metadata for resources in imported projects
2015-02-06 11:05:40 +01:00
Marek Safar a62823ac14 Merge pull request #1549 from esdrubal/tziathens
[corlib] Fixed TimeZoneInfo.TryGetTransitionOffset.
2015-02-06 09:18:01 +01:00
Marcos Henrich 5df4852b1a [corlib] Fixed TimeZoneInfo.TryGetTransitionOffset.
Olson TZ transitions are in UTC, and TryGetTransitionOffset used the TZ standard time.
TryGetTransitionOffset was comparing UTC with TZ standard times thus DST transitions could be obtained some hours before their start.
TryGetTransitionOffset is now changing provided times to UTC before comparing them with the transition times.
Fixes #25050.
2015-02-06 09:30:51 +02:00
Marcos Henrich 0c5347ad43 [corlib] Added test to TimeZoneInfoTest. Covers #25050. 2015-02-06 06:20:54 +00:00
Miguel de Icaza 9241773f5c [Decimal] Fix structure definitions, down to 3 failures from Mono test suite 2015-02-06 00:42:44 -05:00
Miguel de Icaza 9d31706582 [Decimal] Down to six failures in Mono's test suite 2015-02-06 00:23:52 -05:00
Miguel de Icaza 98e9d352e4 [Decimal] Fix basic decimal startup issues 2015-02-05 22:56:41 -05:00
Miguel de Icaza fd78f734ea [Build] Make the code build with old bootstrapped environments 2015-02-05 22:11:59 -05:00
Miguel de Icaza 09abacdd14 [Decimal] Fix the build for unresolved symbols with some C compilers 2015-02-05 22:11:35 -05:00
Alex Rønne Petersen 36a5363ef7 [mini] Remove now-unneeded clob spec for move_f_to_i4 on amd64. 2015-02-06 03:47:40 +01:00
Miguel de Icaza 5bde5effed Merge pull request #1548 from akoeplinger/stubs
[bcl] Added a few stubs for missing APIs
2015-02-05 21:01:38 -05:00
Zoltan Varga 1445d4821c [runtime] Update valgrind headers to the ones from valgrind 3.10.1. Fixes #26688. 2015-02-05 20:53:21 -05:00
Miguel de Icaza dda1b86e64 [Decimal] Completed the methods in decimal-ms.c
This completes the list of methods in decimal-ms.c that are surfaced
to the Decimal class.  This change also swaps out the Decimal class
from Mono to the Microsoft implementation.

This has not been tested yet, beyond the compiler being able to read
decimals (it did crash without it).

CoreCLR has two different bits of code for SearchScale, it looks like
one is just old and has not been updated.  Moved to the new one, and
updated the code to pass the extra data that is missing from the
former one.
2015-02-05 18:25:48 -05:00
Zoltan Varga a5f77df5e1 [amd64] Avoid clobbering sreg1 in OP_MOVE_F_TO_I4. 2015-02-05 17:16:53 -05:00
Zoltan Varga 00a28a7dfd [jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732. 2015-02-05 17:16:53 -05:00
Rodrigo Kumpera 8b4a2f2bd6 [runtime] Plug a loader error leak. 2015-02-05 17:15:42 -05:00
Zoltan Varga 54c312fa93 Revert "[jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732."
This reverts commit 98f665aba9.

Revert this as it causes assertions on methods with large basic blocks.
2015-02-05 16:53:26 -05:00
Sebastien Pouliot 6bd76b142d Bump referencesource to disable some CAS usage 2015-02-05 15:55:09 -05:00
Alexander Köplinger 890ca8595e Fix error message to mention git instead of svn
Just a nitpick, but I saw this in a build log and thought I'd fix it.
2015-02-05 21:30:58 +01:00
Sebastien Pouliot 7145c08255 [linker] Only consider [Preserve] (i.e. without any parameters) on assembly-level as meaning 'preserve everything inside this assembly'. 2015-02-05 15:20:55 -05:00
Sebastien Pouliot 7b29d5abb2 [linker] Preserve types given to custom attributes - even if they are inside an array [#26030] 2015-02-05 15:19:46 -05:00
Sebastien Pouliot a7a4de9dd5 [linker] Do not process custom attribute fields unless there are some (avoids memory allocation for collections) 2015-02-05 15:18:47 -05:00
Mark Probst fe56186215 Merge pull request #1546 from evincarofautumn/faster-binprot
Make sgen-grep-binprot faster.
2015-02-05 11:55:26 -08:00
Jon Purdy b299715e36 [sgen] Make sgen-grep-binprot faster.
fread() spent a great deal of time locking, and we called malloc() once for
each entry. Replacing fread() with read() plus manual buffering, as well
as replacing malloc() with a static buffer, improves throughput by an
order of magnitude.

This also adds an '--input' option for reading from a stream other than
standard input.
2015-02-05 11:53:08 -08:00
Neale Ferguson d19817ad9c Use float<->integer instructions for move operations 2015-02-05 14:36:54 -05:00
Jeffrey Stedfast f076746dd7 [Microsoft.Build.Utilities] Fixed MSBuildErrorParser to be more robust 2015-02-05 13:43:14 -05:00
Marek Safar ecaa5d7faf [mcs] Prefer not missing type for ambiguous imported types. Fixes #26753 2015-02-05 18:25:18 +01:00
Alexander Köplinger 92af367655 [bcl] Added a few stubs for missing APIs
They are required for the upcoming System.Web port.
2015-02-05 18:09:40 +01:00
Marek Safar 52ce4a07b2 [corlib] TimeZoneInfo.ConvertTimeToUtc maximum datetime handling 2015-02-05 07:25:49 -05:00
Marek Safar 8442408da0 [runtime] Fixes setting FileVersionInfo managed booleans 2015-02-05 12:34:16 +01:00
Marek Safar 26a31a583b [xbuild] Fix When Condition with a user comment 2015-02-05 11:49:59 +01:00
Marek Safar 6b908c2f34 [build] remove unused defines 2015-02-05 11:28:40 +01:00
Marek Safar 7c0da3c990 [corlib] BitConverter from reference sources 2015-02-05 10:48:49 +01:00
Alex Rønne Petersen 4c887f7ba4 [mini] Really fix the float <-> int data transfer instructions on arm.
The ARM_CVTS/ARM_CVTD macros have somewhat deceptive names: They
describe the source data type, not the target data type.
2015-02-05 04:59:47 +01:00
Miguel de Icaza 5b2bb8c901 [decimal] Microsoft's unmanaged code for decimal support
This is a port of the CoreCLR Decimal support to C and to the Mono
coding conventions.  In the process of porting the code, I removed a
bunch of COM-isms and some Windows-isms that were just workaround with
compatibility typedefs and replaced it instead with stdint.h data
types as well as Mono assertions.

There are still a few methods missing, and the managed library is not
plugged yet (both constructors likely need to be altered to be managed
proxies to the init method).
2015-02-04 21:45:03 -05:00
Alex Rønne Petersen 136f17a024 Merge pull request #1541 from alexrp/mcs-build-cleanup
Clean up mcs build system
2015-02-05 03:13:59 +01:00
Miguel de Icaza dee36bfa52 Start work to generate dependencies 2015-02-04 21:05:29 -05:00
Alex Rønne Petersen 2baec073f4 [mini] Implement float <-> int data transfer instructions in the LLVM backend. 2015-02-05 02:03:38 +01:00
Rodrigo Kumpera 3b38dffbc4 [test] Add verifier test for cgt_un and valuetypes. 2015-02-04 17:08:47 -05:00
Rodrigo Kumpera ff87fbe74d [verifier] Properly verify CGT_UN when used with reference value and the null literal. 2015-02-04 17:06:38 -05:00
Zoltan Varga 98f665aba9 [jit] Avoid live range indexes overflowing for large basic blocks in the liveness pass. Fixes #26732. 2015-02-04 14:00:17 -05:00
Zoltan Varga 257620d383 [runtime] Enable the new interrupt code on arm64. 2015-02-04 13:22:38 -05:00
Marek Safar 03c62b9023 Move TimeZoneInfo tests to corlib 2015-02-04 19:09:14 +01:00
Marek Safar da7d598940 [system.xml] Disable failing test, requires reference source implementation 2015-02-04 18:46:30 +01:00
Marek Safar 798e9c0c41 [corlib] Fix overflow in TimeZoneInfo utc conversion 2015-02-04 17:55:41 +01:00
Marek Safar 22c8cc477f [mcs] update error message 2015-02-04 17:55:41 +01:00
Marek Safar b75b33ab83 [corlib] Boolean from reference sources 2015-02-04 17:55:41 +01:00
Radek Doulik 598920ce36 [android] disable TLS on android/x86_64
- otherwise we assert in sgen allocator
   in   sgen-gc.h:EMIT_TLS_ACCESS_NEXT_ADDR
   thru sgen-alloc.c:create_allocator
 - note that it is also disabled for ARM[64] and X86
   on android
2015-02-04 17:16:22 +01:00
Marek Safar 96eca3b925 [System] More TypeDescriptor tests 2015-02-04 15:49:41 +01:00
Marek Safar 9e396e4022 [corlib] Add test for #17626 2015-02-04 15:36:51 +01:00
Marek Safar aa4ba602fc [corlib] DateTime from reference sources 2015-02-04 15:36:51 +01:00
Alex Rønne Petersen 29a4519b5f Revert "[runtime] Fixed allowing non-object complex arguments to cgt.un"
This reverts commit 38f878ce9d.

This broke the build: http://wrench.mono-project.com/Wrench/WebServices/Download.aspx?workfile_id=3704132
2015-02-04 15:28:44 +01:00
Alex Rønne Petersen c294093080 [mini] Hopefully fix float <-> int data transfer instructions on x86. x87 sucks. 2015-02-04 14:58:03 +01:00
Alex Rønne Petersen 5ad8b5d9d4 [mini] Fix float <-> int data transfer instructions on arm/mips. 2015-02-04 14:42:43 +01:00
Alex Rønne Petersen b48718ed54 [mini] Fix x86/arm build. 2015-02-04 14:42:43 +01:00
João Matos 057af01163 Fixed System.Net.NetworkInformation tests to work with MonoTouch.NUnitLite. 2015-02-04 13:21:40 +00:00
João Matos acbf7557e4 [runtime] Added autoconf support for AMD64 Android cross compilation. 2015-02-04 13:08:32 +00:00
Alex Rønne Petersen 1a319806fe [mini] Implement atomic exchange with xchg on x86/amd64. 2015-02-04 13:18:13 +01:00
Alex Rønne Petersen 5ca71a7700 [mini] Use new float <-> int move opcodes to implement r4/r8 CAS/Exchange. 2015-02-04 12:05:59 +01:00
Alex Rønne Petersen afd8928030 [mini] Add new instructions for moving data between float and int regs.
These perform no conversions (other than any necessary single <-> double
conversions). They simply copy the raw data back and forth.
2015-02-04 12:05:59 +01:00
Alex Rønne Petersen 9095bc0d14 [mini] Apply the dreg != sreg1 optimization to OP_(F)MOVE in all backends. 2015-02-04 12:05:58 +01:00
Alex Rønne Petersen 1d3ec567aa [mini] Fix some cases where intrinsics did not have a stack type set. 2015-02-04 12:05:58 +01:00
Radek Doulik a99d8a396d [android] do not use tkill on android/amd64(x86_64) as well 2015-02-04 09:54:00 +01:00
Alex Rønne Petersen 00725c15bc Merge pull request #1543 from alexanderkyte/master
[runtime] Fixed allowing non-object complex arguments to cgt.un
2015-02-04 04:53:29 +01:00
Alexander Kyte 38f878ce9d [runtime] Fixed allowing non-object complex arguments to cgt.un 2015-02-03 22:43:50 -05:00
Zoltan Varga a85fe92f45 [amd64] Add missing amd64_sse_cvtss2si_reg_reg_size() codegen macro. 2015-02-03 20:44:26 -05:00
Vlad Brezae bea7d8a600 [jit] Pass the aligned object size to the managed allocator. 2015-02-03 23:51:59 +00:00
Vlad Brezae 29659f7623 [jit] Optimize the managed allocator fastpath
Send the instance_size as an argument to the managed object allocator to reduce memory dereferences from the vtable in the generated code.
2015-02-03 23:51:58 +00:00
Zoltan Varga 989301647e Merge pull request #1545 from akoeplinger/fix-windows-build
Fix Windows build
2015-02-03 15:58:12 -05:00
Alexander Köplinger 0b2a537abf Fix Windows build
It was broken by c731686feb
2015-02-03 10:40:03 -08:00
Miguel de Icaza 38a2f62b2f Updated the order file generated by following the instructions in msvc/scripts/README 2015-02-03 11:48:38 -05:00
Marek Safar 0b32ad8dfc [corlib] TimeSpan from reference sources 2015-02-03 16:20:55 +01:00
João Matos 58ae0ae309 [corlib] Fixed tests to work with NET_2_1 define. 2015-02-03 14:11:32 +00:00
Marek Safar 6427a13879 [corlib] DateTimeOffset from reference sources 2015-02-03 11:58:48 +01:00
Marek Safar 5937d3a70c [corlib] DateTimeFormatInfo and friends from reference sources 2015-02-03 10:30:30 +01:00
Marek Safar 98ecb517a7 [system] Add support for redirected http web-request with disabled AllowWriteStreamBuffering (empty streams only). Fixes #26640 2015-02-03 10:25:03 +01:00
Rodrigo Kumpera 98658d9091 [runtime] Replace a call to mono_get_method_full to mono_get_method_checked. 2015-02-02 22:36:15 -05:00
Alex Rønne Petersen e55268f3ab Remove old centum tests stuff.
Despite what the makefiles would have you believe, this was never
actually used when running the test suites. Don't ask me why - my
make-fu isn't good enough. Regardless, it's a bad idea to only
run tests for a specific set of assemblies. If some tests fail or
are unstable, they should be fixed, or disabled and have a bug
filed. Sweeping them under the rug like this is the wrong thing
to do. Incidentally, this commit doesn't add any new failures.
2015-02-03 03:41:15 +01:00
Alex Rønne Petersen c740b9831d Remove now-obsolete System.Web.Extensions(.Design)_1.0 assemblies.
These are no longer built in the newer profiles.
2015-02-03 03:41:14 +01:00
Alex Rønne Petersen 351e94964c Remove obsolete profiles and profile checks from the build system.
* Removed all old profiles from VALID_PROFILE checks.
* Removed most logic under checks like ifeq (net_2_0), $(PROFILE)) as
  it is dead code now that those old profiles are gone.
* Simplified the list of assemblies in mcs/class/Makefile now that we
  only have one profile.
* LIBRARY_NEEDS_POSTPROCESSING has been removed as it was only used by
  old 1.x assemblies that no longer exist.
* Build logic that sets MONO_PATH now points to mcs/class/lib/net_4_5
  instead of mcs/class/lib/net_2_0.
2015-02-03 03:41:14 +01:00
Alex Rønne Petersen 43a0088f3f Remove some leftover old 1.x, 2.x, 3.x profile ifdefs.
We no longer support these profiles so these code paths are dead.
2015-02-03 03:41:14 +01:00
Zoltan Varga 1b41e15f91 Avoid recompiling a test on every run. 2015-02-02 19:30:30 -05:00
Zoltan Varga d504f17272 Revert "Switch System.Web.ApplicationServices to referencesource"
This reverts commit ea88432e49.

Revert this as it breaks the System.Web tests.
2015-02-02 18:20:45 -05:00
Zoltan Varga e2193970c9 Revert "Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs"
This reverts commit b88fc96610.

Revert this as it breaks the System.Web tests.
2015-02-02 18:20:23 -05:00
Rodrigo Kumpera 9621471d3a [io-layer] Small portability fix. 2015-02-02 17:39:38 -05:00
Jonathan Pryor 52eceb5460 [System.Core/Android] Update TimeZone database self test.
The `make tzi.exe` target had bitrotted, and the
`make android-dump-tzdata` target generated inadvertent/unintentional
errors.  Fix the makefile so that things build and run.
2015-02-02 15:20:39 -05:00
Marek Safar d8cbfdfbb1 [corlib] Makes AggregateException output visible 2015-02-02 20:26:52 +01:00
João Matos d9f9ba0d8b [corlib] Fixed xammac build. 2015-02-02 15:53:02 +00:00
João Matos b6df249cc2 [corlib] Fixed build with NET_2_1 define. 2015-02-02 15:51:50 +00:00
Rolf Bjarne Kvinge f3b7aa8afc [System.Xml] Overwrite instead of append so that subsequent executions doesn't end up with garbage in the output. 2015-02-02 13:51:42 +01:00
Rodrigo Kumpera 03a28d987a [jit] Fix bad_method_regression_2 when SSA is enabled on 32bits. 2015-02-01 19:20:17 -05:00
Dave Curylo 7cbeed36fd Fix to UriTemplate.Match to properly handle query parameters without a value. No longer throws IndexOutOfRangeException and the parameter is added to the resulting UriTemplateMatch.QueryParameters field with a null value, same as in .NET.
This change is released under the MIT license.
2015-01-31 07:21:03 -05:00
Zoltan Varga 3edd4ffe6b Merge pull request #1540 from esdrubal/marshallingcache
[runtime] Added native_func_wrapper_cache.
2015-01-31 02:42:34 -05:00
Zoltan Varga 910ebf9438 [jit] Increase the inline memcpy/memset cutoff to 8 machine words. 2015-01-30 23:50:28 -05:00
Zoltan Varga 1f5b328219 [llvm] Add a new LLVMArgAsFpArgs argument passing convention which means an argument is passed as a set of fp scalar arguments, i.e. HFAs on arm64. 2015-01-30 20:59:55 -05:00
Zoltan Varga 4b2d1f0edc Fix a warning. 2015-01-30 19:15:24 -05:00
Zoltan Varga 4bd4e7539a [arm] Enable llvm for methods with struct arguments larger than 2 words. 2015-01-30 17:46:43 -05:00
Zoltan Varga d4077516ed [runtime] Disable a test which fails with llvm/gcc. 2015-01-30 15:43:22 -05:00
Rodrigo Kumpera c731686feb Don't include the poll backed directly into the threadpool source code. 2015-01-30 14:07:52 -05:00
Rodrigo Kumpera ebf7c45f74 [runtime] Skip the finalizer thread while it's sleeping. 2015-01-30 14:07:52 -05:00
Marcos Henrich 09c48bc964 [runtime] Added native_func_wrapper_cache.
mono_marshal_get_native_func_wrapper now uses native_func_wrapper_cache indexed by SignaturePointerPair,

Using SignaturePointerPair index instead of MonoMethod index avoids problems when one native function needs multiple wrappers.
e.g: when the managed code creates delegates for function pointers with parameters that require different marshallings.

This fixes bug 26127.
2015-01-30 17:01:45 +00:00
Marcos Henrich e8f48de9bb [runtime] Renamed SignatureMethodPair to SignaturePointerPair.
Changed field MonoMethod* method to gpointer pointer.
This change was done because we need in some cases to use a signature pointer pair.
2015-01-30 15:26:03 +00:00
Marek Safar 26618719fe Merge pull request #1539 from directhex/use-referencesource-for-System.Web.ApplicationServices
Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs
2015-01-30 15:13:37 +01:00
Jo Shields b88fc96610 Include hard-coded strings (SR.cs-style) rather than using AppliCationServicesStrings.Designer.cs
This avoids depending on a missing .resources file with string translations in it
2015-01-30 14:09:15 +00:00
João Matos 6fa8f480dd Merge pull request #1538 from directhex/use-referencesource-for-System.Web.ApplicationServices
Switch System.Web.ApplicationServices to ReferenceSource.
2015-01-30 12:45:38 +00:00
Jo Shields ea88432e49 Switch System.Web.ApplicationServices to referencesource
Due to the removal of the net_2_0 profile, the files in ../System.Web/System.Web.Security aren't included in make dist anymore since they aren't used in System.Web (the classes got moved to System.Web.ApplicationServices.dll in .NET 4).

This breaks the tarball builds, as System.Web.ApplicationServices relies
on those files, so we now include the ReferenceSource equivalents instead.
2015-01-30 12:44:47 +00:00
Rodrigo Kumpera 2436f4c059 [runtime] Use MonoError instead of loader error with signature parsing. 2015-01-30 01:03:01 -05:00
Sebastien Pouliot 998dbd5a9d Bump referencesource to disable CAS calls on System.Componentmodel.TypeDescriptor [#26554] 2015-01-29 19:58:45 -05:00
Alex Rønne Petersen f3d7670010 [mini] Fix Enum.HasFlag () intrinsic emitting a bad OP_LCEQ on 32-bit. 2015-01-30 01:10:31 +01:00
Zoltan Varga 8b6ae32c26 Fix the dreg op the long_ccc instructions, those instructions return ints. 2015-01-29 19:09:43 -05:00
Mark Probst d43c5b2723 Merge pull request #1537 from evincarofautumn/color-binprot
Add color mode to sgen-grep-binprot.
2015-01-29 14:09:14 -08:00
Jon Purdy b63d941ba0 [runtime] Add color mode to sgen-grep-binprot.
When searching for a pointer with '--color' or '-c', the field in a
protocol entry that matched will be highlighted; when searching for
multiple pointers, they will be highlighted in different colors
according to their order on the command line. When highlighting more
than six pointers, colors will be reused.
2015-01-29 13:51:27 -08:00
Jon Purdy 9df536fcc6 [runtime] Fix incorrect labels in sgen-grep-binprot output. 2015-01-29 12:52:13 -08:00
Miguel de Icaza 4bc5170cb5 Add more detail 2015-01-29 15:39:59 -05:00
Miguel de Icaza 9e53c70376 [lldb] Document and install the mono.py file for LLDB 2015-01-29 15:33:48 -05:00
Zoltan Varga 2457f29139 Fix a warning. 2015-01-29 15:29:45 -05:00
Alex Rønne Petersen bc13a8125e [mini] Fix decomposition of long opcodes in VolatileRead ()/VolatileWrite () intrinsics. 2015-01-29 19:06:33 +01:00
Alex Rønne Petersen 8221afc2bc Optimize Enum.HasFlag () implementation and recognize it in the JIT.
The previous implementation did a ton of reflection and boxing making
it about 4x slower than it should be. This new (native) implementation
simply memcpy ()s the values out of the Enum objects and then does the
bitwise AND.

In addition, the JIT now recognizes this common IL pattern:

	<push int or long ptr>
	<push int or long>
	box MyFlagsEnum
	constrained. MyFlagsEnum
	callvirt instace bool class [mscorlib] System.Enum::HasFlag (class [mscorlib] System.Enum)

This is generated from C# code such as:

	MyFlagsEnum a = ..., b = ...;
	a.HasFlag (b);

When the operand types of the `box` and `constrained.` instructions are
the same, we can skip all the slow stuff that HasFlag () normally does
and simply turn the whole thing into this IR:

	<this> = loadi4_membase <this_ptr>
	<temp> = int_and <this> <flag>
	icompare <temp> <flag>
	<result> = int_ceq

This is about 60x faster than the old HasFlag () without any JIT support
and about 15x faster than the new HasFlag () native implementation.

Also, added missing argument checks to HasFlag ().
2015-01-29 19:06:33 +01:00
João Matos 32db079545 [build] Updated the class library MSBuild projects. 2015-01-29 17:02:08 +00:00
Rodrigo Kumpera 7551802f99 Merge pull request #1536 from esdrubal/noreuse
[runtime] MonoIO methods using SafeHandle now prevent handle reuse.
2015-01-29 10:15:05 -06:00
João Matos 8c8eb43638 [System.Core] Fixed interpreter build. 2015-01-29 16:11:37 +00:00
Miguel de Icaza 27da886fe8 [FtpWebRequest] Add test for bug #26312, issue was fixed by bringing .NET's implementation 2015-01-29 10:45:59 -05:00
Marcos Henrich cfbd2c797b [runtime] MonoIO methods using SafeHandle now prevent handle reuse.
This reverts partially commit 753229c72dd9f2b63beb097700e350164b887c2.

Marshallers are not called for ICalls parameters so the change of ICalls parameters to SafeHandle did not prevents handle reuse.

To prevent handle reuse ICalls are no longer called directly.
Instead we call a method that receives a SafeHandle and wraps the ICall call with safeHandle.DangerousAddRef and safeHandle.DangerousReleaseRef.

This guarantees that the safe handle reference countererence does not reach zero before or while the ICall, thus avoiding the handle beeing released and possibly reused.
2015-01-29 15:27:57 +00:00
Marek Safar 01557ce516 [system.core] Fixes MT build 2015-01-29 15:54:54 +01:00
Marcos Henrich d08bfead6f [symbolicate] Added tool README. 2015-01-29 13:13:00 +00:00
Rodrigo Kumpera dc953f8095 [eglib] [io-layer] Have a single wrapper around getdtablesize. This removes the duplicate on io-layer and exports the eglib one. 2015-01-28 20:28:13 -05:00
Zoltan Varga d547860431 [mdoc] More updates to expected test output. 2015-01-28 20:15:28 -05:00
Alex Rønne Petersen 55b090587d [mini] Prefer OP_ICEQ over OP_CEQ in i4 CAS intrinsics. 2015-01-29 01:17:06 +01:00
Zoltan Varga 57a302ce03 [arm64] Add tests for loading of sbyte/bool arguments passed on the stack. 2015-01-28 18:39:24 -05:00
Rodrigo Kumpera 3798f91417 [profiler] Report methods not found in async mode due to AOT. 2015-01-28 18:25:46 -05:00
Rodrigo Kumpera bb83aaa4f0 [utils] Fix mono_dl_build_path termination logic. 2015-01-28 18:25:45 -05:00
Rodrigo Kumpera 1e47df3c7b [runtime] Fix appdomain loading event ordering. 2015-01-28 18:25:41 -05:00
Kai Ruhnau 46b5b849ae Populate the RequestingAssembly property of ResolveEventArgs 2015-01-28 18:15:30 -05:00
Zoltan Varga 98949d2e25 Merge pull request #1535 from StephenMcConnel/bug-26523
Fix the default behavior of ToolStripLayoutStyle.Table
2015-01-28 17:54:38 -05:00
Stephen McConnel aa7bfb2359 Fix the default behavior of ToolStripLayoutStyle.Table
This addresses https://bugzilla.xamarin.com/show_bug.cgi?id=26523.
2015-01-28 16:52:40 -06:00
Alex Rønne Petersen 962c9682ab [mini] Add some missing atomic instructions to cpu-arm64.md. 2015-01-28 23:48:36 +01:00
Ludovic Henry 2c524916b7 [runtime] Fix #26307 "Random crash due to threading issue in new threadpool heuristics code"
By locking `threads_lock` before launching the thread, we guarantee that the thread is not going to remove itself from `threads` before we actually add it to `threads`.
2015-01-28 15:56:07 -05:00
Zoltan Varga d1647dabf8 Merge pull request #1533 from jbevain/pdb2mdb-roslyn
[pdb2mdb] Skip unknown pdb metadata
2015-01-28 15:45:26 -05:00
Rodrigo Kumpera 36afbc6563 Merge pull request #1510 from BrzVlad/fix-file-map
Fix file map
2015-01-28 14:18:19 -06:00
Mark Probst 5f70b2e00b Merge pull request #1527 from ludovic-henry/master
[runtime] Generate binary protocol functions and structure with macro
2015-01-28 10:12:50 -08:00
Alex Rønne Petersen 5b1bce5693 [mini] Add atomic load/store instructions for float/double. 2015-01-28 18:29:09 +01:00
Alex Rønne Petersen 40ad17a1c3 [mini] Lower atomic load/store instruction sizes on ARM. 2015-01-28 18:29:09 +01:00
Alex Rønne Petersen 133aad946c [mini] Fix some warnings. 2015-01-28 18:29:09 +01:00
João Matos 78e28d1121 [runtime] Fixed mono_dl_open_file to work in Android. 2015-01-28 17:21:22 +00:00
Ludovic Henry b9da8d3f1e [runtime] Generate binary protocol functions and structure with macro
You just have to edit mono/metadata/sgen-protocol-def.h to generate a new binary protocol entry type
2015-01-28 11:51:51 -05:00
Marcos Henrich 4f2b974bfa [symbolicate] Added symbolicate.expected.
The added file Test/symbolicate.expected contains the value that we expect to find in Test/out/symbolicate.out.
make check now uses Test/symbolicate.expected.
2015-01-28 16:35:13 +00:00
Marcos Henrich c052b2618c [runtime] Duplicated instructions OP_IL_SEQ_POINT are now removed.
Sequences of OP_IL_SEQ_POINT instructions are now reduced to only the instruction.
This removes about half of the generated sequence point instructions.
2015-01-28 16:35:13 +00:00
Henrik Feldt 789d43622e [crypto] Re-instantiate for Invariants() test 2015-01-28 17:13:02 +01:00
Henrik Feldt 0b8d94d285 [crypto] check key length in test 2015-01-28 16:51:11 +01:00
Marek Safar b23077459a [System.Core] More reference sources 2015-01-28 16:30:19 +01:00
Marek Safar f90fe36593 [corlib] Move Aes.cs to corlib 2015-01-28 16:30:19 +01:00
Marek Safar 895f9cc39e [system.core] Profiles cleanup 2015-01-28 16:30:18 +01:00
Marek Safar cba3edec90 [corlib] Move TimeZoneInfo source files to assembly they are used 2015-01-28 16:30:18 +01:00
Marek Safar a303b38586 [system.core] Cleanup TimeZoneInfo ifdefs 2015-01-28 16:30:18 +01:00
Henrik Feldt 7fc8c726ad [crypto] Key size 128 bytes for HMACSHA512
Using recommended key size according to MSDN (1) and RFC4868 (2).

 (1): https://msdn.microsoft.com/en-us/library/w5y83hkf%28v=vs.110%29.aspx
 (2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt c72f6c2fb5 [crypto] Key size 128 bytes for HMACSHA384
Using recommended key size according to MSDN (1) and RFC4868 (2).

 (1): https://msdn.microsoft.com/en-us/library/h43559cy%28v=vs.110%29.aspx
 (2): https://tools.ietf.org/html/rfc4868
2015-01-28 16:28:24 +01:00
Henrik Feldt ad4a6a5369 [crypto] Key size 64 for HMACSHA256
Using recommended key size according to MSDN (1) and RFC4868.

Fixes #23808 - https://bugzilla.xamarin.com/show_bug.cgi?id=23808

 (1): https://msdn.microsoft.com/en-us/library/9c9tf8wc%28v=vs.110%29.aspx
 (2): https://tools.ietf.org/html/rfc4868 - under
      2.1.1.  Data Origin Authentication and Integrity Verification Usage
2015-01-28 16:28:09 +01:00
Henrik Feldt f3d2c41b26 [crypto] Key size 64 for HMACSHA1
This HMAC cipher accepts any key size (1), took from RFC2104, which uses
the full 64 bytes of key since it has a block length of 64 bytes.

 (1): https://www.ietf.org/rfc/rfc2104.txt - Chapter 2: Definition of HMAC
2015-01-28 16:27:54 +01:00
Henrik Feldt 1caf94bec7 [crypto] Key size 64 for HMACRIPEMD160
This HMAC cipher accepts any key size (1), took 64 bytes from MSDN (2)

 (1): https://tools.ietf.org/html/rfc2857 - chapter 3 keying material
 (2): https://msdn.microsoft.com/en-us/library/8k00xhf0%28v=vs.110%29.aspx
2015-01-28 16:27:41 +01:00
João Matos 786edf7ad6 [msvc] Updated runtime project files. 2015-01-28 15:09:14 +00:00
João Matos cde444ffb0 [runtime] Windows build fixes. 2015-01-28 15:07:17 +00:00
Jb Evain 974526dd3c [pdb2mdb] Skip unknown pdb metadata
This patch allows pdb2mdb to convert pdb files containing
metadata items emitted by the Roslyn compiler.
2015-01-28 15:36:46 +01:00
Alex Rønne Petersen 4d72abb180 [mini] Fix a few cases where incorrect vreg types were being allocated for intrinsics. 2015-01-28 14:36:49 +01:00
Alex Rønne Petersen c6fb35d47d [mini] Fix stack type for atomic intrinsics involving IntPtr. 2015-01-28 14:36:49 +01:00
Rolf Bjarne Kvinge 2bdeceed14 [mono-api-html] Take arity into account when comparing methods.
Fixes a crash when there are two methods overloaded by arity:

System.InvalidOperationException: Sequence contains more than one matching element
  at System.Linq.Enumerable.Single[XElement] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00038] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2371
  at System.Linq.Enumerable.SingleOrDefault[XElement] (IEnumerable`1 source, System.Func`2 predicate) [0x00007] in /private/tmp/source-mono-mac-3.10.0-branch/bockbuild-mono-3.10.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.10.0/mcs/class/System.Core/System.Linq/Enumerable.cs:2445
  at Xamarin.ApiDiff.MemberComparer.Find (IEnumerable`1 target) [0x00019] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:72
  at Xamarin.ApiDiff.MemberComparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x0003c] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:83
  at Xamarin.ApiDiff.MemberComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x000a2] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/MemberComparer.cs:55
  at Xamarin.ApiDiff.ClassComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0005b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:210
  at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
  at Xamarin.ApiDiff.ClassComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ClassComparer.cs:67
  at Xamarin.ApiDiff.NamespaceComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0001a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:75
  at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
  at Xamarin.ApiDiff.NamespaceComparer.Compare (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x00055] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/NamespaceComparer.cs:49
  at Xamarin.ApiDiff.AssemblyComparer.Modified (System.Xml.Linq.XElement source, System.Xml.Linq.XElement target) [0x0002b] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:70
  at Xamarin.ApiDiff.Comparer.Compare (IEnumerable`1 source, IEnumerable`1 target) [0x00093] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/Comparer.cs:80
  at Xamarin.ApiDiff.AssemblyComparer.Compare () [0x0004a] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/AssemblyComparer.cs:50
  at Xamarin.ApiDiff.Program.Main (System.String[] args) [0x00328] in /Users/builder/data/lanes/macios-mac-master/177810cb/source/mono/mcs/tools/corcompare/mono-api-html/ApiDiff.cs:164
2015-01-28 14:17:17 +01:00
Alex Rønne Petersen 416cbef8d8 [mini] Recognize and optimize Thread.VolatileRead ()/VolatileWrite (). 2015-01-28 13:30:57 +01:00
Alex Rønne Petersen 90d942e1c5 [mini] Recognize and optimize the new 4-parameter CAS overload. 2015-01-28 11:57:06 +01:00
Alex Rønne Petersen 9f3f9b174c [corlib] Add a new generated test file to .gitignore. 2015-01-28 11:57:06 +01:00
Jo Shields 559b0b2c67 Missing bracket from 8b10cef3 2015-01-28 10:50:32 +00:00
Marek Safar d5febd5365 [mdoc] update expected delegate exceptions 2015-01-28 10:07:15 +01:00
Zoltan Varga e5d76a7074 [amd64] Add 32bit fp codegen macros. 2015-01-27 20:25:56 -05:00
Rodrigo Kumpera 417fc5e789 [runtime] Cleanup networking init/shutdown code. 2015-01-27 18:35:38 -05:00
Rodrigo Kumpera 8b10cef344 [utils] Cleanup the dynamic loading code and split the platform specific code into multiple files.
This makes the actual code much simpler to read and work with as we can clearly see what's done on each
target.
2015-01-27 17:59:33 -05:00
Zoltan Varga 69dc4238a2 Merge pull request #1530 from StephenMcConnel/bug-26478
Fix TextBox display to handle kerning fonts
2015-01-27 16:47:24 -05:00
Stephen McConnel 3280b20650 Fix TextBox display to handle kerning fonts
Many fonts, including the default DejaVu Sans, use kerning between
certain character pairs.  This resulted in garbled or even invisible
display during typing of strings with a lot of kerning going on.  An
attempt is made to retain the current speed-optimized implementation
while using accurate, slower string width measurements when needed.
See https://bugzilla.xamarin.com/show_bug.cgi?id=26478 for details.
2015-01-27 15:40:11 -06:00
Marcos Henrich 81af7de23d [symbolicate] Makefile fixes. 2015-01-27 18:54:18 +00:00
Zoltan Varga ec1244784c Add tools/symbolicate to the build. 2015-01-27 13:49:30 -05:00
Marek Safar 6a0b61634d [corlib] Remove redundant checks from delegate::combine 2015-01-27 19:46:55 +01:00
Zoltan Varga d2ec22099a [sdb] Avoid errors when a vtype method is invoked with the InvokeOptions.Virtual flag set. 2015-01-27 13:09:59 -05:00
Marek Safar 0d1f48b9e1 [mcs] Fix type inference fixing to filter all candidates 2015-01-27 18:53:17 +01:00
Atsushi Eno 057623eb7c Merge pull request #1529 from alistair/xmlreader_read_to_next_sibling_bug
XmlReader.ReadToNextSibling(string) doesn't match .net behaviour
2015-01-28 01:04:26 +08:00
Marek Safar a24bb201eb Revert referencesource change from 9ac4b5b7a7 2015-01-27 17:58:29 +01:00
Marek Safar 52a93b2dbb Revert to broken scope reference indexing 2015-01-27 17:58:29 +01:00
Marcos Henrich 0e3f9853ac [symbolicate] Added target check to Makefile.
Target check verifies that symbolicate is capable of returning a debug stacktrace from a release stackframe.
2015-01-27 16:25:16 +00:00
Alistair Bush aba3b1a915 Unit test for reproduction of XmlReader.ReadToNextSibling behaviour 2015-01-28 04:17:52 +13:00
Marek Safar 3abac7458e Update ikvm 2015-01-27 16:14:54 +01:00
João Matos b655fb35c6 [runtime] Fixed MONO_STRUCT_OFFSET to work with non-cross builds. 2015-01-27 15:06:08 +00:00
Alex Rønne Petersen 157db2ae27 [corlib] Switch to reference source System.Threading.SpinLock. 2015-01-27 13:05:28 +01:00
Alex Rønne Petersen 4f5195edd2 [mini] Make intrinsic method signature checks more robust.
This is so we can avoid miscompiling things left and right
when new overloads are added. For example, before this patch,
we miscompiled the new 4-parameter CAS () overload.
2015-01-27 13:05:28 +01:00
Marcos Henrich 951299ddae test_op_il_seq_point.sh now properly generates tmp files. 2015-01-27 10:59:14 +00:00
Marcos Henrich b457329942 test_op_il_seq_point.sh now calls mono with option --compile-all=1
Calling mono with flag --compile-all=1 avoids running the code and possible stdout problems and it also compiles every method.
As test_op_il_seq_point.sh now only compiles it is now capable of testing libraries and executables that are expecting parameters.
2015-01-27 09:37:48 +00:00
Zoltan Varga 2140250e4f [corlib] Wait for tasks to finish in some Tasks tests to prevent races between tests. 2015-01-26 19:59:06 -05:00
Vlad Brezae 8b914ca48b When map size is 0, use the aligned size of the file.
As MS does.
2015-01-26 15:08:15 -08:00
Vlad Brezae 08f78b1615 Fail on mappings that exceed the file size.
As MS does.
2015-01-26 15:08:14 -08:00
Vlad Brezae 495cd1500b Fix handling of mappings over file size.
Add tests.
2015-01-26 15:08:14 -08:00
Vlad Brezae 3f81926327 Fix truncation of newly created map files.
File truncation could skip due to the fact that st_size field is only initialized for already existing files.
2015-01-26 15:06:53 -08:00
Zoltan Varga 85d7771306 [sdb] Avoid errors when a static method is invoked with the InvokeOptions.Virtual flag set. 2015-01-26 17:59:32 -05:00
Rodrigo Kumpera 89ed7a9018 [runtime] Check for sigaction been present when trying to use signals. 2015-01-26 16:30:43 -05:00
Rodrigo Kumpera b3a4976b6d [utils] Explicitly check if the system has mincore instead of relying on mmap been present. 2015-01-26 16:30:42 -05:00
Zoltan Varga b97979906b [runtime] Add infrastructure code for getting/setting Thread.Priority. 2015-01-26 15:13:46 -05:00
Rodrigo Kumpera 9ac4b5b7a7 [runtime] Introduce MonoError into mono_metadata_parse_method_signature_full. 2015-01-26 14:50:36 -05:00
Rodrigo Kumpera a4188b73cd Fix loader error <> MonoError interop. 2015-01-26 14:26:18 -05:00
Marek Safar 3632d51916 [corlib] Report constructor ContainsGenericParameters by inspecting parent type. Fixes #26412 2015-01-26 18:12:00 +01:00
Marek Safar 8fcdfeda92 Update reference sources to correctly fix #26375 2015-01-26 17:41:53 +01:00
Alex Rønne Petersen 1a858cbfbd [runtime] Use MonoBoolean in icall signature, not gboolean. 2015-01-26 17:14:51 +01:00
João Matos 20eb41f97a [runtime] Fixed the iOS build.
Failure caused by https://github.com/mono/mono/commit/2f1b464beb14a1b6b6099a03fc332493293bef35.

```
../../../../../mono/mono/utils/mono-proclib.c:104:8: error: use of undeclared identifier 'errno'
                        if (errno != ENOMEM)
                            ^
../../../../../mono/mono/utils/mono-proclib.c:104:17: error: use of undeclared identifier 'ENOMEM'
                        if (errno != ENOMEM)
```
2015-01-26 14:59:39 +00:00
João Matos b52a468f49 Partial revert of "Fixes mobile build"
This reverts commit 4d3877d23b.

We cannot remove this file as the build logic is expecting it since we override it from mono-extensions.

```System/Guid.cs(42,7): error CS0246: The type or namespace name `Crimson' could not be found. Are you missing an assembly reference?```
2015-01-26 14:59:39 +00:00
Marek Safar fc81c9a972 Revert corlib changes from 268627a68b 2015-01-26 15:50:58 +01:00
Marek Safar 268627a68b [mcs] Emit catch scope with correct start offset. Also fixes local variable scope index reference. Fixes #25358 2015-01-26 15:46:03 +01:00
Alex Rønne Petersen 506d405b98 Fixup for 2644152b06.
Accidentally committed an incomplete patch.
2015-01-26 14:11:20 +01:00
Marek Safar b3c4d9d786 Merge pull request #1521 from esdrubal/fshandle
[corlib] FileStream now uses SafeFileHandle.
2015-01-26 13:46:05 +01:00
Marcos Henrich 7a81fd5b30 [corlib] FileStream now uses SafeFileHandle.
FileStream now stores a SafeFileHandle instead of a IntPtr handle.
Added ObjectDisposedException to more methods.
2015-01-26 12:27:44 +00:00
Marcos Henrich 753229c72d [corlib] Changed some MonoIO methods to use SafeHandle. 2015-01-26 12:27:42 +00:00
João Matos 6c65d62a14 [System] Fixed mobile build. 2015-01-26 12:03:17 +00:00
Jo Shields cd9db9cb45 Merge pull request #1525 from akoeplinger/fix-dynamicdata-test
[System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
2015-01-26 10:31:36 +00:00
Alex Rønne Petersen 33e5da7a47 Revert "[runtime] Fix getting main thread's stack size with musl."
This reverts commit 67d84faecb.

This is not enough on its own to fix sigaltstack support with musl.
2015-01-26 07:11:51 +01:00
Alex Rønne Petersen 67d84faecb [runtime] Fix getting main thread's stack size with musl.
See the code for an explanation of this mess.
2015-01-25 16:14:23 +01:00
Alexander Köplinger cb3835ba9e [System.Web.DynamicData] Fix MetaColumnTest.Attributes() test
It started failing when code from MS referencesource was imported.
I checked on MS.NET and the list of attributes is now the same on Mono
(except an additional __DynamicallyInvokableAttribute on MS.NET).
2015-01-25 15:05:16 +01:00
Alex Rønne Petersen 36589008a4 [runtime] Fix build when using musl libc. 2015-01-25 08:30:34 +01:00
Zoltan Varga 1d5f1c4760 Merge pull request #1522 from StephenMcConnel/bug-26258
Fix occasional rendering problem in TextBoxes
2015-01-24 22:10:10 -05:00
Zoltan Varga 2f1b464beb [runtime] Avoid failures in Process.GetProcesses () when the number of processes is above 400. Fixes #26382. 2015-01-24 21:14:53 -05:00
Zoltan Varga b21fe11d6c [runtime] Allow spaces after commas in generic instances passed in Type.GetType (). Fixes #26384. 2015-01-24 19:22:54 -05:00
Zoltan Varga f342649f75 [jit] Properly inflate method signatures used in CEE_NEWOBJ opcodes. Fixes #26346. 2015-01-24 19:11:11 -05:00
Marek Safar 4d3877d23b Fixes mobile build 2015-01-24 09:25:35 +01:00
Alex Rønne Petersen 94a922305a [mini] Fix setting stack type for some atomic instructions.
Fixes some assertion failures introduced by 78141114e3.
2015-01-24 08:47:10 +01:00
Zoltan Varga 0efa5704f4 Fix the build. 2015-01-23 20:13:05 -05:00
Alex Rønne Petersen 4d24ccadc6 [mini] Implement OP_MEMORY_BARRIER on MIPS. 2015-01-24 01:08:02 +01:00
Alex Rønne Petersen f457dee224 [mini] Fix CAS atomic ordering under LLVM.
AcquireRelease [0] and SequentiallyConsistent [1] are not equivalent.

[0] http://llvm.org/docs/Atomics.html#acquirerelease
[1] http://llvm.org/docs/Atomics.html#sequentiallyconsistent
2015-01-24 01:08:02 +01:00
Alex Rønne Petersen c118dae7d3 [mini] Add atomic load/store instruction definitions for ARM64. 2015-01-24 01:08:02 +01:00
Alex Rønne Petersen 5bf4ab138d [mini] Implement atomic load/store instructions on ARM. 2015-01-24 01:08:02 +01:00
Alex Rønne Petersen 52bfd89d96 [mini] Implement atomic load/store instructions on x86. 2015-01-24 01:08:02 +01:00
Alex Rønne Petersen c25ff177fd [mini] Implement atomic load/store instructions on AMD64. 2015-01-24 01:08:01 +01:00
Alex Rønne Petersen df625319bb [mini] Implement atomic load/store opcodes in the LLVM backend.
Requires a newer Mono LLVM fork and is only enabled on MONO_API_VERSION >= 4.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen 3198e62024 [mini] Add new atomic load/store opcodes with acq/rel/seq semantics.
These are emitted by recognizing Interlocked and Volatile methods. They allow
us to generate more efficient instruction sequences on certain architectures
(e.g. ARM64 which has specialized load-acquire and store-release instructions).
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen 78141114e3 [mini] Also match Interlocked.Exchange<T> () in mono_method_to_ir (). 2015-01-24 01:08:01 +01:00
Alex Rønne Petersen e901b3377c [mini] Memory barrier fixes, simplifications, and optimizations.
* Barrier semantics is now specified as acquire, release, and sequentially
  consistent. This is in line with CIL/.NET semantics and also maps better to
  LLVM's fence types.
* Use the mfence instruction for memory barriers on AMD64 as it's smaller
  (and presumably also faster).
* We now emit specific barriers when using LLVM instead of always emitting
  sequentially consistent barriers.
* Barriers emitted for the CIL volatile prefix instruction are now more
  specific instead of always being sequentially consistent.
* Fixed emission of CEE_MONO_MEMORY_BARRIER in SGen's managed allocators. For
  some reason (that I haven't had time to look into), mono_mb_emit_op ()
  clobbers the barrier kind operand. This meant that in many cases we ended
  up not actually emitting any barriers because the switches in the backends
  didn't handle the clobbered values. mono_mb_emit_i4 () seems to work.
* Fixed handling of CEE_MONO_MEMORY_BARRIER in mono_method_to_ir (). Since it's
  a custom opcode, the opcode is actually 2 bytes long. Another source of
  barriers not actually being emitted.
2015-01-24 01:08:01 +01:00
Alex Rønne Petersen 2644152b06 Add an internal Interlocked.CompareExchange () icall overload needed by MS BCL. 2015-01-24 01:08:01 +01:00
Martin Baulig 3bcd0eb9de Bump referencesource to un-break Xamarin Studio.
See https://bugzilla.xamarin.com/show_bug.cgi?id=26375.
2015-01-24 00:48:16 +01:00
João Matos be92f03550 [runtime] Get Mono's LLVM API version from the LLVM repo when cross compiling.
The previous code was hardcoding Mono's LLVM API version which was less than ideal. The API has been bumped twice since without this being updated.

This depends on a recent Mono LLVM version, at least https://github.com/mono/llvm/commit/607aeaae423da73e6ddfe49af4741fa1bc5f9e78.
2015-01-23 16:46:32 +00:00
João Matos 6d17bd5611 [mini] Include signal.h in mini.c.
This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd.

Error:

```
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6645:31: note: each undeclared identifier is reported only once for each function it appears in
/Users/joao/Dev/droid/mono/mono/mini/mini.c: In function 'mono_sigsegv_signal_handler':
/Users/joao/Dev/droid/mono/mono/mini/mini.c:6704:31: error: 'SIGSEGV' undeclared (first use in this function)
   mono_handle_native_sigsegv (SIGSEGV, ctx, info);
```
2015-01-23 16:41:16 +00:00
João Matos 73292633fc [runtime] Check for signal.h when targeting Win32.
This fixes Monodroid cross build, which broke with https://github.com/mono/mono/commit/adca49cdd28e7c7b0cc65073167c143cc5f52fdd.
2015-01-23 16:40:07 +00:00
Marek Safar a09f7c6f7b Revert "[System] Remove network interface operational status test."
This reverts commit 519582150d.
2015-01-23 13:46:49 +01:00
Marek Safar a4a6ad39f8 [corlib] Add more tests 2015-01-23 13:46:26 +01:00
João Matos 519582150d [System] Remove network interface operational status test.
This test is proving to be problematic since the status of interfaces can be different on OSs.
2015-01-23 12:38:41 +00:00
Marek Safar b18af252e9 Fixes 579084d1f7 commit 2015-01-23 13:21:15 +01:00
Marek Safar dc462a850b [corlib] Increase timeout of failing test 2015-01-23 11:45:42 +01:00
Marcos Henrich 92f04b8636 [corlib] Added tests for FileStream SafeHandle. 2015-01-23 10:41:53 +00:00
Marek Safar 140d6e440c [system] Implement Android specific domain name. Fixes #26305 2015-01-23 11:23:10 +01:00
Marek Safar 579084d1f7 [system] Fixes failing test 2015-01-23 11:08:28 +01:00
Marek Safar 772c45aaf9 Revert "[corlib] StringBuilder from reference sourcers"
This reverts commit ef6b35a009.
2015-01-23 10:42:06 +01:00
Marek Safar ef6b35a009 [corlib] StringBuilder from reference sourcers 2015-01-23 10:24:10 +01:00
Zoltan Varga 5090e3557a [sdb] Move the checking of the various debugger attributes to one function to make it easier to add support for DebuggerStepperBoundaryAttribute. 2015-01-22 18:44:39 -05:00
Martin Baulig 335258b147 [System]: Add new internal Socket APIs. 2015-01-22 23:10:56 +01:00
Zoltan Varga 879cd1bed1 [runtime] Add a preliminary mono support mode for lldb. Currently, pretty printing some runtime types is supported. 2015-01-22 16:42:56 -05:00
Zoltan Varga af7a963fc0 [runtime] Use the new one parameter ctor to create RuntimeWrappedException objects. 2015-01-22 16:01:49 -05:00
Marek Safar 066bbf8b21 [corlib] Remove current timezone specific tests 2015-01-22 15:55:08 -05:00
Marek Safar f30d7e21a8 [Microsoft.Build.BuildEngine] Update failing test 2015-01-22 21:33:53 +01:00
Martin Baulig f0abad3748 Bring Internal.cs, Logging.cs and _LoggingObject.cs. 2015-01-22 20:28:10 +01:00
Martin Baulig c7d14ed7d8 Fix KeyContainerPermission.SetFlags(). 2015-01-22 20:27:07 +01:00
Martin Baulig 5311437f06 Make TraceSource.GetSupportedAttributes() "protected internal". 2015-01-22 20:26:59 +01:00
Martin Baulig dcfd3f23d1 The class needs to be called `FriendAccessAllowedAttribute'. 2015-01-22 20:26:52 +01:00
Mark Probst 14eda7354d [sgen] MONO_GC_DEBUG options to not run finalizers. 2015-01-22 14:04:00 -05:00
Stephen McConnel e62a37d332 Fix occasional rendering problem in TextBoxes
See https://bugzilla.xamarin.com/show_bug.cgi?id=26258 for details.
2015-01-22 12:26:42 -06:00
Zoltan Varga a9af48a4a6 Fix the build. 2015-01-22 12:27:03 -05:00
Zoltan Varga 412f680e56 [runtime] Make RuntimeWrappedExceptions work with the new reference source version of RuntimeWrappedException. 2015-01-22 12:20:26 -05:00
Martin Baulig 20d845ca07 Merge pull request #1156 from felfert/master
Fixed Bug #21135 - Deadlock in WebConnectionStream
2015-01-22 17:21:24 +01:00
Marek Safar 7c3c908458 [corlib] referencesources update 2015-01-22 17:04:26 +01:00
Crisdut 7c39ab701b Add unit test for the bug #1849 2015-01-22 15:41:59 +00:00
Crisdut 8098123ec2 Fix the bug #1849 2015-01-22 15:41:59 +00:00
Marek Safar ea6a13d413 Remove unused files 2015-01-22 16:05:40 +01:00
Marek Safar 5352329186 [corlib] Calendars from reference sources 2015-01-22 16:05:40 +01:00
Marek Safar 346894957c [corlib] generic collections from reference sources 2015-01-22 16:05:40 +01:00
Marek Safar 585c1278cb Merge pull request #1520 from madrang/SafeHandleFix
Small fix for SafeHandle Disposing
2015-01-22 11:33:04 +01:00
Neale Ferguson c9722940db Add memory barrier support using BCR 14,0 2015-01-22 05:12:17 -05:00
Marc-Andre Ferland b4776f20c7 Small fix for SafeHandle Disposing 2015-01-22 01:55:01 -05:00
Zoltan Varga 0c4cc7160a Merge pull request #1518 from akoeplinger/remove-only-net11-ifdef
[bcl] Remove ONLY_1_1 defines from class libs
2015-01-21 23:08:47 -05:00
Zoltan Varga 6cf56cbb2f [amd64] Fix r8->int conversions. Fixes #26219. 2015-01-21 15:00:06 -05:00
Zoltan Varga 03724e8d79 [arm64] Add a test for vtypebyref parameters in gsharedvt trampolines. 2015-01-21 13:48:12 -05:00
Zoltan Varga e478ab8364 Merge pull request #1519 from akoeplinger/remove-net35-ifdef
[bcl] Remove NET_3_5 defines from class libs
2015-01-21 12:53:56 -05:00
Alexander Köplinger 2a978a42f1 [bcl] Remove NET_3_5 defines from class libs 2015-01-21 17:59:27 +01:00
Alexander Köplinger d4d7374efc [bcl] Remove ONLY_1_1 defines from class libs
This is not used anymore.
2015-01-21 17:18:30 +01:00
João Matos 1e25d67aef [runtime] Fix sigsev signal handler Win32 build.
This was broken by: https://github.com/mono/mono/commit/45704daf22d1cec17851ce011ee391137932c471
2015-01-21 13:06:33 +00:00
João Matos c28e73de04 Merge pull request #1517 from akoeplinger/fix-network-test
[System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
2015-01-21 12:27:39 +00:00
Marek Safar 50f2b63442 [corlib] Contracts and CompilerServices from reference sources 2015-01-21 11:46:03 +01:00
Marek Safar 4fd0f05f66 [corlib] Fixes more SafeHandle failing tests 2015-01-21 11:46:03 +01:00
Marek Safar 018e826d47 Merge pull request #1502 from madrang/SafeHandle.CloseTestDispose
Test that closing handle will release managed resource by calling Dispose
2015-01-21 09:11:28 +01:00
Marek Safar 912dda4613 Merge pull request #1504 from madrang/SafeHandle.SetInvalidRelease
Allows refs to be released after the handle is set as invalid.
2015-01-21 09:11:12 +01:00
Rodrigo Kumpera ebfa2d2b40 [runtime] Remove debug spew. 2015-01-20 15:31:21 -05:00
Zoltan Varga 76558bd382 Merge pull request #1516 from DavidKarlas/getThreadsHang
[sdb] Fixed GetThreads deadlock if thread was started or stopped during GetThread
2015-01-20 15:01:20 -05:00
Rodrigo Kumpera 75a4c28352 [runtime] Introduce mono_ldtoken_check and replace usage of the unchecked one with it. 2015-01-20 12:50:50 -05:00
Rodrigo Kumpera 6a348cfc32 [runtime] Weave MonoError into method_from_method_def_or_ref. 2015-01-20 12:50:50 -05:00
Rodrigo Kumpera 7650568113 [runtime] mono_type_create_from_typespec is no longer used by the runtime, it doesn't need to create a loader error. 2015-01-20 12:50:50 -05:00
Rodrigo Kumpera 4bb01e4a2d [runtime] Remove last usage of mono_class_get. Moving it and its _full variant to the bad to call set. 2015-01-20 12:50:50 -05:00
Rodrigo Kumpera 53424f1fae [runtime] Weave MonoError in mono_metadata_interfaces_from_typedef_full. 2015-01-20 12:50:49 -05:00
Rodrigo Kumpera b2c5eaba5d [runtime] Weave MonoError into more of the loader code. 2015-01-20 12:50:49 -05:00
Rodrigo Kumpera cd4a89e234 [runtime] Add more error checking. 2015-01-20 12:50:49 -05:00
Rodrigo Kumpera e9fc37d44e [runtime] Introduce the usage of mono_class_get_checked in most of the runtime. 2015-01-20 12:50:49 -05:00
Rodrigo Kumpera 027609046e [runtime] Explicitly call mono_class_setup_methods to fail types with bad methods. 2015-01-20 12:50:49 -05:00
Rodrigo Kumpera 047116c246 [runtime] Introduce mono_get_method_checked. 2015-01-20 12:50:48 -05:00
Rodrigo Kumpera 5995bb0ccb [runtime] switch to checked variant of mono_get_method_constrained. 2015-01-20 12:50:48 -05:00
Rodrigo Kumpera b8775906b1 [runtime] Introduce mono_get_method_constrained_checked. 2015-01-20 12:50:48 -05:00
Rodrigo Kumpera a40ade5fef [runtime] mono_get_method_constrained_with_method now uses MonoError. 2015-01-20 12:50:48 -05:00
Rodrigo Kumpera 6d09e35a0f [runtime] Introduce MonoError into get_method_constrained. 2015-01-20 12:50:47 -05:00
Rodrigo Kumpera 396d0623ad [runtime] Fix a loader error leakage. 2015-01-20 12:50:47 -05:00
Rodrigo Kumpera 8e18aca8cf [runtime] Introduce MonoError into mono_get_method_from_token. 2015-01-20 12:50:47 -05:00
Rodrigo Kumpera 20526d840d [runtime] Move the runtime to use the checked variants of mono_class_inflate_generic_method. 2015-01-20 12:50:47 -05:00
Rodrigo Kumpera 0a159bb035 [runtime] Move method_from_methodspec to use MonoError. 2015-01-20 12:50:46 -05:00
Rodrigo Kumpera a0056ed85b [runtime] Make method_from_memberref use MonoError. 2015-01-20 12:50:46 -05:00
Marek Safar d13b92edb1 [System] Extract NetworkInterface factory and implement LoopbackInterfaceIndex for more platforms 2015-01-20 15:04:32 +01:00
Marek Safar 2c472f0670 Merge pull request #1513 from akoeplinger/remove-net20-ifdefs
[bcl] Remove more NET_2_0 checks from class libs
2015-01-20 13:29:40 +01:00
Marek Safar 52cace8bb5 [corlib] Update System.Numeric mobile public key 2015-01-20 13:25:55 +01:00
Marek Safar 191cde43ad [System.Numerics] Update to latest mscorlib 2015-01-20 13:09:43 +01:00
Marek Safar 429fd07df8 [corlib] Primitive types from reference sources 2015-01-20 12:23:29 +01:00
David Karlaš 948689360b [sdb] Fixed GetThreads deadlock if thread was started or stopped during GetThreads call.
Regression introduced in 52b168e336
2015-01-20 11:29:44 +01:00
Zoltan Varga 7ef5dfed95 [sgen] Disable PREFETCH_CARDS when using xcode4 as it causes gcc to crash. 2015-01-19 17:06:43 -05:00
Marek Safar c1a50591da [corlib] Fixed failing covert test 2015-01-19 22:38:49 +01:00
Marek Safar cde677dbaf [corlib] Add more convert checks 2015-01-19 19:50:36 +01:00
Mark Probst abc0bc6fbe [sgen] Fix clearing ephemerons and weak links on domain unload.
At some point we zeroed all the unloaded domain's objects first, and then we cleared
weak links, ephemerons, etc.  Because the objects were zeroes, we only had to
check that the vtable was null.  Now we do it the other way around: clear weak links,
ephemerons, ..., and then zero objects.  Obviously we now need to check for the
object's domain, because their vtables will not be null.
2015-01-19 09:57:23 -08:00
Marek Safar 6f802b490c [corlib] Fixes ToDateTime for primitive types 2015-01-19 16:23:03 +01:00
Marek Safar 519ddb9895 [corlib] Char from reference sourcers 2015-01-19 16:23:03 +01:00
João Matos 435f968102 [runtime] Workaround missing net/route.h in iOS SDK. 2015-01-19 15:07:49 +00:00
Marek Safar c5e4cfc9fb [corlib] More system types from reference sources 2015-01-19 14:07:53 +01:00
Marek Safar 9aefc2627b [corlib] Type's GetInterfaceMap has no implementation 2015-01-19 14:07:53 +01:00
Marek Safar 8c41fbe08f [runtime] Remove Convert icalls 2015-01-19 14:07:53 +01:00
João Matos 396d9dbeb1 Merge pull request #1404 from woodsb02/mono-route
Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
2015-01-19 12:53:56 +00:00
Marek Safar 66a679268c [corlib] System.Convert from reference sources 2015-01-19 11:14:04 +01:00
Alexander Köplinger ff71a0fa40 [System] Skip loopback interfaces in the FirstInterfaceOperationalStatus() test
The status of loopback interfaces is always 'Unknown' on Linux.
This fails the test so we need to skip them.
2015-01-19 10:30:29 +01:00
Ben Woods 1e0c63e953 Add mono/metadata/mono-route.c for non-Linux ParseRouteInfo_local
Add #ifdef to ignore code in mono/metadata/mono-route.c if OS=linux
Also remove mono-route.c from msvc/libmonoruntime.vcxproj (Windows)

Add #ifdef to ensure mono/metadata/mono-route.h code is not included
on Linux

Change to using #if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)

Use sizeof(addr) for maximum length of IP address string, instead of the hard-coded 16.
Should the size of addr ever change it will keep us from disaster in case if shrinking the array length.
Also, do not ignore snprintf return value - check for truncated output and act accordingly if it happens.

Add Tests for System.Net.NetworkInformation/IPInterfacePropertiesTest.cs and System.Net.NetworkInformation/NetworkInterfaceTest.cs

Remove accidental Copyright

add a space before the opening parenthesis, as shown in the coding guidelines.

Indent TestFixture to align with coding style of newer Test classes

Use G_N_ELEMENTS(mib) instead of sizeof(mib) / sizeof(mib[0])
2015-01-19 07:05:32 +08:00
Zoltan Varga a3f3abf8fd [arm64] Add a test for r4 hfa parameter passing in gsharedvt trampolines. 2015-01-18 11:32:22 -05:00
Zoltan Varga 12f36fd126 [arm64] Add a test for hfa parameter passing in gsharedvt out trampolines (#26085). 2015-01-17 20:29:05 -05:00
Zoltan Varga aeb7813213 [runtime] Fix aot-tests.cs. 2015-01-17 20:13:35 -05:00
Zoltan Varga 25246e4c3b [arm64] Add tests for dyn calls with floats. 2015-01-17 15:55:20 -05:00
Zoltan Varga 8cd6feb66b [arm64] Increase the size of the dyn_call instruction, and the buffers used during dyn calls. 2015-01-17 15:55:19 -05:00
David Karlaš eb29fb3fa4 [sdb] ILInterpreter handle Br_S same as Br 2015-01-17 17:02:30 +01:00
David Karlaš 6953d781cd [sdb] Fix deadlock in case of runtime disconnect while fetching frames(Bug 24434) 2015-01-17 16:24:30 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Miguel de Icaza 7d1cd56c5d [System] ComponentModel, make it build in the MOBILE profile 2015-01-16 20:20:26 -05:00
Zoltan Varga 43a9f2af11 [bcl] Fix System.Threading.Tasks.Dataflow tests. 2015-01-16 19:49:00 -05:00
Mark Probst 9daffb747a [sgen] Fix a concurrent collector bug.
Pinning is done in the worker thread, but reset in the main thread.
The main thread must wait for the worker jobs to finish until it can
reset pinning.  We didn't do this before.
2015-01-16 16:00:11 -08:00
Zoltan Varga d929a5d9ae Merge pull request #1511 from akoeplinger/windows
[utils] Extract Windows-specific networking fallback into networking-windows.c
2015-01-16 17:26:34 -05:00
Zoltan Varga ba6d6d74cd [bcl] Fix the serialization of string arrays to IEnumerable<string> in the Json serializer. Fixes #25808. 2015-01-16 14:11:51 -05:00
Marek Safar 014e3493b1 [System.Threading.Tasks.Dataflow] update atomicboolen location 2015-01-16 19:20:48 +01:00
Marek Safar a844019685 [system.core] TaskExtensions from reference source 2015-01-16 19:01:40 +01:00
Marek Safar 8fa4f20578 Another build fix 2015-01-16 18:33:09 +01:00
Marek Safar dc95e23048 Fixes build 2015-01-16 18:23:34 +01:00
Rodrigo Kumpera 45704daf22 [jit] Adjust the sigsegv handle to accomodate targets without siginfo. 2015-01-16 12:16:36 -05:00
Rodrigo Kumpera adca49cdd2 [jit] First pass of portability fixes for the JIT. 2015-01-16 12:16:36 -05:00
Marek Safar 5a6e9cc4eb [corlib] USe more types from System.Threading reference sources 2015-01-16 18:04:05 +01:00
Marek Safar de222aa4be [System.Core] System.Collections.Generic from reference sources 2015-01-16 16:55:36 +01:00
Marek Safar 2c439a5b84 [System.ServiceModel.Web] Update failing test 2015-01-16 16:32:03 +01:00
Alexander Köplinger e1010a2e35 [utils] Extract Windows-specific networking fallback into networking-windows.c 2015-01-16 16:23:48 +01:00
Marek Safar 061d7f3fb1 [system.xml] Fix broken ClassMap logic which relied on order of hashtable elements 2015-01-16 16:21:22 +01:00
Marek Safar b8d0752d82 [system.web] Update SqlDataSource test not to rely on idictionary order 2015-01-16 09:58:00 +01:00
Marek Safar 49721c35af [WindowsBase] Fix incorrect test 2015-01-16 09:11:28 +01:00
Zoltan Varga 9661a1fba0 [runtime] Fix the build. 2015-01-15 19:17:19 -05:00
Zoltan Varga 3a4c4766fa [sdb] Fix single stepping after a SetIP operation. Fixes #26033. 2015-01-15 19:13:27 -05:00
Vlad Brezae 098121114a Don't truncate the file to the page aligned size.
The second open attempt at opening would fail due to the capacity being smaller than the file size.
2015-01-15 15:27:50 -08:00
Miguel de Icaza 3619fe9c4c [Mono.Posix] Add overloads to pass ints and pointers 2015-01-15 18:22:58 -05:00
Zoltan Varga aae77596bf [sdb] Rename 'restore_ctx' to 'restore_state' and change its type to MonoThreadUnwindState. 2015-01-15 17:33:10 -05:00
Marek Safar 76ad4fb9fe [corlib] fixing TPL integration 2015-01-15 23:24:49 +01:00
Marek Safar 30ee7c53a4 [system] update failing tests 2015-01-15 23:13:36 +01:00
Ludovic Henry 9ac10ff321 [TPL] Replace implementation by Microsoft reference sources 2015-01-15 16:05:51 -05:00
Rodrigo Kumpera 18751d4475 Merge pull request #1458 from BrzVlad/feature-fat-cas
Poll-free fat locks
2015-01-15 14:54:12 -06:00
Zoltan Varga 5084172643 [runtime] Remap io-layer symbols using the prefix wapi_. Fixes #25821. 2015-01-15 15:07:56 -05:00
Zoltan Varga b27d024877 Fix a warning. 2015-01-15 14:42:01 -05:00
Martin Baulig e129937283 [Mono.Security]: More exception debug foo.
Note: This patch may cause some ugly exception messages.  This is intended to help
us debug and hopefully fix bug #19334.
2015-01-15 19:08:46 +01:00
Martin Baulig 8670be04bf [Mono.Security]: Test suite - we may not throw IOException as well here.
In fact, we should not ever throw ObjectDisposedException, but provide a
meaningful IOException.  Still working on it.
2015-01-15 17:53:57 +01:00
Martin Baulig 60bd02c236 [Mono.Security]: Fix TLS Alert level." This breaks the System test suite.
Prevent further abuse (calling it before the fields have been assigned to)
by making the helper function static.
2015-01-15 17:53:57 +01:00
João Matos d065c31a24 [msvc] Fixed the build. 2015-01-15 16:21:48 +00:00
Rodrigo Kumpera e50db21610 Revert "[Mono.Security]: Improve error reporting when sending TLS Alerts fail."
This reverts commit 95eff24950.
2015-01-15 11:04:32 -05:00
Rodrigo Kumpera 9b04cd4d29 Revert "[Mono.Security]: Fix TLS Alert level." This breaks the System test suite.
This reverts commit a036a6bf18.
2015-01-15 10:57:58 -05:00
Zoltan Varga 34f074e4fa Merge pull request #1507 from DavidKarlas/mdbRead0Line
[sdb] Fixed .mdb parsing when line equals 0
2015-01-15 10:39:55 -05:00
Marek Safar 46bdea893b [corlib] System.Collections from reference sources 2015-01-15 16:16:42 +01:00
Martin Baulig a036a6bf18 [Mono.Security]: Fix TLS Alert level. 2015-01-15 13:23:10 +01:00
Martin Baulig 95eff24950 [Mono.Security]: Improve error reporting when sending TLS Alerts fail. 2015-01-15 11:55:13 +01:00
Lluis Sanchez 639bf66171 Generate proper Link metadata for resources in imported projects
When importing a project that contains embedded resources, the id
of those resources must be generated using the path relative
to the project file that includes them, not relative to the
main project file. To fix this problem, we now generate a
Link metadata property for those resources that has the correct
relative path, and later this is used to generate the correct
id for the resource. We also now store a new metadata value
for all items (DefiningProjectFullPath) which contains the
path to the project file that defines the element. This is
used to check if an item was defined in an imported file,
in which case the Link assignment may need to be made.

This fixes bug BXC 20966.
2015-01-15 11:07:49 +01:00
Marek Safar 02782f4a1a [system] System.Timer from reference sources 2015-01-15 10:05:50 +01:00
Marek Safar bc6ea9d725 Merge pull request #1505 from esdrubal/tzifloatingrule
[System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
2015-01-15 09:19:02 +01:00
David Karlaš 03082714c0 [sdb] Fixed .mdb parsing when line equals 0 2015-01-15 09:18:16 +01:00
Zoltan Varga 31ca4c480c Merge pull request #1506 from akoeplinger/fix-paste-test
[MWF] Fix unicode string handling from clipboard paste in X11
2015-01-14 23:57:05 -05:00
Zoltan Varga 18561ff041 [sdb] Don't continue single stepping when reaching the same line if locations without debug info were reached during the single step. 2015-01-14 19:57:49 -05:00
Rodrigo Kumpera e92b71af43 Sorry for breaking linux. 2015-01-14 19:26:13 -05:00
Rodrigo Kumpera 6f6e8586eb [runtime] I can still find unguarded used of signal.h, amazing. 2015-01-14 19:21:36 -05:00
Zoltan Varga 025f351123 [sdb] Fix the detection of whenever an image has debug info or not. 2015-01-14 19:13:46 -05:00
Mark Probst ae3b35aa23 Merge pull request #1466 from schani/stage-unified-card-table-scanning
Unified card table scanning
2015-01-14 14:56:12 -08:00
Zoltan Varga 4304c55302 Fix the build. 2015-01-14 17:48:51 -05:00
Marek Safar f9917c3110 [corlib] Hashtable constructor with equality comparer needs to use it during initialization as well 2015-01-14 23:25:32 +01:00
Zoltan Varga ea0159a4ac [sdb] Fix a few places missed in 73d14781d2. 2015-01-14 16:56:57 -05:00
Marek Safar 5c3e91d094 [Microsoft.Build.Utilities] Replace use of ProcessStringDictionary with case insensitive dictionary. It shouldn't case insensitive on non-windows but that'd break msbuild compatibility 2015-01-14 22:31:42 +01:00
Marek Safar b15de26512 Fixes build 2015-01-14 22:31:42 +01:00
Alexander Köplinger 9c05594fc5 [MWF] Fix unicode string handling from clipboard paste in X11
In the TextBoxTest.PasteTest () test case we copy the string "ABCD" to the clipboard.
We then try to paste it again and see if it's the same.

Internally in WinForms, the clipboard data is retrieved via an X11 API that returns
a pointer to the string. In this case, we have a unicode/utf16 string that usually
looks as follows in memory (2 byte per character):

65  'A'
0
-
66  'B'
0
-
67  'C'
0
-
68  'D'
0
-
0   '\0' end of string
0   potential garbage from here on
-
0
0
...

The bug is that we use Marshal.PtrToStringUni (), which reads until the
first null *char* not the first null *byte*.

Imagine if we get the following (happens sometimes):

65  'A'
0
-
66  'B'
0
-
67  'C'
0
-
68  'D'
0
-
0   '\0' end of string
230 <--- garbage, but considered part of a char by PtrToStringUni ()
-
47
56
-
74
43
...

This produces garbage like "ABCD㠯⭊" since PtrToStringUni () reads beyond the original string.

The fix is to use the nitems variable that is returned by the X11 API (it contains the
actual number of bytes in the string) and copy the bytes manually. We already do
the same for the UTF8 case above.

This fixes the TextBoxTest.PasteTest () that intermittently fails on Jenkins.
2015-01-14 22:31:30 +01:00
Zoltan Varga 73d14781d2 [sdb] Emit debug logs using g_print () on android, so it shows up in adb logcat output. 2015-01-14 16:29:54 -05:00
Marek Safar 053e618102 [system.net.http] Drop WebClient dependency 2015-01-14 21:41:49 +01:00
Marek Safar a90491c257 [system] System.Collections.ObjectModel from reference sources 2015-01-14 21:41:48 +01:00
Zoltan Varga d9341960de [pdb2mdb] Fix the decoding of nested scopes. 2015-01-14 13:44:44 -05:00
Marek Safar 941ac41ac0 [system] System.Collections.Specialized from reference sources 2015-01-14 18:42:12 +01:00
Marek Safar eb050de08a [system] Add UnicodeDecodingConformance, UnicodeEncodingConformance 2015-01-14 18:18:07 +01:00
Marek Safar 4403146ada [system] Switch to reference sources WebClient 2015-01-14 17:37:12 +01:00
Marek Safar af11f84af0 [system] Cookies implementation from reference sources 2015-01-14 16:41:27 +01:00
João Matos 8811a8704f [runtime] Do not use MONO_STRUCT_OFFSET for Win32-specific offsets.
We do not yet have auto-generated offsets for Win32 targets and this interacts in weird ways with the Android cross-compilers for Windows.
2015-01-14 15:28:11 +00:00
Marcos Henrich e0278f8f69 [System.Core] Fixed wrong DST of TimeZoneInfo with floating date rules.
Fixes #26008
We do not want (transition.DayOfWeek - first) % 7 to be negative.
As (transition.DayOfWeek - first) cannot be lower than -7, adding 7 to it solves the issue.
2015-01-14 15:20:27 +00:00
Marcos Henrich e4676f8a12 [System.Core] Added tests to TimeZoneInfoTest. Covers #26008. 2015-01-14 15:20:16 +00:00
Alex Rønne Petersen 9c660cf0b9 Fix mono_handle_native_sigsegv () signature in the cross compiler case. 2015-01-14 13:52:14 +01:00
Zoltan Varga 1f32c791d4 Fix a deadlock introduced by 3f10c46468. 2015-01-13 21:52:31 -05:00
Zoltan Varga a9e3b26344 Merge pull request #1500 from criteo-forks/criteo
Fix SpinLock.TryEnter
2015-01-13 20:31:07 -05:00
Vlad Brezae 3f16384da1 [amd64] Add monitor enter v4 fastpath. 2015-01-13 17:07:18 -08:00
Zoltan Varga 3f10c46468 [bcl] Break waits in KeventWatcher by closing the command fd instead of polling. 2015-01-13 18:58:02 -05:00
Zoltan Varga 3cf4d21f8a [bcl] Put the files created by the HostFileChangeMonitor test into an additional subdir to avoid the file system watcher starting to watch system temporary files in the parent dir. Dispose file system watchers at the end of the test. 2015-01-13 18:56:14 -05:00
Vlad Brezae 5b0fbd4c9c [x86] Add monitor enter v4 fastpath. 2015-01-13 14:26:33 -08:00
Zoltan Varga c1b4366932 [bcl] Remove NET_4_5 defines from class libs. 2015-01-13 16:34:23 -05:00
Zoltan Varga 2375c74a64 [bcl] Remove NET_4_5 defines from tools. 2015-01-13 16:34:11 -05:00
Zoltan Varga bfb9d6d5d9 [runtime] Move the monograph tool to tools/. 2015-01-13 16:25:19 -05:00
Zoltan Varga 032f313d5f [bcl] Remove NET_4_0 defines from class libs. 2015-01-13 16:06:31 -05:00
Zoltan Varga bc8041cbe5 [bcl] Remove NET_4_0 defines from tools. 2015-01-13 15:59:48 -05:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Zoltan Varga f54652de26 [bcl] Remove NET_2_0 defines from tools. 2015-01-13 15:13:27 -05:00
João Matos 7299191d96 Revert "[build] Add seq-points.c to the genmdesc to try to fix the Monotouch build."
This reverts commit 5510857e6b.
2015-01-13 17:53:18 +00:00
Marcos Henrich 80cd1c8a0f [build] Updated csproj files. 2015-01-13 17:47:48 +00:00
Marcos Henrich d19f5dc228 Fixed msvc/scripts/genproj.cs file seperator issue on UNIX.
On UNIX '\\' is a valid file name character.
In this case we have to replace '\\' for Path.GetFileNameWithoutExtension to work as expected.
2015-01-13 17:47:48 +00:00
Marcos Henrich 5b851f03a2 [System.ComponentModel.Composition] Updated Makefile thisdir.
Old thisdir was causing problems while doing make update-csproj on top dir.
2015-01-13 17:47:48 +00:00
João Matos 5510857e6b [build] Add seq-points.c to the genmdesc to try to fix the Monotouch build. 2015-01-13 17:25:15 +00:00
Marc-Andre Ferland 80f72a9dd9 Allows refs to be released after the handle is set as invalid. 2015-01-13 12:06:49 -05:00
Marek Safar 5a781d6d56 [system.data] refresh mobile sources 2015-01-13 17:02:08 +01:00
Marek Safar d0d5cd45de [system.data] Update for DataSetExtensions as GetTableMappingBySchemaAction is now more restrictive. 2015-01-13 16:11:07 +01:00
Marek Safar 04dc09cbf8 [corlib] Close underlying synchronized stream. Fixes #25498 2015-01-13 14:57:55 +01:00
Marek Safar 7c2bf5f2a1 [system.net.http] Split reading headers and content in GetStreamAsync. Fixes #23966 2015-01-13 12:28:06 +01:00
Marek Safar 4736f957a6 [corlib] Add range checks to CharUnicodeInfo. Fixes #25895 2015-01-13 11:19:21 +01:00
Marek Safar 9ceced044e [system.data] update mobile profile 2015-01-13 11:02:54 +01:00
Marek Safar 0042e68c2e [system.data] Replace connection string builder from reference sources 2015-01-13 10:59:21 +01:00
Alex Rønne Petersen 20f9db583e Fix the build on sigaltstack platforms. 2015-01-13 10:16:44 +01:00
Alex Rønne Petersen b1099af6c7 Fix the Android build; use HAVE_SYS_SYSCTL_H instead of HAVE_SYS_IOCTL_H. 2015-01-13 09:43:58 +01:00
Alex Rønne Petersen 15312e93ab Add an extension point for backtraces on native SIGSEGVs. 2015-01-13 09:20:06 +01:00
Alex Rønne Petersen d1c6023b32 Propagate siginfo to mono_handle_native_sigsegv ().
Some platforms (e.g. Android) need this to get a backtrace in a signal handler.
2015-01-13 09:20:06 +01:00
Marek Safar cb452cfff7 [system.data] Replace System.Data.SqlTypes from reference sources except SqlXml which depends on internal system.xml factory method 2015-01-13 09:19:11 +01:00
Marek Safar 696c08126c [system.data] Switch to DbEnumerator from reference sources. Fixes #24935 2015-01-13 09:19:11 +01:00
Guillaume Turri 3d17efc13c Fix SpinLock.TryEnter
Little and big endian cases were inverted. It can be seen e.g. from the
reference http://locklessinc.com/articles/locks, where the ticket algorithm
is given for little-endian machines

As a consequence, without this patch, if TryEnter succeeds, it increments
ticket.Value instead of ticket.User, which puts the SpinLock in a corrupted
state, and makes it impossible to release afterwards.
2015-01-13 08:47:09 +01:00
Miguel de Icaza 9d08d2b0d9 [Regex] Disable IL code generation until we figure out 25671 2015-01-12 23:23:23 -05:00
Miguel de Icaza a4c7885f7d [Mono.Posix] Add support for OSX F_NOCACHE 2015-01-12 23:13:58 -05:00
Marc-Andre Ferland f7d2cb47c0 Test that closing handle will release managed resource by calling Dispose 2015-01-12 21:37:09 -05:00
Zoltan Varga c38c9c6f25 [aot] Fix llvm support. 2015-01-12 19:38:01 -05:00
Zoltan Varga 037f47d973 [runtime] Fix the android build. 2015-01-12 18:08:39 -05:00
Zoltan Varga ca327b1162 [runtime] Use a guint64 for device/inode instead of dev_t/ino_t since ino_t is defined as 32 bit on newer android versions, but inode values can actually be 64 bit. 2015-01-12 17:23:41 -05:00
Zoltan Varga 02696b4d21 Fix the build. 2015-01-12 17:20:01 -05:00
Zoltan Varga 3ccc4e92b2 [runtime] Remove an unused define. 2015-01-12 17:08:21 -05:00
Zoltan Varga 57f99de33d [bcl] Fix a race in a System.Threading.Tasks test. 2015-01-12 17:02:39 -05:00
Zoltan Varga 05cd4225b2 [aot] Implement support for separate llvm object files when using static linking. Enable it on all platforms. 2015-01-12 16:45:07 -05:00
Zoltan Varga 472afb9fd7 [arm] Fix the decoding of backward branches in mono_arch_get_call_target (). 2015-01-12 16:45:07 -05:00
Marek Safar bb9d05a5f5 [system] Fixes barrier file name 2015-01-12 20:07:33 +01:00
Zoltan Varga 1e5ddf741c [aot] Add an 'llvm-outfile=' command line argument to specify the name of the assembly file holding the LLVM compiled code when the 'asmonly' option is used. 2015-01-12 13:41:54 -05:00
Marek Safar e9b135baca [system] Replace Barrier implementation from reference sources. Fixes #25928 2015-01-12 17:18:42 +01:00
Marek Safar 5728c1a3dd [system.net.http] ProductInfoHeader collection parsing/formatting uses special separators. Fixes #19881 2015-01-12 16:47:04 +01:00
Radek Doulik 581ac48a56 do not use liblog's absolute path in DllImport
- let it for dllmap to specify the path of liblog
   https://github.com/xamarin/monodroid/commit/e834a251d65cb8f677ee7140450ea11e09dbf5c8
 - when checking if running on Android, check the 64bit liblog location as well
2015-01-12 15:28:15 +01:00
Marcos Henrich 2dabfdf453 [System.Runtime.Caching] Removed unused files.
referencesource files are used instead of the removed files.
2015-01-12 13:08:20 +00:00
Marek Safar 9652f056bc [corlib] SafeHandle dispose can be called multiple times after closing. Fixes #25850 2015-01-12 14:05:38 +01:00
Marcos Henrich bcfdc181eb [runtime] update_liveness2 replaced wrong binary or with or. 2015-01-12 11:32:36 +00:00
Marcos Henrich 602a62377d [runtime] update_liveness2 now handles OP_IL_SEQ_POINT. 2015-01-12 11:05:15 +00:00
Marek Safar 28f16c8991 [corlib] Fixes SafeHandle invalidHandleValue handling 2015-01-12 11:52:31 +01:00
Marcos Henrich f0834d5407 Merge pull request #1455 from esdrubal/caching
[System.Runtime.Caching] .NET integration.
2015-01-12 08:27:48 +00:00
Marek Safar 7a7d04b618 Merge pull request #1499 from madrang/SafeHandleTesting
SafeHandle SetAsInvalid Testing
2015-01-12 00:13:40 +01:00
Marc-Andre Ferland 4288f7d687 More strict testing of SafeHandle.
SafeHandle.IsInvalid refer only to the handle value it self. Being true only if the handle is 0 || -1
	In all cases, Releasing, Disposing or SetHandleAsInvalid does not change the handle value, so SafeHandle.IsInvalid will remain unchanged.
	IsClosed will be true if the handle is released or if SetHandleAsInvalid is called.
	The handle will not be released when calling Dispose if SetHandleAsInvalid was called.
	The handle is not released at Dispose but when the last ref is removed by DangerousRelease
2015-01-11 18:10:06 -05:00
Zoltan Varga b2e5b02817 runtime] Really fix a race condition in mono_remoting_marshal_init (). 2015-01-11 12:07:16 -05:00
Zoltan Varga 1fa2463bc3 [aot] Enable direct llvm object file emission on x86 as well. 2015-01-11 10:31:29 -05:00
Zoltan Varga e3c000b256 [aot] Avoid duplicate symbol errors if two methods have the same cfg->method. 2015-01-11 10:26:41 -05:00
Marcos Henrich b9e97c9957 test_op_il_seq_point.sh now properly tests AOT compilation.
Added missing option --aot
2015-01-11 14:53:13 +00:00
Marcos Henrich 4db0888798 test_op_il_seq_point.sh no longer prints empty lines. 2015-01-11 14:53:13 +00:00
Marcos Henrich 984d3df9b1 TestDriver now has option --quiet to disable Console outputs.
test_op_il_seq_point.sh does not work well when TestDriver produces outputs, calling the tests with option -q solves this.
2015-01-11 14:53:13 +00:00
Zoltan Varga f663ba7ba7 [aot] Emit LLVM object files directly from llc on amd64. 2015-01-11 09:49:21 -05:00
Marcos Henrich 454d96dea6 test_op_il_seq_point.sh now prints whole diff. 2015-01-11 10:08:30 +00:00
Zoltan Varga 20113c5ec7 Fix warnings. 2015-01-10 23:04:05 -05:00
Zoltan Varga d1beab3cd8 Fix the build. 2015-01-10 22:55:13 -05:00
Zoltan Varga f717d75b69 Merge pull request #1498 from akoeplinger/fix-windows
Fix Windows build
2015-01-10 22:46:39 -05:00
Alexander Köplinger 6213c699d2 Fix Windows build
Some autoconf checks were missing when running on Windows.
Added stub for mono_get_local_interfaces back that was removed in b92e560d3f
for systems like Windows that have neither HAVE_SIOCGIFCONF nor HAVE_GETIFADDRS.
2015-01-10 22:09:18 +01:00
Marek Safar 9f9d9d25b3 [mcs] Auto-implemented properties must override all accessors of the overridden property 2015-01-10 18:51:01 +01:00
Marek Safar aa5f851bec [mcs] Contructors cannot be extern and have a constructor initializer 2015-01-10 18:51:01 +01:00
Marcos Henrich 55c0773505 test_op_il_seq_point.sh ignore diff unnecessary data. 2015-01-10 16:51:30 +00:00
Zoltan Varga f6b3eb0e80 [aot] Emit a separate GOT for LLVM and JITted code, this avoids having to reference the extern got symbol from JITted code if the LLVM code is emitted into a separate module. 2015-01-10 11:24:42 -05:00
Zoltan Varga 9130a8641e Add missing files to the windows build. 2015-01-10 10:07:41 -05:00
Zoltan Varga edbde3b6be Fix the windows build. 2015-01-10 08:18:25 -05:00
Marcos Henrich 3bcef7ef86 [System.Runtime.Caching] Updated MemoryCacheTest.
When config PhysicalMemoryLimitPercentage is not set or set to zero MemoryCache.PhysicalMemoryLimit value will depend on the total physical memory available.
2015-01-10 11:30:01 +00:00
Marcos Henrich b78211356f [System.Runtime.Caching] Improved CacheUsage sorting.
Now even if multiple MemoryCacheEntry are added to CacheUsage with the same date time CacheEntryCollection is able to sort them for removal in the same order.
2015-01-10 11:14:24 +00:00
Rodrigo Kumpera 6202a690ad [utils][runtime] Another rounds of header cleanup. 2015-01-09 21:06:39 -05:00
Rodrigo Kumpera 48f0075b9d [utils] Remove useless include. 2015-01-09 20:10:17 -05:00
Rodrigo Kumpera e095e8b011 [metadata] Fix the build. 2015-01-09 20:09:18 -05:00
Rodrigo Kumpera be917fb5ef [metadata] Rename security.c to mono-security.c to avoid conflicts with some weird linkers. 2015-01-09 20:03:55 -05:00
Rodrigo Kumpera 7090ce602b [io-layer] Fix another header missing a guard. 2015-01-09 19:46:51 -05:00
Rodrigo Kumpera 1f83d515cf [metadata] Use new networking abtraction to fix targets without inet_ntop 2015-01-09 19:36:45 -05:00
Rodrigo Kumpera 4b98deb7c9 [utils] Add API to stringify a network address. 2015-01-09 19:36:45 -05:00
Zoltan Varga 92ca06aa7d [jit] Add a MONO_PATCH_INFO_LDSTR_LIT patch type to handle strings which do not come from metadata, i.e. they are used in wrappers. Fixes #25891. 2015-01-09 17:30:27 -05:00
Marek Safar f52380fc7c [mcs] Add string interpolation conversions 2015-01-09 23:27:18 +01:00
Rodrigo Kumpera 7b84b28673 [io-layer] Fix linux build. 2015-01-09 15:13:10 -05:00
Zoltan Varga 86a65282f6 Merge pull request #1497 from esdrubal/sq
Tests and fixes for OP_IL_SEQ_POINT
2015-01-09 13:37:58 -05:00
Marcos Henrich 5caa7a1491 [System.Runtime.Caching] MemoryCacheTest.Trim now checks LRU.
Entries are now removed in the least recently used order.
MemoryCacheTest.Trim was updated to check that entries are removed in LRU order.
2015-01-09 15:36:57 +00:00
Marcos Henrich 70d30f9de1 [System.Runtime.Caching] Updated MemoryCacheTest.TestCacheSliding.
Changed sliding expiration timeout from 1 second to 2 seconds.
2015-01-09 15:36:57 +00:00
Marcos Henrich 861b335181 [System.Runtime.Caching] Updated tests default PhysicalMemoryLimit.
MemoryCache.PhysicalMemoryLimit default value is now 99 instead of 98.
2015-01-09 15:36:57 +00:00
Marcos Henrich 80427367c2 [System.Runtime.Caching] .sources now uses referecensource files. 2015-01-09 15:36:57 +00:00
Marcos Henrich 88262cfa6e [System.Runtime.Caching] Implemented referencesource missing classes.
Implemented classes UsageEntryRef, CacheUsage, ExpiresEntryRef and CacheExpires.
2015-01-09 15:36:56 +00:00
Marcos Henrich bcf7e6e797 [System.Runtime.Caching] Copied SRef.cs from .NET.
.NET was using this to retrieve the size of an object graph, by using special logic on its GC.
This version of SRef is not doing that, because Mono does not provide that kind of computation.
As the changes that the GC would require to support this are not trivial, SRef returns a wrong size for now.
Known problems:
   - CacheMemoryMonitor does not trim the cache when it reaches its memory size limit.
   - IMemoryCacheManager.UpdateCacheSize is called with incorrect size.
2015-01-09 15:36:56 +00:00
Marcos Henrich 04285d5ad2 [System.Runtime.Caching] Copied R.Designer.cs from .NET
We will be using this version of R.Designer.cs with hard coded strings until Mono has access to .NET resources.
2015-01-09 15:36:56 +00:00
Marcos Henrich b5d0ffe7dd Added performance counter "Available Physical Memory".
Performance counter "Available Physical Memory" return the current
amount of ram that is not in use.

This was added to be used by System.Runtime.Caching .NET integration
that relies on the available system memory to resize the cache.
2015-01-09 15:36:56 +00:00
Etienne CHAMPETIER 81057618ac System.Xml.Serialization: fix xml serializers generation for Web Services
(add a reference to System.Web.Services)

Without this patch we get the following exception after multiple call
to a soap web services:
Error while compiling generated serializer
/tmp/24ee1170/4996ddb2.cs(2519,27) : warning CS1522: Empty switch block
/tmp/24ee1170/4996ddb2.cs(969,29) : error CS0012: The type `System.Web.Services.Protocols.SoapHeader' is defined in an assembly that is not referenced. Consider adding a reference to assembly `System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Signed-off-by: Frederic Mestayer <[email protected]>
Signed-off-by: Etienne CHAMPETIER <[email protected]>
2015-01-09 15:02:10 +01:00
Alexander Köplinger 1db6835638 [utils] Remove duplicate socklen_t typedef from Windows build
This is already defined in ws2tcpip.h
2015-01-09 00:42:48 +01:00
Alexander Köplinger d03e64a2ee Merge pull request #1433 from akoeplinger/system.numerics-port
[System.Numerics] Ported code from MS referencesource
2015-01-09 00:34:31 +01:00
Zoltan Varga 2617698743 [aot] Enable emission of LLVM code into a separate file on amd64 in full aot mode. This requires emitting got accesses using normal assembly instead of emit_symbol_diff (), since clang cannot handle <sym> - . expressions if <sym> is an extern symbol. 2015-01-08 17:59:11 -05:00
Rodrigo Kumpera 2ce793efb6 [io-layer] Header usage grooming. Remove some unused headers and add config.h guards to others. 2015-01-08 17:46:54 -05:00
Miguel de Icaza e397f7097a Merge pull request #1495 from akoeplinger/fix-cancelrequestviaproxy
[System.Net.Http] Fix CancelRequestViaProxy() test that intermittently fails on Jenkins
2015-01-08 17:09:13 -05:00
Rodrigo Kumpera 41c1a773f9 [gc] Fix gc bitmap for array of pointers. They don't contain references 2015-01-08 15:37:18 -05:00
Rodrigo Kumpera 047b15f4e6 [utils] Fix linux compilation. 2015-01-08 15:18:23 -05:00
Rodrigo Kumpera 0959de07bf [utils] Apparently ws2ipdef.h should not be included directly. Using ws2tcpip.h which is the recommended header. 2015-01-08 15:18:23 -05:00
Marek Safar f776513488 [mcs] Add string interpolation grammar 2015-01-08 20:55:49 +01:00
Rodrigo Kumpera c5d8151c22 [utils] Another round of windows fixing. 2015-01-08 12:33:48 -05:00
Rodrigo Kumpera ab72a3d6ba [utils] More portability cleanups. 2015-01-08 12:33:48 -05:00
Rodrigo Kumpera 2df9fc3e8c [utils] Don't enable usage of sigaction unless the function is available. 2015-01-08 12:33:47 -05:00
Zoltan Varga 281b4a4abf [runtime] Fix a race condition in mono_remoting_marshal_init (). 2015-01-08 12:15:04 -05:00
Rodrigo Kumpera 800a117da9 [utils] Don't special case android or FreeBSD when trying ucontext.h 2015-01-08 11:34:52 -05:00
Rodrigo Kumpera 373e055709 [utils] Small header sanitization. networking.h now include config.h 2015-01-08 11:34:03 -05:00
Rodrigo Kumpera dd07fe7aaf [utils] Another try to fix the windows build. 2015-01-08 10:57:56 -05:00
Alexander Köplinger ab77341c6f Only build the master branch on AppVeyor 2015-01-08 16:50:47 +01:00
Marcos Henrich 4629d64abd [runtime] Makefile check now calls check-seq-points
check-seq-points now also checks AOT
2015-01-08 15:28:21 +00:00
Marcos Henrich 46a65b39bb [runtime] mono_decompose_long_opts now handles OP_IL_SEQ_POINT. 2015-01-08 14:12:42 +00:00
Marcos Henrich e5e97ddf35 test_op_il_seq_point.sh now checks sizes using diff.
Replaced sdiff with diff because sdiff cuts long line and we need to parse the code length from its output.
2015-01-08 14:01:51 +00:00
Marcos Henrich 2f5e9048a1 test_op_il_seq_point.sh no longer compares native code with AOT.
AOT compilation is also including non deterministic data into the generated native code.
2015-01-08 13:56:43 +00:00
Zoltan Varga 16b2539bab [runtime] Another windows build fix. 2015-01-08 07:29:56 -05:00
Zoltan Varga 2368176d0f [runtime] Add a header check for arpa/inet.h. 2015-01-08 06:16:42 -05:00
Zoltan Varga 62b4e3a314 [cominterop] Fix a crash by passing the proper value to mono_marshal_free_ccw (). Fixes #24638. 2015-01-08 05:09:11 -05:00
Zoltan Varga a568b19c13 [cominterop] Avoid crashes when the first item of a list is deleted and the list head was stored in a hash table. Fixes #24720. 2015-01-08 05:05:08 -05:00
Zoltan Varga b103884634 [runtime] Avoid Process.GetCurrentProcess ().HasExited asserting. Fixes #25720. 2015-01-08 04:47:55 -05:00
Jo Shields 51f2a8c251 [msvc] 64-bit Windows still needs _WIN32_WINNT (for monoposixhelper) 2015-01-08 08:55:09 +00:00
Mark Probst c389a66121 [sgen] Unified loop for scanning card tables.
We had previously used two separate loops for scanning card tables: One
loop that handled blocks where the object slots were larger than a single card,
and one loop where they were smaller.  In the large case we would iterate over
the slots, check whether they were occupied, and if so, check their cards. In the
smaller case we would do it the opposite way: Check the card first, then check
the slots in the card.

For some workloads, the large loop resulted in lots of cache misses, because
we were fetching memory all over the blocks instead of just the cards.  The small
loop, on the other hand, would sometimes scan objects twice, namely when they
crossed the boundary between two cards, and both cards were marked.

This new unified loop fixes both problems.  We always look at the cards first,
and we keep a scan front pointer that prevents scanning objects more than
once.
2015-01-07 16:57:54 -08:00
Mark Probst 001c8a68ed [sgen] Don't scan card tables differently based on object size.
For objects that were larger than a card we iterated over the objects in a block, rather
than iterate over the cards.  To do that we had to load the object headers, which caused
cache misses.  The card bits are consecutive, so they'll be in the cache.
2015-01-07 15:34:56 -08:00
Mark Probst 5d0069dec3 [sgen] Use a scan front pointer to avoid scanning objects twice from cardtable. 2015-01-07 15:34:56 -08:00
Mark Probst 6be120bde8 [sgen] Prefetching of blocks and cards in cardtable scanning. 2015-01-07 15:34:56 -08:00
Zoltan Varga 15e9a61807 [arm] Fix OP_ICLE_UN. Fixes #25798. 2015-01-07 18:29:12 -05:00
Vlad Brezae 7786ec1408 [x86] Enable the monitor enter/exit fastpaths. 2015-01-07 14:21:45 -08:00
Vlad Brezae efe2234b98 [amd64] Enable the monitor enter/exit fastpaths. 2015-01-07 14:21:14 -08:00
Vlad Brezae 753348a68b Unmanaged implementation of spin free locks.
The commit addresses race issues between the waiting on the lock semaphore and the release of the lock. The entry count and the owner field are grouped together into the status field. Accesses to it are done using atomic cas operations so threads aren't lost waiting for release on the lock semaphore.

Disable native fastpaths for now, until they are updated to the new implementation.
2015-01-07 14:19:59 -08:00
Vlad Brezae 3327e1c25e [amd64] Fix compilation error when monitor fastpaths are disabled 2015-01-07 14:03:12 -08:00
Vlad Brezae b7482d9b22 Remove IL fastpaths for Monitor Enter/Exit. 2015-01-07 14:03:11 -08:00
Vlad Brezae 045422715f [runtime] If possible, use fast tls for small_id storage. 2015-01-07 13:48:18 -08:00
Marek Safar f41f2f0df1 [mcs] An argument to nameof operator cannot be extension method group 2015-01-07 21:06:11 +01:00
Marek Safar c97ef02dc8 [mcs] update exception filters syntax to use yet another contextual keyword 2015-01-07 19:22:04 +01:00
Zoltan Varga e2558972bd [sdb] Enable the StackFrame.Domain property on stack frames which represent native transitions. 2015-01-07 10:59:17 -05:00
Marcos Henrich 93ffd56a4a [runtime] Improved mono_local_cprop OP_IL_SEQ_POINT filtering.
Replaced more ins->next usages with mono_inst_next (ins, OP_IL_SEQ_POINT).
2015-01-07 14:11:16 +00:00
Marek Safar 50405e2e64 [mcs] Add reference to parent storey when this is hoisted in disconnected state machine. Fixes #25007 2015-01-07 14:02:12 +01:00
Marcos Henrich 0e90a8ccce test_op_il_seq_point.sh can now tests with and without AOT
Without AOT only code size is checked
With AOT native code is checked.
We cannot compare the native code without AOT because some undeterministic data is stored in the middle of the code and there is no easy way of making the native code dumper ignore it.
2015-01-07 12:39:27 +00:00
Marcos Henrich 1aa885d086 test_op_il_seq_point.sh now compares native code with AOT only.
Comparing native code is only possible with AOT because it is almost deterministic.
A diff of the smallest method changed by OP_IL_SEQ_POINT is now printed to ease problem identification.
2015-01-07 11:56:21 +00:00
Zoltan Varga 9b294f1fc0 [aot] Enable separate llvm modules on amd64. 2015-01-07 03:49:01 -05:00
Zoltan Varga bda99d7944 [aot] Enable emission of debug info for LLVM code if the LLVM code is emitted into a separate module. 2015-01-07 03:44:58 -05:00
Zoltan Varga ac94e5c7cd [aot] Add support for emitting the llvm code separately into a separate object file on amd64. Not enabled yet. 2015-01-07 03:11:49 -05:00
Zoltan Varga eb0a3fe358 [aot] Allow the emission of the LLVM code into a separate .s/.o file. Not enabled yet. 2015-01-07 01:46:14 -05:00
Rodrigo Kumpera b92e560d3f [runtime] Change socket-io.c to use new API for local IP discovery. 2015-01-06 16:11:43 -05:00
Rodrigo Kumpera 0457b278f2 [utils] Add abstraction to retrive the local interface addresses. 2015-01-06 16:11:43 -05:00
Rodrigo Kumpera da0acc6450 [runtime] IPV6 is now the norm so we can expect all systems to have it. 2015-01-06 16:11:43 -05:00
Zoltan Varga f6ecbd11dc [sdb] Bump protocol version to 2.39 so the single stepping changes can be detected by clients. 2015-01-06 15:14:09 -05:00
David Karlaš 1eb510ed44 [Sdb] Ignore hidden sequence points 2015-01-06 15:12:37 -05:00
David Karlaš 1187a32f28 [Sdb] With better mimicking of .Net debugging experience stepping out of method returns to method call instead of next statement 2015-01-06 15:12:17 -05:00
David Karlaš ccf808281d [Sdb] Fixed bug with STEP_DEPTH_MIN+STEP_SIZE_MIN which stopped on NONEMPTY_STACK sequence point in same method as it begin stepping 2015-01-06 15:12:16 -05:00
David Karlaš 1d195ac697 [Sdb] Removed exclusion of CEE_POP and CEE_NOP sequence point creation 2015-01-06 15:12:15 -05:00
David Karlaš 85c40f6784 [Sdb] Set filter on ss_req in ss_create because filter was never set condition "if ((ss_req->filter & STEP_FILTER_STATIC_CTOR) &&" in process_single_step_inner was nerver true 2015-01-06 15:12:15 -05:00
Zoltan Varga a5c3f535cc [sdb] Fix single stepping problems caused by missing seq point info in .mdb files. When stepping in, we have to put a single stepping breakpoint into the parent method, otherwise a missing seq point could cause the debugger to continue until it hits a method entry seq point. 2015-01-06 15:12:15 -05:00
Zoltan Varga 04753f184f [sdb] Avoid putting implicit seq points at nops followed by a sym seq point. 2015-01-06 15:12:15 -05:00
Zoltan Varga 3ce94182e2 [sdb] Put seq points at nop's following calls as well. 2015-01-06 15:12:14 -05:00
Zoltan Varga cd4cbc4c70 [sdb] Emit an implicit sequence point after every call and newobj instruction. 2015-01-06 15:12:14 -05:00
Zoltan Varga 6b43e2d103 [sdb] Avoid using implicit sequence points for methods without debug info in images which have debug info, like auto generated property accessors. 2015-01-06 15:12:14 -05:00
Rodrigo Kumpera 5229466676 [tests] Dump stdout/stderr on test failure. 2015-01-06 15:06:03 -05:00
Marek Safar 157083d1a5 [mcs] Additional fix for naming of nested types in attributes. Second fix of #24172 2015-01-06 19:22:51 +01:00
Rodrigo Kumpera ab0be9bbee [networking] mono_socket_address_init should set len to the size of sockaddr_* and not *_addr. 2015-01-06 13:12:08 -05:00
Zoltan Varga a9a87caa20 [runtime] Fix a crash in FieldInfo.GetRawConstantValue () if a dynamic field doesn't have a default value, but has the HasDefault flag set. 2015-01-06 12:59:30 -05:00
Zoltan Varga 96b25f0d82 [jit] Add a test for #25487. 2015-01-06 12:22:01 -05:00
Zoltan Varga 3a74470db6 Merge pull request #1493 from BrzVlad/vtune-integration2
Vtune integration
2015-01-06 04:00:09 -05:00
Rodrigo Kumpera 36128150d1 [io-layer] Remove some deadcode from the sockets code.
That function is no longer needed since nothing calls it.

This was effective dead code for ages as it would only be used by targets
with no ipv6. So, unless you're using Debian Potato, nothing to see here.
2015-01-05 18:50:43 -05:00
Rodrigo Kumpera c87236f052 [sdb] Move sdb to use the new portable networking APIS.
This simplifies a lot of the code in some cases and enables some ports
to have access to previously disabled functionality (passive inferior).
2015-01-05 18:48:41 -05:00
Rodrigo Kumpera 98df6c7728 [runtime] Use the new network abstraction in the sockets code.
By using a single networking abstraction for name resolution we no longer
need to have two code paths, one for struct hostent and one for struct addrinfo. Good riddance.

More specifically.

We now use functions to fetch protocol numbers and not rely on inline ifdefs.

We use the single abstraction over name resolution, which allows us to have a single code
path to convert the native structure into a managed one.

Finally, we moved the polyfill logic for missing functionality to a separate file to make
things easier.
2015-01-05 18:40:34 -05:00
Rodrigo Kumpera ab59edf8a5 [utils] Add a cross platform networking API for name discovery.
This meant to replace the ifdef hell that is part of the current socket code and to
modernize the sockets code on some targets.

For some reason we still relied on gethostbyname (and variants) in 2015.
Those functions were deprecated circa the KAME project - yes, I'm that old to remember it.

With that in mind, we now rely on getaddrinfo for all sane targets and drop straight to
the lowest common denominator when it's not available, which is gethostbyname/gethostbyname2.

This patch removes support for the glibc gethostbyname2_r extension. Which is not a practical
problem because all linux/android target we can realistically run on have getaddrinfo.
Sorry grampa, no Slackware 8.0 anymore.

This code has a simpler structure of whole file ifdefs as much as possible, which is
a blessing to OOT ports.
2015-01-05 18:29:02 -05:00
Rodrigo Kumpera 23b892dc3d [configure] Add checks for some posix networking functions (getaddrinfo, gethostbyname2, gethostbyname, getprotobyname).
Some targets lack different combinations of those functions so we got to check them all.
2015-01-05 18:21:48 -05:00
Vlad Brezae 97c01a0adb [profiler] Report code buffers to vtune. 2015-01-05 14:19:52 -08:00
Vlad Brezae 92128dfd4e [profiler] Include vtune support for jitted methods in the build system.
In order to track emitted code with vtune you need to :
* pass --enable-vtune=yes to autogen.sh
* have in the LD_LIBRARY_PATH the path to the profiler libraries (ex $(installation_folder)/lib)
* pass argument --profiler=vtune to mono
2015-01-05 14:19:50 -08:00
Zoltan Varga 1b9729dbf6 [arm64] Mark the 'tailcall' opcode as a call. Fixes #25646. 2015-01-05 15:22:16 -05:00
Alexander Köplinger 04170bbc67 Add build badge for debian-ppc64el to README.md 2015-01-05 19:20:04 +01:00
Marek Safar 81bd20edbd Fixes build 2015-01-05 19:13:16 +01:00
Marek Safar a9dbf2f152 [system.net.http] Use HttpWebRequest without additional buffering. Fixes #25213 2015-01-05 18:02:03 +01:00
Zoltan Varga 27fd291b19 [aot] Avoid returning different names for the same method in get_debug_sym () if llvm fails for a method. Fixes #25107. 2015-01-05 11:40:52 -05:00
Alexander Köplinger 4dce3c27d9 [System.Net.Http] Fix CancelRequestViaProxy() test that intermittently fails on Jenkins
Seems that on Jenkins, the request to the (non-existing) IP address used in the test returns before the 1s timeout,
causing the test to fail because the cancellation didn't fire.

Lowering the timeout to 1 millisecond should fix this.

I also verified that the test still correctly fails when the commit that fixed the original issue is reverted.
2015-01-05 16:41:30 +01:00
Marcos Henrich 6719c94da5 [runtime] Improved test_op_il_seq_point.sh
test_op_il_seq_point.sh now compares methods generated native code.
2015-01-05 14:56:18 +00:00
Zoltan Varga 56e0f4518f Merge pull request #1492 from akoeplinger/fix-eglib-remap-test
Add g_getdtablesize to list of acceptable g_* symbols in mono, for test-eglib-remap
2015-01-05 08:06:58 -05:00
Marek Safar cd3707a51f [system] Fixes HttpWebRequest::AllowReadStreamBuffering 2015-01-05 12:48:29 +01:00
Zoltan Varga 63a167dbcb Merge pull request #1491 from akoeplinger/fix-async_read
Fix unreliable async_read.exe test
2015-01-04 23:24:51 -05:00
Alexander Köplinger 0e298082d7 [System.Numerics] Ported code from MS referencesource 2015-01-04 11:26:42 +01:00
Zoltan Varga 7ab68ad32f [aot] Get rid of the code offsets code since direct method addresses are used on all supported platforms. 2015-01-04 04:43:06 -05:00
Zoltan Varga 3e0c70415e [aot] Avoid creating gsharedvt synchronized wrappers if gsharedvt is not enabled. 2015-01-04 04:19:39 -05:00
Zoltan Varga b73e4a71a0 [aot] Use direct method addresses on x86/amd64. 2015-01-04 04:13:45 -05:00
Zoltan Varga 1f2fe37733 [aot] Refactor the MONO_AOT_FILE_FLAG_DIRECT_METHOD_ADDRESSES code a bit. 2015-01-04 04:11:45 -05:00
Zoltan Varga 25abc112ea [aot] Split the unbox_trampolines table into two to separate the indexes and the method addresses/offsets. 2015-01-04 04:03:52 -05:00
Zoltan Varga e8156a0c8c [aot] Use nops as alignment padding on amd64 instead of zeros. 2015-01-04 03:07:47 -05:00
Alexander Köplinger dd8d450575 Add g_getdtablesize to list of acceptable g_* symbols in mono, for test-eglib-remap
The method was added in cd9f3b5859 and caused the test to fail.
2015-01-04 08:59:35 +01:00
Alexander Köplinger 219d56df76 Fix unreliable async_read.exe test 2015-01-04 05:51:18 +01:00
Zoltan Varga b7c3485cda [runtime] Use the proper domain in mono_thread_destroy_domain_tls (). Fixes #25629. 2015-01-03 13:36:02 -05:00
Zoltan Varga a0395d390a [jit] Disable the seq point tests for now, they seem to fail because of stdout buffering problems on osx. 2015-01-03 13:32:43 -05:00
Zoltan Varga 2e90c80f54 [runtime] Fix the LOCK_TRACER build. 2015-01-03 10:03:40 -05:00
Miguel de Icaza a080a7d8a9 [Windows.Forms] DataGridViewTextBoxCell: do not use a shared editing control
This fixes the case of the System.ObjectDisposedException being thrown
when editing a text cell in a DataGridView control a second time.

The problem is that the static control would be disposed by the code in
DataGridView's EditingControlInternal, but this instance was reused over
and over.

Instead, we now createa  new editing control every time that the TextBoxCell
is created.

The investigation for this bug took place here:

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

Fixes also:

https://bugzilla.xamarin.com/show_bug.cgi?id=22297
2015-01-03 12:42:32 -02:00
Zoltan Varga 43aa9be05d [jit] Fix some IL_SEQ_POINT filtering issues on x86. 2015-01-03 07:13:09 -05:00
Zoltan Varga 9514523876 [runtime] Implement FieldInfo.GetRawConstantValue () for dynamic types. Fixes #25690. 2015-01-03 06:48:45 -05:00
Zoltan Varga 2d4209742d [sdb] Fix the previous change by setting SingleStepReq.start_method when the request is created, not when single stepping is started, since the latter can happen multiple times for a single step request. 2015-01-03 06:01:22 -05:00
Zoltan Varga 1139f71dc2 [sdb] Avoid stepping out of the current method if it is a cctor if StepFilter.StaticCtor is used. Fixes #14277. 2015-01-03 05:38:19 -05:00
Zoltan Varga 9d64590968 Merge pull request #1473 from esdrubal/sq
[runtime] Optimizations fixes for OP_IL_SEQ_POINT compatibility.
2015-01-03 04:40:22 -05:00
Zoltan Varga 9e03c10d8f [jit] Fix the returning of vtypes of size less than 8 in registers by using the proper sized load instructions instead of always 8. Fixes #25631. 2015-01-02 22:29:04 -05:00
Zoltan Varga f9bcd25048 [pdb2mdb] Implement support for scopes. Fixes #25357. 2015-01-02 21:08:59 -05:00
Zoltan Varga 46b15a2a6b [bcl] Fix crashes when FieldInfo.GetValue () is called on a pointer field with a null value. Fixes #25664. 2015-01-02 18:36:02 -05:00
Zoltan Varga 102f316ae2 [runtime] Avoid reading past the end of a MonoGenericParam structure in some cases. Fixes #25679. 2015-01-02 17:58:40 -05:00
Marek Safar 40810cf076 [mcs] More special case handling for explicit type names documentation. Fixes #25544 2015-01-02 23:16:33 +01:00
Marek Safar 4ab03af16a [corlib] Fix Type::GetEnumName/IsEnumDefined to return same value as Enum::GetName/IsDefined 2015-01-02 18:54:48 +01:00
João Matos a3510a115a Fixed metadata offsets for ARM64 support. 2015-01-02 16:30:14 +00:00
Alexander Köplinger e50764ba04 Fix CookieContainerTest to use expiration date in the future
It is 2015 now, so the cookie is already expired and the test fails otherwise.
2015-01-02 16:54:22 +01:00
Marek Safar e8796320bf [corlib] Allow bool/char to enum conversions 2015-01-02 15:19:51 +01:00
Alexander Köplinger c04f7e75bf Add missing quote to string added in 156ab8c5fc
This would fail to compile otherwise when the PCL constant is defined.
2014-12-31 12:42:05 +01:00
Alexander Köplinger 45a6bc149d Merge pull request #1081 from rneatherway/bug17537
Allow CLR binaries to be passed to Process.Start
2014-12-31 12:38:41 +01:00
Marek Safar fe37c2458d Merge pull request #1482 from akoeplinger/fix-codetaskfactory-2
[Microsoft.Build.Tasks] Rework CodeTaskFactory to use CodeDom and implement parameter support
2014-12-30 22:24:48 +01:00
Alexander Köplinger cdc8071806 [Microsoft.Build.Tasks] Rework CodeTaskFactory to use CodeDom and implement parameter support
Removed the old string-based code and use CodeDom APIs for everything.
Implemented parameter support by adding the necessary properties to the generated class.
Fixed bug where the task references weren't passed to the compiler.
This should now work with VB code as well (assuming the compiler is installed).
2014-12-28 13:08:20 +01:00
João Matos be8962df9c [runtime] Added support for builds with cross-compiled LLVM. 2014-12-24 19:49:12 +00:00
João Matos 1c3d900853 [runtime] Fixed mini-llvm.c build with MinGW.
MinGW-w64 lacks a definition for bzero which we use in the rest of this file, provide a simple implementation that should get the job done.
2014-12-24 19:49:11 +00:00
João Matos 28ce82dbed Merge pull request #1479 from mfoliveira/ppc64el-build-errors-v2-mit
Fix build errors in mono-context.c on ppc64el
2014-12-24 13:31:03 -05:00
Mauricio Faria de Oliveira 55fa0a561a Fix build errors in mono-context.c on ppc64el
Build error #1:

	libtool: compile:  gcc <...> -c mono-context.c  -fPIC -DPIC -o .libs/mono-context.o
	mono-context.c: In function 'mono_sigctx_to_monoctx':
	mono-context.c:435:68: error: 'MONO_SAVED_GREGS' undeclared (first use in this function)
	  memcpy (&mctx->regs, &UCONTEXT_REG_Rn(uc, 13), sizeof (mgreg_t) * MONO_SAVED_GREGS);
		                                                            ^
	mono-context.c:435:68: note: each undeclared identifier is reported only once for each function it appears in
	mono-context.c:436:70: error: 'MONO_SAVED_FREGS' undeclared (first use in this function)
	  memcpy (&mctx->fregs, &UCONTEXT_REG_FPRn(uc, 14), sizeof (double) * MONO_SAVED_FREGS);
		                                                              ^
The MONO_SAVED_GREGS and MONO_SAVED_FREGS macros are defined in mini-ppc.h.
The problem happens because commit 7e056cd346
moved code using them from exceptions-ppc.h (which includes mini-ppc.h) to
mono-context.c (which doesn't), where they're not #included.

So, include mini-ppc.h in mono-context.c (in the existing powerpc ifdef block).

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>

Build error #2:

Now, it turns out mini-ppc.h doesn't know MonoMethod, MonoMethodSignature, and MonoObject.
So, include object.h (MonoObject), which includes metadata.h (MonoMethod and MonoMethodSignature),
in mini-ppc.h.

	libtool: compile: gcc <...>  -c mono-context.c  -fPIC -DPIC -o .libs/mono-context.o
	In file included from mono-context.c:427:0:
	../../mono/mini/mini-ppc.h:37:2: error: unknown type name 'MonoMethod'
	  MonoMethod *method;
	  ^
	../../mono/mini/mini-ppc.h:306:31: error: unknown type name 'MonoMethodSignature'
	 mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
		                       ^
	../../mono/mini/mini-ppc.h:306:64: error: unknown type name 'MonoMethodSignature'
	 mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
		                                                        ^
	../../mono/mini/mini-ppc.h:312:27: error: unknown type name 'MonoObject'
	 mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp, mgreg_t *int_regs, gdouble *fp_regs, gboolean rethrow) MONO_INTERNAL;
		                   ^

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-12-24 15:52:07 -02:00
João Matos 052dd2c94e Merge pull request #1478 from mono/revert-1475-ppc64el-build-errors
Revert "Fix build errors in mono-context.c on ppc64el"
2014-12-24 11:43:37 -05:00
João Matos 30a7ba9808 Revert "Fix build errors in mono-context.c on ppc64el" 2014-12-24 16:42:17 +00:00
Miguel de Icaza 649f91f71b [System.IO.Compression.FileSystem] Fix infinite loop in ZipFile.Open(string,ZipArchiveMode) 2014-12-24 08:38:12 -02:00
João Matos 074873ab99 Merge pull request #1475 from mfoliveira/ppc64el-build-errors
Fix build errors in mono-context.c on ppc64el
2014-12-23 10:11:59 -05:00
Mauricio Faria de Oliveira e36ef8bda6 Fix build errors in mono-context.c on ppc64el
Build error #1:

	libtool: compile:  gcc <...> -c mono-context.c  -fPIC -DPIC -o .libs/mono-context.o
	mono-context.c: In function 'mono_sigctx_to_monoctx':
	mono-context.c:435:68: error: 'MONO_SAVED_GREGS' undeclared (first use in this function)
	  memcpy (&mctx->regs, &UCONTEXT_REG_Rn(uc, 13), sizeof (mgreg_t) * MONO_SAVED_GREGS);
		                                                            ^
	mono-context.c:435:68: note: each undeclared identifier is reported only once for each function it appears in
	mono-context.c:436:70: error: 'MONO_SAVED_FREGS' undeclared (first use in this function)
	  memcpy (&mctx->fregs, &UCONTEXT_REG_FPRn(uc, 14), sizeof (double) * MONO_SAVED_FREGS);
		                                                              ^
The MONO_SAVED_GREGS and MONO_SAVED_FREGS macros are defined in mini-ppc.h.
The problem happens because commit 7e056cd346
moved code using them from exceptions-ppc.h (which includes mini-ppc.h) to
mono-context.c (which doesn't), where they're not #included.

So, include mini-ppc.h in mono-context.c (in the existing powerpc ifdef block).

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>

Build error #2:

Now, it turns out mini-ppc.h doesn't know MonoMethod, MonoMethodSignature, and MonoObject.
So, include object.h (MonoObject), which includes metadata.h (MonoMethod and MonoMethodSignature),
in mini-ppc.h.

	libtool: compile: gcc <...>  -c mono-context.c  -fPIC -DPIC -o .libs/mono-context.o
	In file included from mono-context.c:427:0:
	../../mono/mini/mini-ppc.h:37:2: error: unknown type name 'MonoMethod'
	  MonoMethod *method;
	  ^
	../../mono/mini/mini-ppc.h:306:31: error: unknown type name 'MonoMethodSignature'
	 mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
		                       ^
	../../mono/mini/mini-ppc.h:306:64: error: unknown type name 'MonoMethodSignature'
	 mono_ppc_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignature *callee_sig) MONO_INTERNAL;
		                                                        ^
	../../mono/mini/mini-ppc.h:312:27: error: unknown type name 'MonoObject'
	 mono_ppc_throw_exception (MonoObject *exc, unsigned long eip, unsigned long esp, mgreg_t *int_regs, gdouble *fp_regs, gboolean rethrow) MONO_INTERNAL;
		                   ^

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-12-23 12:48:20 -02:00
Alex Rønne Petersen 95f9770413 Merge pull request #1472 from Aetf/zh-CHS-patch-fix-25554
Add zh-CHS parent_lcid handling
2014-12-22 18:50:07 +01:00
Mark Probst b4f51ba8e9 [sgen] Fix debug output for descriptor types. 2014-12-22 09:48:03 -08:00
Marcos Henrich e52f1e1f5a [runtime] mini-arm sequence point vars are only required to debug. 2014-12-22 10:51:40 +00:00
Marcos Henrich 44cbf38ddd [runtime] Do not emit seq points for entry/exit offsets on release.
METHOD_ENTRY_IL_OFFSET and METHOD_EXIT_IL_OFFSET are only used by the debugger agent.
2014-12-22 10:09:27 +00:00
Marcos Henrich 5054bd6233 [runtime] mono_if_conversion no longer breaks with OP_IL_SEQ_POINT.
mono_if_conversion now skips OP_NOP and OP_IL_SEQ_POINT while navigating through the instructions.
2014-12-22 10:03:12 +00:00
Aetf 7595f73821 fix coding style 2014-12-22 17:41:23 +08:00
Aetf 80d2c0a74f Add zh-CHS parent_lcid handling 2014-12-22 14:25:33 +08:00
João Matos dabfddfd28 Merge pull request #1470 from cmp-/fix-mutex-trylock-windows
Fix mono_mutex_trylock on Windows
2014-12-20 10:55:26 -05:00
cmp d34764ab2c Fix mono_mutex_trylock on Windows
mono_mutex_trylock is expected to return nonzero on failure, while
TryEnterCriticalSection returns nonzero on success.
2014-12-20 16:23:16 +01:00
Marek Safar 0fda579501 Merge pull request #1465 from akoeplinger/msbuild-getdirnameoffileabove
[xbuild] Implement GetDirectoryNameOfFileAbove ()
2014-12-20 00:09:49 +01:00
Marcos Henrich 6dfca8e721 [runtime] Check that sequence points have no effect on JIT code.
Added a test to check that each method of the test assemblies are JITed the same way with and without the sequence points enabled.
2014-12-19 20:53:46 +00:00
Zoltan Varga 3b5a261a1e Merge pull request #1375 from echampet/cleanup
TARGET_J2EE cleanup.
2014-12-19 14:59:51 -05:00
Miguel de Icaza 156ab8c5fc [Mono.DataConverter] Make it easier to use in PCL libraries 2014-12-19 14:55:25 -05:00
Marek Safar da7bfbe539 Merge pull request #1469 from akoeplinger/msbuild-missing-api
[xbuild] Add missing property 'StandardOutputImportance' to ToolTask
2014-12-19 16:15:05 +01:00
Alexander Köplinger a2f1dfbfcb Respond to code review feedback 2014-12-19 03:51:58 +01:00
Alexander Köplinger b4aa35a571 Respond to code review feedback 2014-12-19 03:45:25 +01:00
Ludovic Henry 22b3945b66 [runtime] Add support to trace generics 2014-12-18 15:47:43 -05:00
Ludovic Henry 4f3b70d511 [runtime] Fix #24605 : "counters not enabled" message with embeders 2014-12-18 15:47:42 -05:00
Alexander Köplinger ece634029e [xbuild] Add missing property 'StandardOutputImportance' to ToolTask
It's a stub and is currently not used by xbuild.
2014-12-18 19:58:51 +01:00
Alexander Köplinger b52e2e25f6 [xbuild] Implement GetDirectoryNameOfFileAbove ()
The method looks for the given file starting at the given path and traverses
the directory tree up until the file is found or root is reached.
2014-12-18 14:58:50 +01:00
Marcos Henrich 58f1c53708 [runtime] mono_local_deadce no longer breaks with OP_IL_SEQ_POINT.
Replaced ins->prev usages with mono_inst_prev (ins, FILTER_NOP | FILTER_IL_SEQ_POINT).
2014-12-18 11:04:36 +00:00
Marcos Henrich 702061aed0 [runtime] Updated amd64 with better OP_IL_SEQ_POINT handling. 2014-12-18 10:53:07 +00:00
Marcos Henrich f982e98f03 [runtime] OP_IL_SEQ_POINT no longer breaks mono_local_cprop
mono_local_cprop now uses mono_inst_next (ins, FILTER_IL_SEQ_POINT) which skips OP_IL_SEQ_POINT.
2014-12-18 10:32:36 +00:00
Marcos Henrich 7e6965d398 [runtime] mono_optimize_branches no longer breaks with OP_IL_SEQ_POINT.
bbn->code was replaced with mono_bb_first_inst (bbn, FILTER_IL_SEQ_POINT).
2014-12-18 09:00:01 +00:00
Marcos Henrich 77ee6e0e08 [runtime] mono_peephole_ins last_ins now skips OP_IL_SEQ_POINT. 2014-12-18 08:26:30 +00:00
Marcos Henrich bfb5185aab [runtime] Added helper methods to iterate MonoInst with filters.
Added methods mono_inst_next, mono_inst_prev, mono_bb_first_inst, mono_bb_last_inst
The added methods do respectively the same as ins->next, ins->prev, bb->code, bb->last_ins but skip the instruction until it matches the specified filter.
2014-12-18 08:15:53 +00:00
Alexander Köplinger 56ea776405 [xbuild] Only execute PCL target "ImplicitlyExpandTargetFramework" when corresponding property is true
This aligns xbuild with the MS.NET behavior.
2014-12-18 05:59:46 +01:00
Marcos Henrich d4a2bab840 Merge pull request #1462 from ExonyLimited/fix-25442
Performance fix for TimeZoneInfo.GetApplicableRule(), addresses #25442
2014-12-17 07:28:17 +00:00
Craig Minihan f0f976b985 Performance fix for TimeZoneInfo.GetApplicableRule(), addresses #25442
* Main use case - JSON.NET serialization of CLR objects containing DateTime fields, GetUtcOffset()=>GetApplicableRule() are the highest Mono methods in the profiler
* The property DateTime.Date access in the foreach is very expensive, this has been moved outside the foreach
* Performance for DateTime.Now passed as a parameter is 10x better than before
* This is the simplest possible change to yield an improvement, it would be better to replace the O(N) loop logic with a binary search - this yields a further 2-3x performance improvement, when master is building I may submit later
2014-12-16 17:19:36 -08:00
Marek Safar bb3fe582d5 [build] Fix bootstrap profile dependencies lib location 2014-12-17 00:09:01 +01:00
Mark Probst 4266d3bc98 [sgen] Never inline sgen_par_object_get_size().
This makes at least graph4 a lot faster.
2014-12-16 13:19:16 -08:00
Marek Habersack d8092c84a9 Bump the referencesource submodule
The new referenced commit in the submodule changes the macro used in the
mobile profile to disable CAS from MOBILE to DISABLE_CAS_USE
2014-12-16 21:50:11 +01:00
Marcos Henrich 67514a19d5 [runtime] remove_block_if_useless now ignores OP_IL_SEQ_POINT. 2014-12-16 20:28:27 +00:00
Marcos Henrich 2694840702 [runtime] mini-amd64 seq_point_info_var is only required to debug. 2014-12-16 20:28:27 +00:00
Marcos Henrich ab392debf4 [runtime] Added gen-compact-seq-points option to MONO_DEBUG.
gen-compact-seq-points can be used to enable the generation of the sequence points data required to map native offsets to IL offsets.
2014-12-16 20:28:27 +00:00
João Matos c021673939 Merge pull request #1336 from esdrubal/datatablereadxmlschema
DataTabe.ReadXmlSchema now handles non Schema base element.
2014-12-16 14:28:01 -05:00
João Matos 5742335f66 Merge pull request #1349 from martinjt/MachineKeyProtect
Implement MachineKey.Protect and MachineKey.Unprotect
2014-12-16 14:26:08 -05:00
João Matos 8597a88b69 Merge pull request #1459 from akoeplinger/fix-website-links
Updated the Mono website links in the man pages
2014-12-16 14:19:03 -05:00
João Matos b5ddc30ebc [System.IO.Compression] Fixed DeflateStream native error when handling empty input.
Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=22346
2014-12-16 18:56:24 +00:00
Marek Safar 6c8b4c1e90 [buid] Fix bootstrap issue on cygwin 2014-12-16 16:00:14 +01:00
Alexander Köplinger 0c8492cbc6 Updated the Mono website links in the man pages
Even though the old links still work, we can save everyone an unnecessary redirect by using the new links.
2014-12-16 15:05:05 +01:00
Marek Habersack c2dce69079 Fix command stream encoding for FTP requests.
Whenever a connection to an FTP server is established, FtpWebRequest
sends an option command to the server to enable UTF8 encoding for the
transfer. So far we've failed to check the request status of that
command and assumed that UTF8 is enabled but *also* failed to actually
use the encoding when sending commands (we had the ASCII encoding
hard-coded). This resulted in failed requests whenever a command named a
file or path which included non-ASCII characters. This patch does two
things:

 * checks the status of the UTF8 enabling command and uses UTF8 encoding
   only if it succeeded. Otherwise Encoding.Default is used.
 * uses the encoding detected above for the command stream.

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

[Tests will follow at a later date]
2014-12-15 23:34:32 +01:00
Neale Ferguson e78a3c6857 Add per thread profiling support to s390x 2014-12-15 14:13:00 -05:00
Jo Shields f5e62d4d2f Merge pull request #1456 from directhex/fix_Microsoft.Build.Execution.BuildManagerTest.BuildCommonResolveAssemblyReferences
Fix Microsoft.Build.Execution.BuildManagerTest.BuildCommonResolveAssemblyReferences
2014-12-15 18:38:53 +00:00
João Matos e723d4ade5 [System] Relaxed Ping test to work under Linux.
So in Linux the PingTimeOut test was returning TtlExpired and failing the assertion. Since I'm not exactly sure how ping behaves under all platforms, relax the test to only make sure it doesn't succeed.
2014-12-15 17:06:27 +00:00
Jo Shields 70d3c7a23a Use net_4_5 libraries for xbuild tests, regardless of target.
This works around failures caused by tests asking for other frameworks (like 4.0) on Mono 4.0, which only has 4.5
2014-12-15 16:59:48 +00:00
Jo Shields d1a5f1d53a Move XBUILD_FRAMEWORK_FOLDERS_PATH definition somewhere useful & export
This variable isn't being passed to the child xbuild process during testing, making it sorta useless.
2014-12-15 16:58:14 +00:00
Alexis Christoforides e79dc945a5 [FileSystemWatcher] Properly handle multicast delegates.
Reverted the async delegate firing which is how Caching et al. expect FSW events; and properly handle the multicast case.

Also fixing a typo/regression in @2f1a136583c90cae805441e63b94bc4f277bb953
2014-12-15 11:05:19 -05:00
Marcos Henrich 25bcda516b Bump referencesource 2014-12-15 15:54:46 +00:00
Jo Shields 9bd865ecc3 Force MSBuildExtensionsPath to point to in-tree xbuild data
As-is, on non-Mac, Xbuild looks for MSBuildExtensionsPath in the folder specified by --prefix, i.e. /usr/local/mono/xbuild by default (which may not & should not exist).
2014-12-15 14:32:18 +00:00
Jo Shields 5b591e1098 Revert "Use ";" not Empty as bad TargetFrameworkDirectory value"
This reverts commit 7b58afa1c8.

Apparently this bad value passes on mac/wrench. So it's not a good failure condition for the test.
2014-12-15 13:37:19 +00:00
Jo Shields 7b58afa1c8 Use ";" not Empty as bad TargetFrameworkDirectory value
After manager.Build is called, a "null" empty for TargetFrameworkDirectory is
a string containing only ";" - a "good" value is the target framework
directory with a trailing ";". By testing for string.Empty, we don't actually
test whether the value has been correctly populated (causing all subsequent
failures).
2014-12-15 12:07:29 +00:00
Miguel de Icaza d16a01fe98 [System.Runtime.Serialization] Further baby steps 2014-12-14 00:02:45 -05:00
Miguel de Icaza 8f32e290ad [System.Runtime.Serialization] Dip toes into using ReferenceSource 2014-12-13 23:50:34 -05:00
Miguel de Icaza db6468e61e [Console/TerminfoDriver] Look in the TERMINFO directory if set 2014-12-13 23:49:51 -05:00
Miguel de Icaza 448f60e7f0 [System/SR] Brings some strings from .NET Core
Used the following script to do this:

var d = XDocument.Load ("Strings.resx");
foreach (var j in d.XPathSelectElements ("/root/data")){ var v = j.XPathSelectElement ("value"); Console.WriteLine ("\tpublic const string {0}=\"{1}\";", j.Attribute ("name").Value, v.Value); }
2014-12-13 19:58:06 -05:00
Miguel de Icaza fda6bf1a33 [Console] Updated to terminfo renderer.
This brings .NET's parameterized terminfo renderer, various fixes and
semantic changes.

The existing implementation of the Console did not have a proper an
implementation of terminfo's parameterized sequences.  Instead of
this, a collection of hacks existed to hardcode both light colors and
cursor position.  These are now gone, since the parameterized strings
do contain the correct values for this.

The search path for terminfo now picks the most modern location for
terminfo.   With the old paths in place.

The lookup for terminfo databases only supported the lookup based on
the first character of a terminal, so for example, for xterm this was
$terminfo_dir/x/xterm, but OSX and maybe other systems now store the
files in $terminfo_dir/78/xterm (where 78 is the hex representation of
'x', the first letter of the terminal name).

The fallback is still in place for other Unix systems.

We no longer use the built-in terminfo databases as the first pick,
instead we try to load the system terminfo database before we use the
built-in versions.

Worth figuring out if we want to remove the two built-in ones (Linux
and xterm) as broken terminfo databases are no longer the norm in Unix
and just keep the ansi one as a database of last resort.

This means that the console actually now gets high colors on MacOS,
not just Linux.

This also fixes the issue with consoles with more than 256 colors.  As
reported in bug 18315.
2014-12-13 19:37:39 -05:00
Marek Safar 8a061c8c8e Merge pull request #1451 from akoeplinger/fix-winforms-test
[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault
2014-12-13 10:01:38 +01:00
Marek Safar 06a22be0a2 Merge pull request #1452 from esdrubal/xmlnamespace
[System.Xml.Linq] xmlns prefixes are no longer generated in some cases.
2014-12-13 10:01:11 +01:00
Marcos Henrich c750dcca8c Disable sequence points
Sequence points were disabled until the optimization issues it causes are handled.
2014-12-12 21:29:20 +00:00
Marcos Henrich c9f09f1354 Do not call seq_point_info_get_write_size with no seq points.
This change fixes a segfault when sequence points are disabled.
2014-12-12 21:29:19 +00:00
Marcos Henrich aad3c917e4 [System.Xml.Linq] xmlns prefixes are no longer generated in some cases.
- XNodeWrite.FillXmlns was adding a prefix to the attribute when no prefix was found (prefix==null)

  - XNodeWrite.LookupPrefix now returns string.Empty prefix when the namespace is the same as the element.
    A string.Empty prefix explicitly states that it has no prefix whereas null states that prefix was not defined.
    When LookupPrefix returns null for a namespace it means that a prefix should be generated first for anything that uses the namespace.
    That is what XmlSerializationWriter.GetQualifiedName does.

Fixes #24300
2014-12-12 19:50:15 +00:00
Marcos Henrich 2039c7d499 [System.Xml.Linq] Test XmlSerializer with custom namespace.
Covers #24300.
2014-12-12 19:01:51 +00:00
João Matos c7593a29f8 [System] Fixed Ping returning invalid results on OSX.
Simplify the code by re-using the OSX check from Platform which is more robust and add some tests to make sure we don't regress.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=25210.
2014-12-12 18:25:44 +00:00
Jonathan Pryor ade02c3f67 [mscorlib/Android] CultureInfo.ClearCachedData() clears DateTime.
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=24947

When an Android user changes the timezone, those TimeZone changes
aren't reflected in Xamarin.Android apps. Part of this is a
Xamarin.Android bug, in which it needs to listen for TimeZone change
notifications and in turn let Mono know that the TimeZone changed.

Xamarin.Android can/will call Thread.CurrentCulture.ClearCachedData()
and Thread.CurrentUICulture.ClearCachedData() when the TimeZone has
changed. This will allow Mono to lookup the TimeZone info again.

At which point we hit two problems within Mono:

 1. TimeZoneInfo.AndroidTimeZones.Local is unnecessarily cached.
 2. DateTime itself caches the UTC offset for use by DateTime.Now.

TimeZoneInfo.Local is *already* cached, and TimeZoneInfo.Local is
properly cleared by TimeZoneInfo.ClearCachedData() while
TimeZoneInfo.AndroidTimeZones.Local wasn't. Removing the extra
cache allows the TimeZoneInfo to be looked up again.

Which brings us to DateTime.Now: for my simple test case, after
calling CultureInfo.ClearCachedData() the result of
DateTime.Now.ToString() didn't reflect the newly current TimeZone. The
cause for this was DateTime.to_local_time_span_object and
DateTime.last_now, which DateTime.Now uses as a cache for the
TimeZone's UTC offset.

Since these DateTime fields weren't cleared, subsequent DateTime.Now
invocations reported the *previous* TimeZone instead of the current
timezone.

To fix this, add an `internal` DateTime.ClearCachedData() method, and
call DateTime.ClearCachedData() from CultureInfo.ClearCachedData().
2014-12-12 12:29:04 -05:00
Alexander Köplinger bb100049e1 [MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault
The code in ComponentModel (https://github.com/mono/referencesource/blob/7dc4e513eafd3fb30d34111948ef14c981264463/System/compmod/system/componentmodel/CategoryAttribute.cs#L276) looks up the category name by string concatenation, which means it wasn't captured in our SR.cs.
We also can't add the correct value for PropertyCategoryDefault as a string constant to SR.cs since the value is retrieved via GetObject () and we currently just return the parameter name there.

A short-term workaround is to just special case PropertyCategoryDefault in GetObject ().
2014-12-12 02:39:02 +01:00
Zoltan Varga 8f21c92ad9 [amd64] Fix a simple peephole opt broken by the OP_IL_SEQ_POINT changes. 2014-12-11 19:30:07 -05:00
Zoltan Varga b9a6f0e669 [jit] Mark OP_IL_SEQ_POINT as not having side effects. 2014-12-11 19:14:18 -05:00
Zoltan Varga f372ba68ec [bcl] Fix another test failure caused by the usage of the reference version of System.ComponentModel. 2014-12-11 18:31:59 -05:00
Mark Probst 5e7e4438e7 [sgen] Add an assertion. 2014-12-11 15:02:15 -08:00
Mark Probst a8fd467805 [sgen] Use the SGEN_UPDATE_REFERENCE macro in optimized copy. 2014-12-11 15:01:45 -08:00
Mark Probst a532321bc4 [sgen] Fix evacuation.
We can't dereference an object's VTable before we know that it's not
tagged.  In this case, forwarded.  The access would be unaligned and
might even fault.
2014-12-11 14:57:58 -08:00
Zoltan Varga fcc0c902ea Revert "[jit] Enable tail calls from gshared code. Fixes #25224."
This reverts commit ca0dd5c0bb.

Revert this as it causes a performance regression in f#.
2014-12-11 17:51:19 -05:00
Alexis Christoforides 0146e5c751 Fix merge typo 2014-12-11 16:00:40 -05:00
Alexis Christoforides 2f1a136583 [System.IO.KeventWatcher] Fixed deadlock when watcher stopped/disposed from its own event handler.
This fixes hangs in tests that do that (ie. System.Runtime.Caching).
2014-12-11 15:44:54 -05:00
Zoltan Varga ca0dd5c0bb [jit] Enable tail calls from gshared code. Fixes #25224. 2014-12-11 15:40:00 -05:00
Zoltan Varga cd74f7a191 [jit] Remove some dead code. 2014-12-11 15:40:00 -05:00
Joao Matos 4733e56feb [runtime] Fixed shutdown crasher in mono_thread_pool_cleanup.
We call `mono_thread_pool_cleanup` twice from `mono_runtime_try_shutdown` and later `mono_domain_finalize`, which meant we tried to destroy the semaphore twice and that caused a crasher.

Fix this by clearing out the semaphore pointer. That way when we try to destroy it again it's already null and execution continues just fine.
2014-12-11 18:47:11 +00:00
Zoltan Varga 2040537203 [sdb] Fix the decoding of the next array when decoding sequence points. 2014-12-11 13:23:08 -05:00
Joao Matos 7453ec0520 [sgen] Fixed dump_alloc_records() to work on MSVC.
We are getting some crashers in printf when using the 'z' size_t printf specifier.
2014-12-11 17:49:06 +00:00
Joao Matos 9e85fd5fa9 [sgen] Align vtable pointers to 8-bytes for phony vtable used for filling the nursery.
Thanks to Kumpera for providing the fix!
2014-12-11 17:48:56 +00:00
Mark Probst e8791b18fe [sgen] Disable evacuation temporarily to fix crashes. 2014-12-11 09:30:12 -08:00
Zoltan Varga 0e311c027d [sdb] Another try at fixing #25009. 2014-12-11 11:58:41 -05:00
Marek Safar 554ee2294d Fix DateTimeConverter test 2014-12-11 13:40:29 +01:00
Zoltan Varga c4d9659266 [sdb] Fix another shutdown crash. Fixes #25009. 2014-12-11 07:34:04 -05:00
Vlad Brezae 49830fb910 Populate small id field for MonoInternalThread structure. 2014-12-10 12:22:42 -08:00
Rodrigo Kumpera 5572635566 Merge pull request #1403 from schani/fix-roslyn-linux-oom
Fix Roslyn Linux OOM
2014-12-10 10:53:16 -05:00
Atsushi Eno 8432d2d010 bump rx to rx-oss-v2.2 and add branch info on .gitmodules. 2014-12-10 23:16:35 +08:00
Marek Safar b691656aaf [mcs] Better recovery from failed async return type inference. Fixes #25165 2014-12-10 15:08:01 +01:00
Jo Shields 72c52fe46c Distribute reference assemblies in source tarball. Yuck. 2014-12-10 12:57:14 +00:00
Marek Safar f893a4ca84 [System.Drawing] Fixes commit 2abd0ed92e 2014-12-10 12:52:23 +01:00
Marek Safar 922ec7ce2a [mcs] Update static using to match the latest update (still work in progress) 2014-12-10 12:32:21 +01:00
Marek Habersack 99b622120b Specify referencesource branch in .gitmodules to make updating easier 2014-12-10 11:33:14 +01:00
Marek Habersack 7856988e65 Update external/referencesource to fix mobile builds 2014-12-10 11:31:27 +01:00
Mark Probst 4e58de23d2 [sgen] Always alloc degraded when nursery allocation fails.
There's an unlikely case that Roslyn triggers quite often on Linux: A
thread tries to allocate from the nursery, but it's full.  It triggers
a nursery collection, then tries allocating again.  Between the
collection and the allocation retry, another thread fills the nursery
so that the retry also fails.

We failed an assertion in this case.  Now we always go to the major
heap if it happens.
2014-12-09 17:31:25 -08:00
Zoltan Varga bcc31684e4 [arm] Really fix the build. 2014-12-09 18:34:35 -05:00
Zoltan Varga 7a242d8132 [arm] Fix the build. 2014-12-09 18:19:46 -05:00
Mark Probst d45c58afcd [runtime] Fix string size calculation in mono_string_new_size().
This bug is not hit when doing managed allocations with SGen because the
managed allocator catches it.  It can be triggered with the embedding API, as
well as when the heavy binary protocol is enabled, in which case `bug-17590`
fails.
2014-12-09 13:16:25 -08:00
Zoltan Varga 2607beed06 [runtime] Allow StructLayoutAttribute.Pack values between 16 and 128. Fixes #25059. 2014-12-09 15:40:11 -05:00
Zoltan Varga 2abd0ed92e [System.Drawing] Add support for a null culture argument to the ConvertFrom () method in RectangeConverter/SizeFConverter, the reference sources version of TypeConverter.ConvertFromString () passes null as the culture. 2014-12-09 15:16:49 -05:00
Zoltan Varga 476e87f593 [System.Data] Fix a test failure caused by the transition to the reference sources version of System.ComponentModel. 2014-12-09 14:53:18 -05:00
Marcos Henrich b99438f021 Merge pull request #1436 from esdrubal/readerwriterlockslim
[System.Core] Bring .NET implementation of ReaderWriterLockSlim.
2014-12-09 19:01:46 +00:00
Zoltan Varga 5c39898c62 Merge pull request #1448 from ermshiperete/TSBTextTruncation
[MWF] Don't truncate text on ToolStripButton
2014-12-09 13:34:47 -05:00
Zoltan Varga eb60df89d0 Merge pull request #1449 from ermshiperete/Xamarin-bug-23591
[MWF] Fix crash in multi-selection list view
2014-12-09 12:29:58 -05:00
Eberhard Beilharz c7ad829794 [MWF] Fix crash in multi-selection list view
Calling owner.UpdateMultiSelection can also change the selected item,
causing a crash.

This change improves the fix for Xamarin bug #23591.
2014-12-09 18:15:12 +01:00
Paolo Molaro bb4213224a [profiler] Enhance the profiler to keep track of and summarize jit trampolines and helpers. 2014-12-09 17:47:28 +01:00
Paolo Molaro 2946a09c04 [profiler] Report trampolines and other JIT helpers to the profiler. 2014-12-09 17:47:28 +01:00
Paolo Molaro 5664e72b7c [jit] Expose helper method to the rest of the JIT to get specific trampoline descriptions. 2014-12-09 17:47:28 +01:00
Paolo Molaro 017c171b36 [profiler] Provide more options for describing jit code buffers precisely. 2014-12-09 17:47:28 +01:00
Jo Shields 11a5109e41 ReferenceSource ComponentModel changes to mobile_System.dll.sources 2014-12-09 16:44:27 +00:00
Eberhard Beilharz c66e9e63c2 [MWF] Don't truncate text on ToolStripButton
Previous code subtracted 4 pixels of the height of the text of a
toolstrip button, presumably to leave a margin. However, margins
are handled elsewhere, so we ended up with truncated text.
2014-12-09 17:22:30 +01:00
Marek Safar 8a249042e4 [system] Workaround boostrap issue with HostProtectionAttribute 2014-12-09 15:56:45 +01:00
Zoltan Varga 91e3a07ece Merge pull request #1447 from chrisvire/bug-25102
[MWF] Use Ctrl+PageUp/PageDown for Tab Navigation
2014-12-09 09:25:03 -05:00
Marek Safar 0cff8cb933 [corlib] Workaround boostrap issue with HostProtectionAttribute 2014-12-09 15:09:34 +01:00
Marek Safar 767b1570f2 [System] Use ComponentModel from reference sources 2014-12-09 14:30:40 +01:00
Marek Safar c64b1d4809 Merge pull request #1446 from odinserj/master
Add DateTimeOffsetConverter to the default converters list
2014-12-09 10:03:30 +01:00
Marek Safar 8913ef3449 make dist fix 2014-12-09 09:59:25 +01:00
Marek Safar 7ac15125c0 Fix dmcs to have correct sdk value 2014-12-09 09:46:47 +01:00
Marek Safar 5c7bc03833 Update mcs test 2014-12-09 09:30:14 +01:00
Zoltan Varga 5e46fb50ca [sdb] Fix more crashes on shutdown when the assembly unload callbacks are called on the debugger thread. Fixes #25009. 2014-12-08 17:54:42 -05:00
Zoltan Varga 56a0a9e75e [build] Print out the version of the bootstrap mcs if the profile check fails. 2014-12-08 15:56:01 -05:00
Zoltan Varga b7925f2cfd [runtime] Remove the bug-438454.exe test, it tests behaviour which is by design. 2014-12-08 15:48:17 -05:00
Zoltan Varga bab4b8f9d2 [runtime] Add another rule for the builder-sgen.h -> main-sgen.o dependency since apparently some versions of automake etc. generate a main-sgen.o file too. 2014-12-08 15:18:06 -05:00
Zoltan Varga e0b6b44866 Revert "[build] Rework the buildver dep check."
This reverts commit a9f31e63db.

Revert this as it breaks make dist by having a source file depend on a generated file.
2014-12-08 15:18:06 -05:00
Marek Safar b304ec5e0e gmcs script is no longer installed.
The intention is to make build failures easy to spot instead of silently upgrading
target framework from 2 to 4 and then fail down the road on e.g type ambiguity
caused by new 4.0 framework types or methods
2014-12-08 19:59:07 +01:00
Sergey Odinokov 4a8e13a99b Add DateTimeOffsetConverter to the default converters list.
This is the fix for https://bugzilla.xamarin.com/show_bug.cgi?id=25158

Current implementation does not contain the DateTimeOffsetConverter
in the list of default converters. This cause NotSupportedException
to be thrown when trying to serialize/deserialize DateTimeOffset
values to/from strings.

In .NET Framework implementation this class is added to such a list.
2014-12-08 21:59:00 +03:00
Alex Rønne Petersen 41ee4e7cee Use git://... instead of git@... for submodules. 2014-12-08 19:40:15 +01:00
Marek Safar 067634117c [corlib] Update SafeHandle dispose pattern to match .net. Fixes #25132 2014-12-08 17:51:38 +01:00
Marek Habersack 142b512e9a Added reference-assemblies submodule to fix the build 2014-12-08 17:23:11 +01:00
Marek Safar 9546550237 Change 4.0 profile to metadata reference only profile 2014-12-08 16:46:54 +01:00
Marek Safar e00126f61e [corlib] Remove duplicate FirstChanceExceptionEventArgs 2014-12-08 16:46:53 +01:00
Atsushi Eno bcfec743d5 [mkbundle] fix execution for X.Android on Windows regarding dos2unix.
This fixes bug #25086 (Xamarin.Android). Details described there.

To fix the issue, we use #if XAMARIN_ANDROID to avoid that old cygwin-only
code path. (We are not sure if simply removing the old code still works,
so we don't remove that for now.)
2014-12-08 23:40:52 +08:00
Chris Hubbard 80b32bec27 [MWF] Use Ctrl+PageUp/PageDown for Tab Navigation
In the Windows implementation of the TabControl, Ctrl+PageUp
navigates to the previous tab and Ctrl+PageDown navigates to the
next tab (with both wrapping around).  This change implements this
feature in the Mono implementation.

Change-Id: Ib940bd08d5ba641f05ed91c0e789e356e68f72bb
2014-12-08 10:35:56 -05:00
Marek Safar 73699dc332 [system] Replace System.Collections.Generic from reference sources 2014-12-08 12:04:28 +01:00
Marek Safar f22e4d8986 [system] Add test for #25137 2014-12-08 12:04:28 +01:00
Marek Safar fb85eae8fc [system] Fix soctec test to not block indefinitely 2014-12-08 12:04:28 +01:00
Marek Safar a6e0aefa29 Merge pull request #1445 from meebey/registry_fix_unneeded_write_permission
[corlib] Fix needing write permission when reading registry values. Fixe...
2014-12-08 10:49:01 +01:00
Mirco Bauer 55e85a6da8 [corlib] Fix needing write permission when reading registry values. Fixes #25106
ToKey() ignores the setting parameter when calling RegistryKey.OpenSubKey() and
thus always asks for write permission. If you try to read read-only keys (say
HKLM without admin rights) it will fail with a  SecurityException.
2014-12-08 10:39:20 +01:00
Zoltan Varga 2a8f86f223 [amd64] Fix the passing of nested structures in registers which cross an 8 byte boundary in pinvoke. Fixes #25095. 2014-12-06 06:18:02 -05:00
Alexis Christoforides e010856ace [canaries] Removed accidental hardcode 2014-12-05 15:53:55 -05:00
Alexis Christoforides fdf9cf74a6 [runtime] Replace offsetof with G_STRUCT_OFFSET on commit's @b0cff959e47c3d9955e6675364bf71404cd74bac changes 2014-12-05 15:48:21 -05:00
Alexis Christoforides b5ed5a3631 [System.IO.KeventWatcher] More fixes and MS behavior matching for the new implementation.
* Fixed the FileSystemEventArgs.Name property for all events
* Fixed regression of bug #5747 (and related path normalizing issues) https://bugzilla.xamarin.com/show_bug.cgi?id=5747
* Improved error handling, set hard limit on file descriptors to 200 for now to help isolate issues
* Fixed issues with rapid event Changed+Renamed firing
2014-12-05 15:09:59 -05:00
Mark Probst 2f8e36d300 [sgen] Remove debugging comment. 2014-12-05 11:55:20 -08:00
Mark Probst 6c60288739 [sgen] Fix pinning in the presence of canaries. 2014-12-05 11:11:02 -08:00
Zoltan Varga 2b19bdc99c Merge pull request #980 from StephenMcConnel/bug-18638
Fix bugs in sizing TableLayoutPanel (Xamarin bug 18638)
2014-12-05 14:09:00 -05:00
Zoltan Varga c49994e904 Merge pull request #1442 from ermshiperete/TextOverlapsImage
[MWF] Fix problem when button text overlaps image
2014-12-05 14:07:39 -05:00
Zoltan Varga a1ab4919b0 Merge pull request #1322 from StephenMcConnel/bug23532
Remove excessive shortcut key matching in ToolStrip
2014-12-05 14:07:20 -05:00
Zoltan Varga fd556a44fe Merge pull request #1323 from StephenMcConnel/bug-23591
Fix potential crash in ListView.ItemControl.ItemsMouseDown
2014-12-05 14:06:36 -05:00
Jonathan Pryor 8be960fc36 [mscorlib/Android] TimeZoneInfo.Local.Id should NOT be "Local".
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=24742
Context: Commit f7fd52ad
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=24958

The logic of Commit f7fd52ad was 'Desktop Mono returns "Local" from
TimeZoneInfo.Local.Id, so surely Xamarin.Android should', predicated
in part on the assumption that whatever Desktop Mono does should be
the same as what Desktop .NET does.

This assumption wasn't verified, and is in fact wrong; Desktop .NET
doesn't return "Local" from TimeZoneInfo.Local.Id, it returns an
actual identifier.

The reason why Desktop Mono returns "Local" is due to implementation
sanity, particularly on OS X: /etc/localtime may be a symlink OR a
copy of the timezone data, and when it's a copy there's no way to
determine the Olson ID for the timezone. Consequently, it may not be
possible to determine the TimeZone ID.

Xamarin.Android doesn't have that problem; it uses the Android
persist.sys.timezone system property value,
falling back to java.util.TimeZone.getDefault().getID() if necessary,
and thus always has access to an Olson ID.

Change TimeZoneInfo.Local.Id on Xamarin.Android to return the Olson ID
instead of "Local", partially reverting Commit f7fd52ad.
2014-12-05 13:36:04 -05:00
Marek Safar 1e1f1fc5b9 Update profiler tests environment 2014-12-05 18:51:28 +01:00
Marcos Henrich 2b668c2e50 Bump referencesource 2014-12-05 17:12:28 +00:00
Marek Safar 21bd41b1d6 [mcs] Fix null operator on arrays with property receiver. 2014-12-05 17:57:36 +01:00
Marek Safar 385bda0cad Merge pull request #1443 from esdrubal/userinfoescape
[System] Fixed UriParseComponents.ParseUser.
2014-12-05 17:41:05 +01:00
Eberhard Beilharz 3ae08e65b8 [MWF] Fix problem when button text overlaps image
When we draw a button with ImageAboveText.ImageAboveText and the
text is too big to fit below the image we have to draw the text over
the image. This should happen from the bottom, not from the top as
the previous implementation did. With the previous code we ended up
having the text at the top of the button under certain conditions.
2014-12-05 17:35:35 +01:00
Marcos Henrich b97f24c4ad [System] Fixed UriParseComponents.ParseUser. Fixes #25087.
UriParseComponents.ParseUser was unescaping all escaped chars and when a non valid user info char was encountered it was assuming that those chars were not part of the user info. The chars were not consumed thus the problems while parsing the rest of the input.
UriParseComponents.ParseUser now keeps non valid user info chars escaped.
2014-12-05 16:13:57 +00:00
Marcos Henrich f7ead304f6 [System] Test Uri constructor with escaped user info chars. 2014-12-05 16:11:32 +00:00
Marek Safar 2c6eb4f9b7 [mcs] Add dictionary initializer for arrays. 2014-12-05 16:51:25 +01:00
Marek Safar 79c0d7bcd3 Update runtime tests environment 2014-12-05 16:39:44 +01:00
Marek Safar 9df8a9e4f7 Fix resgen 4.0 profile path 2014-12-05 15:03:04 +01:00
Zoltan Varga ad5e7e102a Fix the DISABLE_REMOTING build. 2014-12-05 08:51:27 -05:00
Marek Safar b993596e59 Restore 4.0 profile as metadata only profile 2014-12-05 12:01:50 +01:00
Marek Safar 0c99796db6 [corlib] Add missing API 2014-12-05 12:01:50 +01:00
Atsushi Eno 991658d40d revive nunit-console which referenced lib/mono/2.0.
Actually the entire REWRITE2_* should be killed.
2014-12-05 14:55:33 +08:00
Mark Probst 8d2613ef44 Fix a C compiler warning. 2014-12-04 14:35:27 -08:00
Alex Rønne Petersen a46e3a51ba No longer include Volatile.cs in Mvc3 since the 4.0 profile is gone now. 2014-12-04 19:53:33 +01:00
Marek Safar db94f6284f Add System.Data.Entity assembly 2014-12-04 18:59:42 +01:00
Marek Safar 9f86d82be8 Bump referencesource 2014-12-04 18:54:41 +01:00
Marek Safar 2fa7448bf6 [corlib] Add missing API to AppDomainSetup 2014-12-04 18:49:45 +01:00
Marcos Henrich 049533031d Bump referencesource submodule. 2014-12-04 17:40:13 +00:00
Marek Safar b71ef88f44 Merge pull request #1441 from akoeplinger/fix-incorrect-test
[System.Web.DynamicData] Fixed test to verify the right behavior
2014-12-04 17:46:07 +01:00
Marek Safar 7fb7c91aaa Fix xbuild profile dependencies 2014-12-04 16:25:17 +01:00
Marek Safar 29b89dbfc9 Remove old (now unused) 2.0 sources 2014-12-04 15:25:41 +01:00
Marek Safar a1aced8ab2 Remove 4.0 profile 2014-12-04 15:16:31 +01:00
Marek Safar 336755ca9e [mcs] Validate more nameof argument expressions 2014-12-04 14:18:18 +01:00
Alexander Köplinger e6a473c659 [System.Web.DynamicData] Fixed test to verify the right behavior
The exception that is thrown is now consistent with MS.NET due to the imported System.ComponentModel.DataAnnotations code.
2014-12-04 02:35:39 +01:00
Marek Safar b50017eba3 [mcs] Improve extension methods error reporting 2014-12-03 22:02:22 +01:00
Marek Safar 93dfcdb60a [mcs] At least one of nameof methodgroup argument candidates needs to be accessible 2014-12-03 22:02:22 +01:00
Marek Safar 0f7d153c0b [mcs] Add support for __refvalue passed as a reference 2014-12-03 22:02:21 +01:00
Joao Matos de77d24361 [driver] Fixed outdated URL in help message. 2014-12-03 20:57:35 +00:00
Joao Matos d509226413 [msvc] Fixed heap problems at runtime when calling free().
Due to an incompatibility in the project files and DLL API setup code, we were importing locally defined symbols as DLL. This manifested as a debug heap dialog in VS caused by allocating and freeing memory between two Windows modules (which have their own memory heap).

Fix this by simplifying the DLL defines in MSVC, we are relying on .def files to manually specify the exports anyway.
2014-12-03 20:56:52 +00:00
Joao Matos 60361f26eb [msvc] Updated project files. 2014-12-03 20:07:23 +00:00
Joao Matos 23467f62c2 [msvc] Fixed empty struct declaration (it's not valid C according to MSVC). 2014-12-03 20:06:59 +00:00
Joao Matos b69666d434 Removed some dead code. 2014-12-03 20:05:40 +00:00
Joao Matos 562e497f8b [msvc] Fixed missing semi-colon. 2014-12-03 20:04:39 +00:00
Marcos Henrich 3a613dfd42 [runtime] Added missing else branch setting il_offset to -1. 2014-12-03 18:45:00 +00:00
Alex Rønne Petersen bc876c2427 [bcl] Remove all uses of Thread.Volatile{Read,Write}.
These methods are broken, misleading, and generally harmful. Always prefer the
`Volatile` class over these to make intent clear and to get sensible semantics.

http://blog.alexrp.com/2014/03/30/dot-net-atomics-and-memory-model-semantics/
2014-12-03 19:19:51 +01:00
Alex Rønne Petersen aec3ef0e8e Fix a bunch of warnings in the runtime code. 2014-12-03 19:13:58 +01:00
Zoltan Varga fa9c1f016c Fix make dist if boehm is disabled. 2014-12-03 17:33:11 +01:00
Jonathan Pryor 77e11f7fa9 [mscorlib/Android] Support TimeZoneInfo.FindSystemTimeZoneById("Local")
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=24741

Xamarin.Android didn't previously support
TimeZoneInfo.FindSystemTimeZoneById("Local") because of oversight (and
overly nested #if conditionals).

Compare `id` against "Local" *before* doing platform-specific
codepaths so that finding the "Local" TimeZone works as expected on
Xamarin.Android, and merge the `#if MONODROID` with the existing code.
2014-12-03 11:25:29 -05:00
Marcos Henrich 5c02f3efab [System.Core] Removed no longer used files.
System.Core is now using .NET implementations of LockRecursionPolicy and ReaderWriterLockSlim.
2014-12-03 13:24:22 +00:00
Marcos Henrich 4e735b6e30 [System.Core] Bring .NET implementation of ReaderWriterLockSlim. 2014-12-03 13:24:21 +00:00
Jo Shields 6856ccab7c Merge pull request #1410 from alesliehughes/master
Improved support for TimeZoneInfo under windows.
2014-12-03 12:20:13 +00:00
Zoltan Varga 90977ef96c Merge pull request #1437 from jonorossi/io_compression_fs_fix
Fixed ZipFile.CreateFromDirectory overload to use compressionLevel
2014-12-03 07:40:21 +01:00
Zoltan Varga e6b3e75226 Merge pull request #1438 from jonorossi/patch-1
Fixed incorrect markdown syntax for two links
2014-12-03 07:39:41 +01:00
Jonathon Rossi 184324e9cb Fixed incorrect markdown syntax for two links 2014-12-03 16:27:04 +10:00
Jonathon Rossi 7cabb3706b Fixed System.IO.Compression.FileSystem.ZipFile.CreateFromDirectory overload to use compressionLevel. 2014-12-03 16:13:06 +10:00
Mark Probst 8dde6e2c81 [sgen] Remove SGEN_HAVE_CONCURRENT_MARK.
We always have concurrent mark.
2014-12-02 15:16:14 -08:00
Marek Safar 080b48683c [xbuild] Update another default tools setting 2014-12-02 23:29:15 +01:00
Marek Safar dfebf124e5 Change bootstrap profile to target 4.0 framework. Bump system mono requirement to version 3.2 at least 2014-12-02 22:37:43 +01:00
Mark Probst f766a777e6 [counters] ulongs can be time, too. 2014-12-02 12:39:54 -08:00
Neale Ferguson 0526e429aa Minor reformatting 2014-12-02 13:59:03 -05:00
Zoltan Varga bc7badab34 Merge pull request #1434 from akoeplinger/fix-filehandle-leak
[counters] Fix file handle leak in cpu_load ()
2014-12-02 18:06:41 +01:00
Rodrigo Kumpera 3954590386 Merge pull request #1317 from nealef/master
Enable build on RHEL and CentOS
2014-12-02 10:16:06 -05:00
Marek Safar d9d6806867 [mcs] nameof implementation rewrite to match the latest spec 2014-12-02 16:01:59 +01:00
João Matos 320b2264cd Merge pull request #1435 from akoeplinger/fix-s390-build
Fix build on s390
2014-12-02 09:28:04 -05:00
Alex Rønne Petersen c9e3a47dd7 Merge pull request #1400 from RiJo/patch-1
Let ListViewItem implement interface IDataItemContainer
2014-12-02 05:55:21 +01:00
Alexander Köplinger e6bd66abf6 Fix build on s390 2014-12-02 05:49:59 +01:00
Alexander Köplinger b2b0d6c00f [counters] Fix file handle leak in cpu_load ()
If a premature return is taken, the FILE pointer f is not fclose()-ed.

Report and fix provided by Markus Beth on the mailing list: http://lists.ximian.com/pipermail/mono-devel-list/2014-December/042459.html
2014-12-02 05:41:00 +01:00
Mark Probst d09264fa13 [sgen] Fix 32 bits.
We didn't allocate proxy vtables aligned to 8 bytes.
2014-12-01 18:03:08 -08:00
Mark Probst 31fba69618 [sgen] Fix a bug when waking up workers. 2014-12-01 15:32:49 -08:00
Etienne CHAMPETIER a4134641d8 [cleanup] WebConfigurationManager: remove hasConfigErrors
it's not used since 2009 (6a261e04ad)

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-12-01 23:57:19 +01:00
Etienne CHAMPETIER 227b0d1b55 [cleanup] System.Web*: remove TARGET_J2EE
done using unifdef
git grep -l TARGET_J2EE | grep -v ChangeLog | xargs -n1 unifdef -m -UTARGET_J2EE

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-12-01 23:57:18 +01:00
RiJo 56178e6215 ListViewItem class now implements interface IDataItemContainer 2014-12-01 15:07:23 +01:00
Zoltan Varga ded052883b Fix a layout problem in the mono man page. 2014-12-01 10:45:19 +01:00
Zoltan Varga 92388f7d09 [runtime] Add support for jagged array ctors which create an array of arrays. Fixes #17944. 2014-12-01 10:26:51 +01:00
Zoltan Varga 33861cf32b Merge pull request #1412 from esdrubal/stackframe
Release sequence points and Symbolicate tool
2014-11-30 15:11:03 +01:00
Zoltan Varga c1d6e85d4a [runtime] Call mono_gc_base_init () in sdb, since it is no longer called by the code in mono-debug.c. 2014-11-30 15:02:46 +01:00
Zoltan Varga 7c009e0ece Fix the build. 2014-11-30 11:32:09 +01:00
Zoltan Varga 743ef03fd9 [runtime] Use SIGWINCH as the android debugger signal (), SIGUSR2 doesn't seem to work on emulators. 2014-11-30 03:13:03 +01:00
Zoltan Varga 173eaf1dfa Merge remote-tracking branch 'mfoliveira/ppc64el-v2'
This is a merge of:

https://github.com/mono/mono/pull/1409
2014-11-30 02:48:38 +01:00
Zoltan Varga 79bbcb6c04 [runtime] Remove some unused metadata includes from utils/. 2014-11-30 02:34:13 +01:00
Marek Safar f8a517624d Fixes build 2014-11-28 21:34:15 +01:00
Marek Safar e24b4f1d34 [mcs] new test 2014-11-28 20:23:40 +01:00
Marek Safar c1118b521e [mcs] Less cascading errors 2014-11-28 18:22:40 +01:00
Marek Safar 7e39c6e604 [mcs] Extend tie-breaking rules in overload resolution when default parameters are unused 2014-11-28 18:22:39 +01:00
João Matos 59c664f04e [build] Added support for ARM64 Android cross-compilation. 2014-11-28 17:07:05 +00:00
Alex Rønne Petersen e666a5ee28 Merge pull request #1401 from fquiroz01/patch-1
Add IE9 and newer to Up level navigator
2014-11-28 18:05:35 +01:00
Zoltan Varga 760db842cc [runtime] Fix a copyright date. 2014-11-28 17:43:19 +01:00
Marek Safar 4316b458e3 [mcs] Check delegate return type conversion during implicit delegate conversion 2014-11-28 15:23:09 +01:00
Marek Safar 69de3c2bd4 [mcs] Tweak naming of nested types. Fixes #24172 2014-11-28 13:24:36 +01:00
Zoltan Varga fff6d6d6f4 [runtime] Add a remoting.h file and move the remoting related marshal function declarations there. Add a low level lock used by the remoting.c file and an initialization function. 2014-11-28 06:23:48 +01:00
Zoltan Varga 9c658f2031 [runtime] Fix the build. 2014-11-28 06:15:05 +01:00
Zoltan Varga e211e33c1e [runtime] Fix the DISABLE_REMOTING build. 2014-11-28 05:55:18 +01:00
Zoltan Varga 3769cef763 [runtime] Extract the remoting code from marshal.c into a separate remoting.c file. 2014-11-28 05:50:39 +01:00
Zoltan Varga 7ac6b6b937 [runtime] Remove more unused debug code. 2014-11-28 03:40:42 +01:00
Zoltan Varga 69ba0b04fd [runtime] Simplify mono-debug.c since we no longer have to serialize a lot of the data. 2014-11-28 03:36:56 +01:00
Zoltan Varga 62e4fbe3ca [runtime] Remove an obsolete comment. 2014-11-28 01:10:03 +01:00
Zoltan Varga c476529db3 [runtime] Change the default runtime version to 4.5. 2014-11-28 01:07:15 +01:00
Alex Rønne Petersen d4ce72973d Merge pull request #1431 from esdrubal/enummap
Fixed how EnumMap serializes flag values.
2014-11-28 00:30:44 +01:00
Zoltan Varga 1e662349d1 Make the various '2' (al2/resgen2 etc.) scripts target net 4.5. 2014-11-28 00:26:28 +01:00
Zoltan Varga e037864832 Fix the build. 2014-11-28 00:11:27 +01:00
Marcos Henrich 37dabfc9f1 Fixed how EnumMap serializes flag values. Fixes #21072.
While serializing an enum value, EnumMap no longer considers partial matching flags when there is a flag that matches exactly.
2014-11-27 16:51:39 +00:00
Marcos Henrich 0eaf2a4ea1 Test DataContractSerializer with flags enum. Covers #21072.
When serializing an enum value, matching flags should not be consider when there is a flag that matches exactly.
2014-11-27 16:51:22 +00:00
Zoltan Varga 5314425331 Make gmcs/dmcs the same as mcs. 2014-11-27 17:42:10 +01:00
Marek Safar c7d8c2bb96 [mcs] Update import of private struct fields for flow analysis. 2014-11-27 17:36:44 +01:00
Marek Safar 0602561a31 Merge pull request #1432 from akoeplinger/parallel-fix
[corlib] Fix Parallel.ForEach overload that hardcoded -1 for the item index
2014-11-27 16:12:11 +01:00
Alexander Köplinger f5c32ef7bd [corlib] Fix Parallel.ForEach overload that hardcoded -1 for the item index
Xamarin bug #24891
2014-11-27 16:08:18 +01:00
Jo Shields 3080be5f20 Fix EXTRA_DIST of file in deleted regex folder 2014-11-27 11:22:03 +00:00
Alexander Köplinger fb7332bec1 [MWF] Fix bug in DataGridViewRowCollection Clear() introduced by recent commit
7d1b878fbf altered the behavior of removing rows, breaking
the DataGridViewRowCollectionTest.ClearRows () test

Before the change, this is what happened when the list was cleared
(the number in brackets is the value of the Index property of the DataGridViewRow):

[0]  Remove   [1]  ReIndex  [0] Remove  [1] ReIndex  [0]
[1] --------> [2] --------> [1] ------> [2] -------> [1]  ...
[2]           [3]           [2]
[3]

After the offending commit, ReIndex is only called after the list is cleared, which means
the Index property of the rows is never updated (as there are no items in the list).

The fix is to explicitly set the Index of each row to 0.
This was the end result before the commit anyway, so we can omit the ReIndex call entirely.
2014-11-27 12:11:20 +01:00
Marek Safar b044fa0f26 [system.net.http] Update range checks for invalid characters. Fixes #18800 2014-11-27 11:58:49 +01:00
Jo Shields a42ca4aeb2 Fix "make dist" error caused by renamed sgen-marksweep-drain-gray-stack.h 2014-11-27 09:20:39 +00:00
Alexander Köplinger 8473459f32 Fix build (SHARED_EXT was renamed to MONO_SOLIB_EXT in 4342bce441) 2014-11-27 03:26:11 +01:00
Marek Safar 21ac07aa0a [system.net.http] Escape more RFC5987 characters. Fixes #24785 2014-11-27 09:07:46 +01:00
Miguel de Icaza bb1d917b88 Merge pull request #1430 from akoeplinger/readme
Improve README.md and focus on relevant content
2014-11-26 22:17:23 -05:00
Alex Rønne Petersen e4aa060bea Merge pull request #1319 from directhex/systemwide-per-arch-aot-cache
Add a third AOT location, alongside ~/.mono/aot-cache and the assembly dir
2014-11-27 01:28:49 +01:00
Alexander Köplinger f6d6af35d7 Improve README.md and focus on relevant content
Before, the first thing the user saw were instructions for niche platforms like Itanium or Solaris.
Instead, we now just link to the "Compiling Mono" guides for OSX, Linux and Windows on the Mono website.

Additionally, a bunch of instructions were outdated / no longer relevant, updated those.

The "Configuration options" section was moved to the bottom of the readme, it was pretty long and pushed
the other sections into oblivion.
2014-11-27 01:16:14 +01:00
Alex Rønne Petersen d7e3600338 Merge pull request #1407 from chrisvire/bug-24587
[MWF] Fix focus issue when removing last item in ListView
2014-11-27 00:43:18 +01:00
Alex Rønne Petersen affa77b2fd Merge pull request #1424 from akoeplinger/remove-enable-nunit-tests
Remove --enable-nunit-tests option from build system
2014-11-27 00:41:29 +01:00
Marek Safar f40e35aed1 [mcs] Remove declaration expression named argument parsing (not part of the language yet). Fixes #24784 2014-11-26 22:59:07 +01:00
Mark Probst 805d6a8775 [sgen] Fix concurrent M&S. 2014-11-26 13:53:08 -08:00
Sebastien Pouliot 6744637030 Bump referencesource to fix mobile profile compilation of System.ComponentModel.DataAnnotations 2014-11-26 16:26:35 -05:00
Sebastien Pouliot f14dd6af87 Fix mobile build wrt System.Core changes 2014-11-26 16:00:57 -05:00
Miguel de Icaza efbcabe64d [System] Make it build with the MonoTouch profile 2014-11-26 14:43:25 -05:00
Miguel de Icaza f1ffa95460 Drop dead notes/code 2014-11-26 14:30:57 -05:00
Marek Safar d05e3e7a86 Fixes build 2014-11-26 19:54:35 +01:00
Mark Probst 890975f608 [sgen] Use all 3 lower vtable bits on 32 bits.
We can't actually use the trick of setting both the pinned and forwarded
bits to indicate cemented objects because the Tarjan bridge requires those
two bits never be set at the same time.
2014-11-26 10:38:50 -08:00
Mark Probst 4911c0b3c8 [sgen] Align vtable pointers to 8 bytes on 32 bits, too. 2014-11-26 10:38:50 -08:00
Mark Probst 51b8187b7a [sgen] Mempool allocations should be 8 byte aligned. Fix this on 32 bits.
The `MonoMemPool` struct is not a multiple of 8 bytes large, so we need
to align up to get the actual start of the pool data.
2014-11-26 10:38:50 -08:00
Mark Probst c6505f7830 [sgen] Remove unused defines. 2014-11-26 10:38:50 -08:00
Mark Probst fc0780b026 [sgen] Document descriptor types in comment. 2014-11-26 10:38:49 -08:00
Mark Probst 0087b319dd [sgen] Symbolic constants for pointer-free descriptor types. 2014-11-26 10:38:49 -08:00
Mark Probst c6c6095bcf [sgen] Separate descriptor type enums. 2014-11-26 10:38:49 -08:00
Mark Probst c4a119c05e [sgen] Use a symbolic constant for the descriptor type mask. 2014-11-26 10:38:49 -08:00
Mark Probst dba00f7fc9 [sgen] Rename LARGE_BITMAP to BITMAP.
There's only one bitmap descriptor type left and no need to
distinguish between large and small.
2014-11-26 10:38:49 -08:00
Mark Probst a81428f4c9 [sgen] Use guint64 for most counters, not long long. 2014-11-26 10:38:48 -08:00
Mark Probst 78a99907c0 [sgen] Fix cementing tag bit on 32 bits.
We used the third-lowest vtable bit to tag cemented objects.  On 32 bits,
vtables are only 4-byte aligned so we have to make do with 2 bits.
2014-11-26 10:38:48 -08:00
Mark Probst 6b7bd8250c [sgen] Remove DESCRIPTOR_FAST_PATH option - don't use it.
We're removing options that we've introduced for experimentation but that
didn't pan out.
2014-11-26 10:38:48 -08:00
Mark Probst 34bb779707 [sgen] Remove MARK_ON_ENQUEUE option - always use it now.
We're removing options that we've introduced for experimentation but that
didn't pan out.
2014-11-26 10:38:48 -08:00
Mark Probst 1729d16031 [sgen] Remove GRAY_QUEUE_HAVE_DESCRIPTORS option - always use it now.
We're removing options that we've introduced for experimentation but that
didn't pan out.
2014-11-26 10:38:47 -08:00
Mark Probst 4433d45d22 [sgen] Remove USE_PREFETCH_QUEUE option - don't use it.
We're removing options that we've introduced for experimentation but that
didn't pan out.
2014-11-26 10:38:47 -08:00
Mark Probst 6c7c1b8dda [sgen] Remove BLOCK_INFO_IN_HEADER option - always use it now.
We're removing options that we've introduced for experimentation but that
didn't pan out.
2014-11-26 10:38:47 -08:00
Mark Probst eee52c4f71 [sgen] Use a smaller slot size scaling factor.
The factor we used previously gave us object sizes in increments that made
some benchmarks use quite a lot more memory than necessary.  In particular,
we didn't have a size for 24 byte objects (on 64 bits), just for 16 and 32.
2014-11-26 10:38:47 -08:00
Mark Probst 5eadfaf8bb [sgen] Make block size fastenable. 2014-11-26 10:38:47 -08:00
Mark Probst 6f4e74bf77 [sgen] Fix card scanning with larger block sizes.
The card scanning code assumed that the size of the block header is less
than the size of a card.  If we put the block info into the header and increase
the block size enough, that assumption isn't true anymore, because the
mark bits take up space in proportion to the block size.
2014-11-26 10:38:46 -08:00
Mark Probst 77d2d231f0 [sgen] Experimental pre-fetch scan fast-path.
The idea here is to first extract all the references within an object
and then to process them, pre-fetching the objects they point to a few
steps ahead.
2014-11-26 10:38:46 -08:00
Mark Probst 06d43c4a91 [sgen] Fix build for mark-on-dequeue. 2014-11-26 10:38:46 -08:00
Mark Probst a3e7d28caa [sgen] Nicer visualization of concurrent collector pauses in gcpausevis.py. 2014-11-26 10:38:46 -08:00
Mark Probst 4318dac63c [sgen] Separate binary protocol entries for concurrent update and finish. 2014-11-26 10:38:46 -08:00
Mark Probst edeb654914 [sgen] Flush binary protocol buffers after unloading a domain.
When the runtime shuts down the last thing the GC usually hears about it
is that the root domain is unloaded.  If we don't flush the binary protocol
buffers at that point, we lose entries.
2014-11-26 10:38:45 -08:00
Mark Probst 21435d870f [sgen] Fix build on C99. 2014-11-26 10:38:45 -08:00
Mark Probst bc1b889fd5 [sgen] Fix build with heavy statistics. 2014-11-26 10:38:45 -08:00
Mark Probst f61314689f [sgen] Rename sgen-major-scan-object.h to sgen-marksweep-scan-object-concurrent.h. 2014-11-26 10:38:45 -08:00
Mark Probst fc6850fd1c [sgen] Remove some dead code in sgen-major-scan-object.h. 2014-11-26 10:38:44 -08:00
Mark Probst f469db655a [sgen] Unify scanning code a bit.
We still have two separate implementations of the scanning code: The optimized
one and the old one.  The old one is still needed because it supports the concurrent
collector.  For the non-concurrent collector we can now use the optimized
implementation, however.
2014-11-26 10:38:44 -08:00
Mark Probst 32bb23041f [sgen] Add/fix some assertions. 2014-11-26 10:38:44 -08:00
Mark Probst 0bbb8c9c6f [sgen] Add some missing binary protocol invocations. 2014-11-26 10:38:44 -08:00
Mark Probst 66311912de [sgen] New protocol entry for processing of individual reference. 2014-11-26 10:38:44 -08:00
Mark Probst 60b927f6df [sgen] In binary protocol grep, gray en-/dequeue must not always match. 2014-11-26 10:38:43 -08:00
Mark Probst d4945212c5 [sgen] Remove binary protocol entry for null dequeue. 2014-11-26 10:38:43 -08:00
Mark Probst 371372c137 [sgen] Fix build on highest debug level. 2014-11-26 10:38:43 -08:00
Mark Probst 11c326fc27 [sgen] Handle copy object failure.
This is just a verbatim copy of the old code.  It's unlikely it's ever
been tested, though.
2014-11-26 10:38:43 -08:00
Mark Probst ef8b82c738 [sgen] Increase debug level of assertions in inner loops. 2014-11-26 10:38:43 -08:00
Mark Probst 5d94bc96e5 [sgen] Remove dead code.
This was still left from the parallel collector.
2014-11-26 10:38:42 -08:00
Mark Probst eddce3e79f [sgen] Fix build with prefetch queue enabled. 2014-11-26 10:38:42 -08:00
Mark Probst f0149f2a73 [sgen] Make new M&S parameters fastenable.
Fasten is a small tool for optimizing compile-time options:

    https://github.com/evincarofautumn/fasten

It does that by parsing source files for numbers that have been marked
as "fastenable", and fiddling around with them.  We do this for all
the new optimizations.
2014-11-26 10:38:42 -08:00
Mark Probst 9664e14771 [sgen] Support evacuation in the optimized mark/scan loop.
We actually implement two separate mark/scan loops: One that doesn't
support evacuation and one that does.  We dynamically choose which one
to use.  The evacuation-less loop is faster, so we use it whenever we can.
2014-11-26 10:38:42 -08:00
Mark Probst 7c4a16d41d [sgen] Move drain_gray_stack() to copy/mark header file, too.
This inlines the scan/copy functions, so if we duplicate them we need
to duplicate this, too.
2014-11-26 10:38:42 -08:00
Mark Probst 3cd8c7ea50 [sgen] Remove old copy/mark function.
The new, optimized function can now do everything the old one did, so
let's get rid of it.
2014-11-26 10:38:41 -08:00
Mark Probst 0213613f58 [sgen] Move copy/mark function into separate header file.
So we can later include them twice, once with support for evacuation
and once without.
2014-11-26 10:38:41 -08:00
Mark Probst 5d209c8563 [sgen] Support evacuation again.
The performance impact of this is significant, so we will later make
two separate scan functions: one with evacuation and one without.
2014-11-26 10:38:41 -08:00
Mark Probst 28de59a2fc [sgen] Support split nursery again.
This might degrade performance, in which case we'll special-case it
later on.
2014-11-26 10:38:41 -08:00
Mark Probst 954aac5365 [sgen] Unify the two small object mark cases again.
The only difference between these two cases was that we used to
different heavy statistics counters.  We can do that within a single
case.
2014-11-26 10:38:40 -08:00
Mark Probst 3ddf2cc00c [sgen] Use MS_MARK_OBJECT_AND_ENQUEUE where we expanded it previously.
It's still the same code, so use the macro directly.
2014-11-26 10:38:40 -08:00
Mark Probst 2b826d3d50 [sgen] Always inline the optimized copy function.
This is a huge win for some benchmarks.
2014-11-26 10:38:40 -08:00
Mark Probst ecf0597302 [sgen] Never fall back to the old copy function. 2014-11-26 10:38:40 -08:00
Mark Probst c1c1ac59ce [sgen] Use scanning macro in optimized loop.
We expanded this macro previously, but it's still the same code, so
use the macro directly.
2014-11-26 10:38:40 -08:00
Mark Probst cf4a9878da [sgen] New SMALL_PTRFREE descriptor type for faster has_references checking.
We use 3 to denote SMALL_PTRFREE, and 7 for COMPLEX_PTRFREE, so we can
check for both simply with ((desc & 3) == 3).
2014-11-26 10:38:39 -08:00
Mark Probst 52537626d9 [sgen] Only enqueue objects with references. 2014-11-26 10:38:39 -08:00
Mark Probst 6cd4d4248a [sgen] Look at descriptor, not block, to see whether object has references. 2014-11-26 10:38:39 -08:00
Mark Probst 11d1a405d6 [sgen] Special descriptor encoding for strings.
The complex pointer-free type carries no additional information.  We use its
data to mark strings so we can determine object size quicker.
2014-11-26 10:38:39 -08:00
Mark Probst abeac5f741 [sgen] Faster generic large bitmap scanning if CTZ builtin is available. 2014-11-26 10:38:39 -08:00
Mark Probst 7a91fcd059 [sgen] Remove small bitmap descriptor type.
The reason for having a small bitmap was that we could encode the object
size in the descriptor.  The main attraction for having object size handy is that
we can quickly check whether an object is in the small object major heap or
in the LOS.  We solve this problem by always using complex descriptor types
for large objects, so now we can tell whether an object is small just by looking
at the descriptor type.
2014-11-26 10:38:38 -08:00
Mark Probst adb9dbc395 [sgen] Heavy statistics on copied object descriptors. 2014-11-26 10:38:38 -08:00
Mark Probst 23a9b55767 [sgen] Heavy statistic counter for scanning of no-ref objects. 2014-11-26 10:38:38 -08:00
Mark Probst 8c5c569bc2 [sgen] Use HANDLE_PTR in the fast-path, too.
We had just expanded the macro verbatim and never changed it, so
there's no point in not using it directly.
2014-11-26 10:38:38 -08:00
Mark Probst be12da27ef [sgen] Optional scanning without the small bitmap fast path.
To experiment with different optimization combinations.
2014-11-26 10:38:37 -08:00
Mark Probst 30afbb9164 [sgen] Fix heavy statistics in mark-scan loop. 2014-11-26 10:38:37 -08:00
Mark Probst 69458165e9 [sgen] Limit run-length descriptors to small object size, too.
To identify more small objects quicker.

Since we now use the runl-length descriptor types to indicate object
size as well, and strings can have any size, we can't use that type
for strings anymore, so we use the complex type which forces us to
look up its size to determine whether it's a small or large object.
2014-11-26 10:38:37 -08:00
Mark Probst c300c3de0c [sgen] Make mark on enqueue vs dequeue configurable.
So we can experiment with a variety of optimization configurations.
2014-11-26 10:38:37 -08:00
Mark Probst 5527def76c [sgen] Make block info in header optional.
So we can experiment with a variety of optimization configurations.
2014-11-26 10:38:37 -08:00
Mark Probst 512c9866ca [sgen] Tag cemented objects so we don't have to go through the hash.
We can do the cemented check faster by using the third vtable bit to
tag cemented objects (in addition to the pinned bit).  In workloads
that are heavy on cementing (like `lcscbench` or `perimeter`) this
significantly increases performance.
2014-11-26 10:38:36 -08:00
Mark Probst 23f12565d9 [sgen] Prefetch mark bits, not block start.
When prefetching, we calculate which mark bits we need and prefetch
those for writing.  The object itself we prefetch for reading.
2014-11-26 10:38:36 -08:00
Mark Probst 15f1597e89 [sgen] Put block info into blocks.
Another experiment: What if we put the whole block info into the block
itself, not just a pointer to it.  There's one less indirection we
need to do.  On the other hand, many of them will share the same cache
lines.  So do the pointers to the block infos, though.
2014-11-26 10:38:36 -08:00
Mark Probst 9883ecf2a0 [sgen] Bring mark-scan loop stats up to date. 2014-11-26 10:38:36 -08:00
Mark Probst 32d7a0a24c [sgen] Also prefetch the (potential) block header.
When we scan a small object in the major heap we have to read the
block header of its block.  It makes sense to prefetch that as well,
in addition to the object itself.
2014-11-26 10:38:36 -08:00
Mark Probst 44e806f6cb [sgen] Count scanned objects. 2014-11-26 10:38:35 -08:00
Mark Probst ab83e6316d [sgen] Mark on dequeue, not enqueue.
This is another experiment.

When marking on enqueue, what we need to do is look at the object
we're about to enqueue, to check whether it's a small or large object.
Then, when we dequeue to scan, we look at the object again, so we
essentially fetch each live object header twice.

With mark on dequeue, when we encounter a pointer we always enqueue
it, without even looking at the object.  Only when we dequeue do we
figure out whether it's marked yet, and thus whether we need to scan
it.
2014-11-26 10:38:35 -08:00
Mark Probst 91e7454c6c [sgen] Make enqueuing descriptors compile-time optional.
We want to test this in combination with other changes, so we make
each of them configurable.
2014-11-26 10:38:35 -08:00
Mark Probst 580f250a83 [sgen] Make prefetch queue compile-time optional.
We want to benchmark the prefetch queue in combination with other
changes, so we make each of them configurable.
2014-11-26 10:38:35 -08:00
Mark Probst ca8fe2c673 [sgen] Prefetch queue for optimized mark/scan loop.
We put a short FIFO between the gray stack and the actual scanning, to
be able to prefetch objects ahead of time, with an adjustable delay.
2014-11-26 10:38:34 -08:00
Mark Probst 6b8596eb32 [sgen] Optimized mark/scan loop for major collections.
The basic idea here is to make a loop that combines dequeuing from the
gray queue, scanning and marking/copying/enqueuing, with redundancies
removed and special-casing of the common case.

We make the small bitmap type descriptor only apply to small (as
opposed to LOS) objects so that we can quickly check in that case
whether an object is in the LOS or not without actually looking up its
size.

We disable evacuation and the split nursery because the code doesn't
support them yet.
2014-11-26 10:38:34 -08:00
Mark Probst a27ab44e35 [gc] Remove the new object count counter, because it's useless.
Without heavy statistics it counts almost no objects, and even with
heavy statistics turned on, it doesn't count everything.  SGen has an
accurate counter when heavy statistics are turned on.
2014-11-26 10:38:34 -08:00
Mark Probst 04adbae448 [sgen] Fix build with binary protocol. 2014-11-26 10:38:34 -08:00
Miguel de Icaza 055495c537 Merge pull request #1426 from ignacionr/webclient-delay-file-creation
Webclient delay file creation
2014-11-26 13:06:24 -05:00
Marek Safar 4d3f26e9f0 [corlib] Implement ExecutionContext flow for async infrastructure. Fixes #24757 2014-11-26 19:01:32 +01:00
Miguel de Icaza 4e9a0636c2 Merge pull request #1398 from jwestfall69/dgv-first_row_index
[MWF] DataGridView: ensure first_row_index will be valid after row removal
2014-11-26 13:02:16 -05:00
Miguel de Icaza 668fdf5e8a Merge pull request #1396 from jwestfall69/dgvrc-clear-speedup
[MWF] DataGridViewRowCollection Clear() speed up
2014-11-26 13:01:51 -05:00
Rodrigo Kumpera 92fbdbc591 Bump the version. 2014-11-26 11:20:45 -05:00
Marek Safar b0ef65e7ac Merge pull request #1429 from mono/fixProcessStartInfo2
Fix ProcessStartInfo null checking and replace with Length checks.
2014-11-26 13:43:20 +01:00
Ungureanu Marius d22bd32f04 Fix ProcessStartInfo null checking and replace with Length checks. 2014-11-26 14:18:12 +02:00
Jo Shields 9bdd77969a [msvc] duplicate 1d6b8a75fa for eglib 2014-11-26 11:42:31 +00:00
Marek Safar c092496335 Merge pull request #1428 from mono/fixProcessStartinfo
Update ProcessStartInfo to fix some inconsistency
2014-11-26 12:40:01 +01:00
Ungureanu Marius c9ff84dacb Shortcircuit ProcessStartInfo Verbs logic.
Let's not do IO operations except if needed.
2014-11-26 13:32:59 +02:00
Marius Ungureanu f494db3690 Update ProcessStartInfo to fix some inconsistency 2014-11-26 13:32:58 +02:00
Ungureanu Marius b1cae9a156 Introduce failing ProcessStartInfo tests. 2014-11-26 13:32:49 +02:00
Marcos Henrich d7efbfe509 ConsoleUi no longer breaks when the test runner returns null.
In case the test runner returns null we will no longer suffer a NullArgumentException and the collector exceptions will be printed.
The test runner was returning null because of an IOException "Too many open files" on NUnit side.
2014-11-26 10:12:01 +00:00
Zoltan Varga c181b54945 [jit] Resurrect the precise stack marking code. 2014-11-26 06:39:58 +01:00
Rodrigo Kumpera 27f20c510e [corlib] Improve a test failure to be more actionable. 2014-11-25 18:31:26 -05:00
Rolf Bjarne Kvinge 1163db5f07 [mono-api-html] Colorize html output.
* Add support for colorizing the HTML output. This can be turned off if desired.

* Some changes are now reported inline (using colors/underline/strikeout)
  instead of generating an removed/added pair. This makes the diff
  a lot easier to read.
2014-11-25 16:39:32 +01:00
Marek Safar 15cb0daaa0 [corlib] Replace few threading types from reference sources 2014-11-25 14:45:08 +01:00
Jo Shields 1d6b8a75fa [msvc] Allow cygwin "make" to be called after winsetup.bat
As-is, winsetup.bat replaces config.h with winconfig.h, which is needed for the MSVC compilation - but breaks all further use of cygwin's make (e.g. to build the class library, or run "make install").

This patch introduces a new cygconfig.h as a backup prior to squashing config.h (if it exists, so the runtime can still be built without cygwin ever being used), and makes winconfig.h use it on non-MSVC compilers (i.e. cygwin)
2014-11-25 12:49:26 +00:00
Jo Shields 9f6f6a9cce [msvc] Fix MONO_INTERNAL undefined in Boehm 2014-11-25 12:23:20 +00:00
Jo Shields dfc037f42a Fix "make dist" issue from MS.NET regex switchover 2014-11-25 10:14:20 +00:00
Marek Safar 5517c56afa [corlib] Add check for collection modification during ForEach. Fixes #24775 2014-11-25 10:33:34 +01:00
Rolf Bjarne Kvinge 1314cf9b87 Revert "[System] Ignore two tests which are failing due to external factors changing."
This reverts commit 597183658e.

According to the comments on the commit [1], this has already been fixed.

[1] https://github.com/mono/mono/commit/597183658e04260ba493495bcff2da28222b48b8
2014-11-25 09:38:06 +01:00
Rodrigo Kumpera 695a5278d6 Revert my last change to a submodule. ALL MY LOVE TO THOSE THAT INVENTED GIT SUBMODULES. <3 2014-11-24 17:10:21 -05:00
Rodrigo Kumpera 13db0d01c0 [System.Core] Make one test much less likely to fail. 2014-11-24 17:08:02 -05:00
Zoltan Varga 45213f7b25 [Microsoft.Build.Tasks] Fix a net 2.0 failure. 2014-11-24 16:40:08 -05:00
Marek Safar c7405e6ca0 [System.ComponentModel.DataAnnotations] Replace with .net implementation 2014-11-24 20:34:18 +01:00
Marek Safar 1007750608 Fixes build 2014-11-24 18:25:34 +01:00
irodriguez f1e329b299 [Fix] WebClient to delay downloaded file creation
Fixed unwanted spaces, changed for tabs.
2014-11-25 00:07:51 +07:00
irodriguez e234b3ce16 WebClient delay file creation until a response is obtained 2014-11-24 23:49:13 +07:00
Marcos Henrich 93b6e5fbee Update .csproj files to include .NET System.Text.RegularExpressions 2014-11-24 16:31:56 +00:00
Marek Safar 1e60e2868f Bring .NET implementation of concurrent collections 2014-11-24 17:25:56 +01:00
Marek Safar a21a2bbd57 [mcs] Add special-cased HostProtectionAttribute handling 2014-11-24 17:25:56 +01:00
Miguel de Icaza 1d563aceff Remove Mono's previous System.Text.RegularExpressions 2014-11-24 10:09:06 -05:00
Marek Safar 190df2239e Remove 2.0 profile csproj files 2014-11-24 12:15:55 +01:00
Marek Safar 02332b5ad2 [System.Core] Switch to common SR class 2014-11-24 12:15:55 +01:00
Marek Safar 76f6ead615 Simplify System.Data makefile 2014-11-24 12:15:54 +01:00
Jo Shields 37ae0c6550 Add SR.cs (for Reference Source regex implementation) to EXTRA_DIST 2014-11-24 10:59:40 +00:00
Jo Shields 996a3a73a4 Fix case error causing build failure on case-sensitive filesystems 2014-11-24 09:51:35 +00:00
Zoltan Varga 941865d7ff Remove net_2_0 reference from make dist. 2014-11-24 02:15:28 -05:00
Miguel de Icaza 9dda1417d8 [System] Bring tests for open bugs on RegularExpressions that have now been fixed 2014-11-23 23:16:39 -05:00
Miguel de Icaza 26fb3a8cab Add newline 2014-11-23 21:39:53 -05:00
Miguel de Icaza 74d0eeaf13 [System] Bring .NET implementation of System.Text.RegularExpressions
This patch brings .NET's implementation of the RegularExpressions
stack and brings some of the supporting infrastructure required to
build without resource files.

The build commands have been updated with two new defines to assist in
bringing .NET code: MONO (to indicate that the code is being compiled
as part of Mono) and a more granular DISABLE_CAS_USE that is used to
mark regions where Code Access Security is being used in the source
code, as Mono does not actually ship with a working CAS implementation.
2014-11-23 21:38:36 -05:00
Zoltan Varga 4342bce441 [jit] Move the SHARED_EXT define to mono-dl.h, rename it to MONO_SOLIB_EXT. 2014-11-23 21:17:49 -05:00
Zoltan Varga 5e7af8eda4 [runtime] Remove conditional logic from LL_SO_OPEN() macro. 2014-11-23 20:49:10 -05:00
Zoltan Varga 901f3c466a Fix the mcs-compileall test target. 2014-11-23 02:59:31 -05:00
Zoltan Varga afd52c893c Remove net 2.0 dependencies from mcs tests. 2014-11-23 02:59:31 -05:00
Zoltan Varga 937175849b Remove build system support for the net 2.0/3.5 profiles. 2014-11-23 02:59:31 -05:00
Zoltan Varga 2d1c6dd04b Revert "[android] Add a workaround for ndk r10c defining RTLD_DEFAULT as 0 on 64 bit platforms."
This reverts commit 5ee92ecb76.

Revert this. There was already some android specific code in LL_SO_OPEN ().
2014-11-23 02:32:13 -05:00
Alexander Köplinger 0ee2fc301c Remove --enable-nunit-tests option from build system
It isn't used anymore as the classlib tests are always enabled now during 'make check'.
2014-11-23 03:15:11 +01:00
Alexander Köplinger 5474ae596d Added missing newline to net_4_0_System.Core.dll.sources (fixes Linux build) 2014-11-22 15:43:20 +01:00
Marek Safar 05711a1b63 Build fix 2014-11-22 15:39:11 +01:00
Marek Safar bdd4bd1066 [system.core] Enable disabled test 2014-11-22 13:48:38 +01:00
Marek Safar 92a3aeada5 Fixes typo 2014-11-22 13:48:25 +01:00
Marek Safar 9425cb5055 [system.core] Replace PLINQ implementation with .net version 2014-11-22 13:36:41 +01:00
Zoltan Varga 033a7b4c4f [runtime] Add a wrapper around atexit () since it is missing on some android versions. 2014-11-22 00:08:04 -05:00
Zoltan Varga de7963ff5b [android] Avoid referencing SYS_fork which is not defined in some ndk versions. 2014-11-21 23:16:44 -05:00
Zoltan Varga 5ee92ecb76 [android] Add a workaround for ndk r10c defining RTLD_DEFAULT as 0 on 64 bit platforms. 2014-11-21 23:15:27 -05:00
Zoltan Varga 82f95843f4 [android] Disable the usage of tkill () on android/arm64, the tkill () function is no longer there. 2014-11-21 23:14:41 -05:00
Zoltan Varga b836476666 [runtime] Remove another getdtablesize () reference. 2014-11-21 20:39:49 -05:00
Zoltan Varga cd9f3b5859 [runtime] Remove a getdtablesize () reference from eglib too. 2014-11-21 20:31:36 -05:00
Zoltan Varga cb5c0f86f3 Merge pull request #1420 from directhex/define_ssize_max_on_windows
[msvc] Define SSIZE_MAX if not already defined (i.e. on Windows)
2014-11-21 19:00:29 -05:00
Zoltan Varga 6b29297dec [jit] Fix the AOT part of #24577, the epilog beginning was calculated using the code size, which can be different in AOT mode due to alignment padding between methods. 2014-11-21 18:45:26 -05:00
Rodrigo Kumpera c9c40ee704 Merge pull request #1423 from directhex/sgen_on_msvc
[msvc] Get sgen building on MSVC
2014-11-21 14:49:11 -05:00
Marek Safar 73bb10fff3 [mcs] Add string type to the list of valid cast tokens 2014-11-21 16:51:39 +01:00
Marek Safar a0bda09ee0 [mcs] Remove 2.0 profile dependency from one test 2014-11-21 15:20:40 +01:00
Marek Safar 63145e602a [system.net.http] Allow use of absolute url paths without scheme in HttpRequestMessage 2014-11-21 14:33:11 +01:00
Jo Shields d2b8c8557b [msvc] Add _SGen Configurations to {eglib,libgc,genmdesc}.vcxproj
These configurations are needed to build a Debug_SGen version of mono.vcxproj, which is needed to build mono-sgen.exe
2014-11-21 12:44:37 +00:00
Marek Safar d03bed3ad7 [system.net.http] set-up cancellation before any WebRequest method is called. Fixes #24704 2014-11-21 12:57:48 +01:00
Jo Shields ab61b5c7ad [msvc] Add missing sgen source files to libmonoruntime.vcxproj 2014-11-21 10:42:55 +00:00
Jo Shields 0279e7dc28 [msvc] Refreshed .def files (needed for SGen to build) 2014-11-21 10:40:39 +00:00
Marek Safar 35472d4f84 [xbuild] Change default tools profile to still work with not yet removed 2.0 profile 2014-11-21 10:31:24 +01:00
Marek Safar 91ea62331c [linq] optimize Take(0) 2014-11-21 10:27:07 +01:00
Marek Safar 3c9e0f1a43 [system.data] Fixes DbEnumerator current property to clone read data. Fixes #24452 2014-11-21 10:27:07 +01:00
Jo Shields cf4d77d21d [msvc] Define SSIZE_MAX if not already defined (i.e. on Windows)
limits.h from MSVC does not include SIZE_MAX or SSIZE_MAX. We need the latter to build sgen, so define it.
2014-11-21 09:00:31 +00:00
Rodrigo Kumpera 1230a4046e [profiler] Use the new hidden API to attach the helper thread as a tools thread. This makes JI lookup work more reliably. 2014-11-20 18:33:33 -05:00
Rodrigo Kumpera b511edee10 [jit] Don't sample threads that are not fully attached. 2014-11-20 18:32:53 -05:00
Rodrigo Kumpera a82848e48d [runtime] Introduce the notion of a tools thread.
A tools thread is one that can access core runtime structures but not touch anything managed (code or heap).

It's intended to enable the profiler to resolve missing backtraces from its helper thread.

THIS IS A HACK.

The right solution would be to not perform this on the profiler at all and simply log IPs and let the decoder
resolve them. But then there's reality and we can't simply break the current format without consequences.

We're taking this hack for now until we can fix the profiler to do something sensible.
2014-11-20 17:55:05 -05:00
Rodrigo Kumpera 1d6d5ed6bc [utils] Add foreach variant that supports filtering the list as you go. 2014-11-20 17:44:26 -05:00
Mark Probst 23c99f6e4e Merge pull request #1421 from BrzVlad/fix-monitor-resurrection
Fix monitor-resurrection test.
2014-11-20 11:12:27 -08:00
Vlad Brezae 9137e16bab Fix monitor-resurrection test.
Try to avoid the pinning of the object that needs to be finalized.
2014-11-20 10:57:00 -08:00
Zoltan Varga d66079267a Merge pull request #1419 from directhex/bump_msvc_VERSION
[msvc] Bump winconfig.h VERSION to match configure.ac
2014-11-20 12:56:41 -05:00
Jo Shields 67da1215f3 [msvc] Bump winconfig.h VERSION to match configure.ac
Unhelpfully, winconfig.h is used for building eglib, and it includes a hardcoded VERSION definition which needs to match configure.ac - otherwise msvc builds identify themselves as 2.11
2014-11-20 17:11:43 +00:00
Rodrigo Kumpera afa981edc8 Merge pull request #1416 from jbevain/token-wrapper-data
[jit] Use the proper function to resolve classes
2014-11-20 12:10:23 -05:00
Marcos Henrich 253b24588b Changed ConcurrentBagTests.Bug24213 () to reuse variable array. 2014-11-20 16:18:57 +00:00
Marek Safar de75999a8a Merge pull request #1418 from esdrubal/concurrentbag
Fixed CyclicDeque array growth.
2014-11-20 15:43:21 +01:00
Marcos Henrich 3a7a058e55 Fixed CyclicDeque array growth. Fixes 24213.
Changed CyclicDeque.PushBottom to resize the array when its size is equal to its length.
2014-11-20 14:22:58 +00:00
Marcos Henrich cb5bc3ffab Test ConcurrentBag growth. Covers #24213. 2014-11-20 14:19:42 +00:00
Miguel de Icaza 50fa153b29 Merge pull request #1417 from directhex/fix_msvc_build
[msvc] Add a definition for _WIN32_WINNT to MonoPosixHelper
2014-11-20 08:13:57 -05:00
Jo Shields 076e80f725 [msvc] Add a definition for _WIN32_WINNT to MonoPosixHelper
MonoPosixHelper fails to build in my testing, due to config.h bailing the
build out if it doesn't think the build platform is XP SP2 or higher.
Adding this define forces that minimum Windows version, allowing mono.sln
to build fully.
2014-11-20 13:05:10 +00:00
Marcos Henrich 873d616b2a Added missing projects files to corlib-net_4_5.csproj 2014-11-20 12:12:49 +00:00
Jb Evain 6d5c7fedab Test sizeof, mkrefany & refanyvalue in dynamic methods
They previously resulted in TypeLoadExceptions.
2014-11-20 12:59:53 +01:00
Jb Evain 7cbf11566f [jit] Use the proper function to get classes
For the opcodes sizeof, mkrefany and refanyval the jit
was resolving the operand tokens directly from the image.

In dynamic scenarios where the tokens are stored in the
wrapper data, this triggered TypeLoadExceptions.

This patch uses mini_get_class, as used everywhere else,
to resolve the operand tokens of those opcodes.
2014-11-20 12:59:40 +01:00
Zoltan Varga 8647ae45fc Fix #24577 correctly, cfg->code_len is the size of the code, while cfg->code_size is the size of the memory area allocated for code. 2014-11-20 04:45:44 -05:00
Zoltan Varga 3130eb18ce Fix a warning. 2014-11-20 00:06:03 -05:00
Zoltan Varga 9d3d8a5c53 Fix a warning. 2014-11-20 00:05:36 -05:00
Mauricio Faria de Oliveira 26e016f3ad Revert "PowerPC64 ELFv2 ABI: cases for in-register parameter passing, return values, and structs"
This reverts commit ba62bdf862.

Reverting as per discussion with Zoltan Varga (see PR 1409 [1]).
Some rework needed.

[1] https://github.com/mono/mono/pull/1409

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-11-19 21:56:54 -05:00
Miguel de Icaza 716b78c578 Add referencesource submodule 2014-11-19 21:01:39 -05:00
Zoltan Varga 5644d157c8 Merge pull request #1411 from jbevain/sdb-frame-domain
[sdb] Expose the domain of the stack frames
2014-11-19 20:51:34 -05:00
Zoltan Varga 2c7265d6b9 [jit] Remove an unused interpeter file. 2014-11-19 19:20:02 -05:00
Zoltan Varga fb033c5301 [jit] Remove some unused defines. 2014-11-19 19:13:01 -05:00
Stephen McConnel c735753a3c Fix bugs in sizing TableLayoutPanel (Xamarin bug 18638)
Consider spans and absolute sizes in computing PreferredSize for
TableLayoutPanel.
Also fix bug in allocating unused width to SizeType.Absolute columns.

Change-Id: Ic5065b83ced8195d1c5be39087f33b0d632fc9a6
2014-11-19 14:53:12 -06:00
Mark Probst d1b51438d1 [sgen] Remove dead code. 2014-11-19 12:46:39 -08:00
Marcos Henrich 8cdb1c959e Added Symbolicate tool.
Symbolicate tool replaces stack frames "<filename unknown>:0" with correct file name and line.
2014-11-19 19:45:15 +00:00
Miguel de Icaza 014f882aea Merge pull request #1415 from ermshiperete/FixTruncatedButton
[MWF] Fix bug that truncates button text
2014-11-19 14:05:03 -05:00
Zoltan Varga b464556d05 Merge pull request #1414 from ExonyLimited/process-vmswap
Process.PagedMemorySize64 now returns value from /proc/PID/status
2014-11-19 13:58:25 -05:00
Eberhard Beilharz da058bf8a4 [MWF] Fix bug that truncates button text
A previous change (885b065e) accidentally calculated the text size
in some places without padding. This resulted in a slightly to small
text rectangle, causing the text to be truncated.
2014-11-19 19:48:27 +01:00
Marek Safar 87f59dce24 Fixes build 2014-11-19 18:07:52 +01:00
Marek Safar 4de9aa838b [corlib] Capture awaited task exception stack. First part of #18629 2014-11-19 17:41:52 +01:00
Craig Minihan 1cc51f63ee Process.PagedMemorySize64 now returns value from /proc/PID/status 2014-11-19 08:07:37 -08:00
Rolf Bjarne Kvinge fbf1077afd Fix typo, there is no profile called 'xammaci'. 2014-11-19 10:29:33 +01:00
Mark Probst 38d9679d82 Merge pull request #1413 from BrzVlad/bin-prot-io
System calls for binary protocol writing
2014-11-18 17:59:16 -08:00
Vlad Brezae 66acb4f3e1 [sgen] Don't use standard C API for binary protocol IO.
This prevents deadlocks from libc locks when interrupting.
2014-11-18 17:56:01 -08:00
Zoltan Varga fccff0d9bb [sdb] Avoid asserts on shutdown when the appdomain unload callbacks are called on the debugger thread during shutdown. Fixes #24342. 2014-11-18 20:54:12 -05:00
Vlad Brezae 3c1147121e [sgen] Fix binary protocol build 2014-11-18 17:36:50 -08:00
Zoltan Varga 672a02e177 [jit] Fix the calculation of the epilog size for EH info. Fixes #24577. 2014-11-18 16:53:26 -05:00
Rodrigo Kumpera 4f2e8dfddd [runtime] Replace mono_method_get_signature(_full) with the _checked variant. 2014-11-18 16:51:07 -05:00
Rodrigo Kumpera f8de60d964 [runtime] Introduce mono_method_get_signature_checked as the MonoError variant of mono_method_get_signature_full. 2014-11-18 16:51:06 -05:00
Rodrigo Kumpera d67dd77506 [runtime] Remove monodiet.c. 2014-11-18 16:51:06 -05:00
Zoltan Varga 9347782b8b [jit] Remove an assert from mono_arch_find_jit_info () on x86 which can be hit when a profiler stack walk is done while in a jump trampoline. 2014-11-18 16:03:51 -05:00
Rodrigo Kumpera 939fa90ceb [jit] Use _checked variant of mono_field_from_token. 2014-11-18 14:04:10 -05:00
Rodrigo Kumpera e94e5e5ac1 [runtime] Use _checked variant of mono_field_from_token. 2014-11-18 14:04:10 -05:00
Rodrigo Kumpera 01f892bdb5 [jit] Use MonoError when possible for error handling. 2014-11-18 14:04:09 -05:00
Rodrigo Kumpera d1c8e68397 [jit] Add a JIT failure mode that uses MonoError. 2014-11-18 14:04:09 -05:00
Rodrigo Kumpera c544d330dd [runtime] more loader error cleanup. 2014-11-18 14:04:09 -05:00
Marcos Henrich b717961fb6 Added opcode il_seq_point.
il_seq_point has zero length and is used in release instead of the expensive seq_point opcode.
2014-11-18 18:04:26 +00:00
Marcos Henrich 3f259a1f95 Changed METHOD_EXIT_IL_OFFSET back to 0xffffff. The previous value was -2, that could introduce comparison issues. Added flag MONO_SEQ_POINT_FLAG_EXIT_IL that is used to encode the exit IL, this avoids a 4 byte IL offset delta. 2014-11-18 18:02:52 +00:00
Marcos Henrich ac5395bc05 Added out_buf parameter to encode_var_int and decode_var_int. 2014-11-18 18:02:52 +00:00
Marcos Henrich dda58dc6e3 Renamed seq_point_info_write_size to seq_point_info_get_write_size. 2014-11-18 18:02:51 +00:00
Marcos Henrich afb8ea6a96 MonoSeqPointInfo data is now compressed. Encode data MonoSeqPointInfo len, has_debug_data and alloc_data into a single variable int. 2014-11-18 18:02:50 +00:00
Marcos Henrich ca79ee98e4 MonoSeqPointInfo no longer uses a GByteArray. GByteArray requires too much memory, we still use GByteArray to build the buffer but when its done we store in MonoSeqPointInfo a copy. 2014-11-18 18:02:50 +00:00
Marcos Henrich d4644e78ca Merged SeqPoint.next_array with SeqPoint.array. 2014-11-18 18:02:49 +00:00
Marcos Henrich eb35cc1159 SeqPoint next array is no longer allocated by default. Next array will only be allocated if has_debug_data is true. 2014-11-18 18:02:48 +00:00
Marcos Henrich 79bd3278bb Added size of sequence points to mono jit stats. 2014-11-18 18:02:48 +00:00
Marcos Henrich c243c2447f Ignore seq points of entry and exit IL offsets. Those seq points are only required for debugging. 2014-11-18 18:02:47 +00:00
Marcos Henrich a73caf9930 Changed mini-exceptions functions to get IL offsets from seq point. mono_walk_stack_full and ves_icall_get_trace are now using find_prev_seq_point_for_native_offset to retrieve IL offsets. 2014-11-18 18:02:46 +00:00
Marcos Henrich ba11c1de28 Sequence points debug data is no longer store by default. Debug data is only stored when cfg->gen_seq_points_debug_data is true. 2014-11-18 18:02:46 +00:00
Marcos Henrich e47bad43de Sequence points are now generated by default. 2014-11-18 18:02:45 +00:00
Marcos Henrich 35f6f01ac2 Changed METHOD_EXIT_IL_OFFSET to -2 The new value produces lower deltas and does not overflow when using variable integer encoding. 2014-11-18 18:02:44 +00:00
Marcos Henrich e9d6024e62 aot-runtime and aot-compiler now use seq_point_info_read/write. 2014-11-18 18:02:43 +00:00
Marcos Henrich 4947481b1a Added methods to read and write MonoSeqPointInfo. 2014-11-18 18:02:43 +00:00
Marcos Henrich 2d14735141 SeqPoint are now kept in memory with a compact encoding. MonoSeqPointInfo has now a pointer to a buffer containing encoded sequence points, and to a buffer containing next values. As there is no longer an array of SeqPoint ready to be read, SeqPointIterator was added. 2014-11-18 18:02:42 +00:00
Marcos Henrich fee5465299 Moved sequence point logic to seq-points.h and seq-points.c 2014-11-18 18:02:41 +00:00
Marcos Henrich c64e105c69 Improved exception stack frame displayed data. Added stack frame method address display. 2014-11-18 18:02:41 +00:00
Marcos Henrich a5f2606a66 Added to StackFrame a field for the method address. Incremented MONO_CORLIB_VERSION. 2014-11-18 18:02:40 +00:00
Ludovic Henry c9c80ce2ce [runtime] Fix #24605 "counters not enabled" message in monodis and peverify 2014-11-18 11:51:43 -05:00
Marek Safar 383daff454 [eval] Don't assumen all captured types have storey assigned 2014-11-18 16:51:11 +01:00
Marek Safar 281934e127 [mcs] Remove primary constructors and declaration expressions from C#6 2014-11-18 14:44:16 +01:00
Jb Evain 567834db69 [Mono.Debugger.Soft] Add test for StackFrame.Domain
Assert that the property returns the proper domain for the stack frame.
2014-11-18 14:12:36 +01:00
Marek Safar 2cee8a135e [mcs] Fix error reporting for incomplete attribute target. Fixes #24537 2014-11-18 14:11:59 +01:00
Jb Evain 2729751fcf [Mono.Debugger.Soft] Implement StackFrame.Domain
This property uses the new CMD_STACK_FRAME_GET_DOMAIN command
to retrieve and cache the domain in which the stack frame
is executing.

Bump the protocol version to match the runtime.
2014-11-18 14:10:53 +01:00
Jb Evain f37be5d96b [sdb] Add command CMD_STACK_FRAME_GET_DOMAIN
This command returns the domain in which the stack frame is executing

Bump protocol version.
2014-11-18 14:09:15 +01:00
Marek Safar 20c5941b4c [mcs] Less cascading errors 2014-11-18 13:40:56 +01:00
Alistair Leslie-Hughes b3eccc8a79 Improved support for TimeZoneInfo under windows.
When cross compiling with gcc, LIBC is defined and
thus never checks the registry for the timezone information.

This change is released under the MIT license.
2014-11-18 20:46:15 +11:00
Marek Safar b9e6127506 [mcs] Makes flow analysis of goto/goto case significantly faster. Fixes #24511 2014-11-18 10:28:55 +01:00
Zoltan Varga df8abf4920 [jit] Fix a class initialization race which happens if a class initializer initializes a got slot before it finishes running. Fixes #23242. 2014-11-17 21:44:35 -05:00
Zoltan Varga 6b7a11a77b [aot] Disable COM support in AOT code, the COM wrapper code doesn't play well with AOT. 2014-11-17 17:42:35 -05:00
Mark Probst 40c30b5288 Merge pull request #1406 from BrzVlad/monitor-resurrect
Keep the monitor link to the object active also in the resurrection case
2014-11-17 14:17:32 -08:00
Rodrigo Kumpera 3ad76e42b2 Merge pull request #1388 from schani/fix-23401
Fix 23401
2014-11-17 17:17:04 -05:00
Zoltan Varga b3e8e1fa20 [runtime] Avoid crashes when a non-runtime thread receives a SIGQUIT. 2014-11-17 17:03:41 -05:00
Sebastien Pouliot 59b80fb93b Merge pull request #1408 from brendanzagaeski/signed-xml-bug-7716
[System.Security] Fix SignedXml bug #7716 with tests
2014-11-17 16:32:54 -05:00
Zoltan Varga e52d20ed7d [arm] Applied patch from Richard Dunkley <[email protected]>. Fix complication problems with newer gcc versions. Fixes #24588. 2014-11-17 15:46:39 -05:00
Brendan Zagaeski c5375566d5 [System.Security] Fix SignedXml bug #7716 with tests
The underlying problem for bug 7716 [1] was that the Mono C14N XML
canonicalizer was not sorting the XML attributes in the same order as
Microsoft .NET's canonicalizer.

The C14N specification [2] states: "the attributes are sorted
lexicographically by attribute name (based on Unicode character code
points)." This wording suggests that the order of attributes should be
strictly ascending based on Unicode byte value. This commit changes the
attribute sort order to match the specification.

The new tests pass on Windows, fail on Mono before this change, and
succeed on Mono after this change.

[1] https://bugzilla.xamarin.com/show_bug.cgi?id=7716
[2] http://www.w3.org/TR/2000/WD-xml-c14n-20000119.html
2014-11-17 15:45:53 -05:00
Chris Hubbard b47c95d902 Fix crash when removing last item in ListView
When the VirtualListSize changes, the focus_item_index should
be reset (similar to how it currently resets the selected indices).

If the last item in a ListView has focus and it is removed by
an another action on the form (i.e. push a button to remove the
current item), then the focused_item_index is not updated when
the VirtualListSize changes, even though that item doesn't exist
anymore.  When the ListView receives focus again, it tries to
invalidate the current focused item which causes an
ArgumentOutOfRangeException.
2014-11-17 15:35:33 -05:00
Vlad Brezae 09edaaf4d4 Keep the monitor link to the object active also in the resurrection case.
The MonoThreadsSync data field contains a weak reference to the object that uses the structure, which should be a tracking one.
2014-11-17 12:23:32 -08:00
Rodrigo Kumpera c12c27a9a9 Merge pull request #1405 from mono/revert-1289-stackframe
Revert "Improved exception stack frame displayed data."
2014-11-17 14:39:43 -05:00
Rodrigo Kumpera 7e7fce7bf1 Revert "Improved exception stack frame displayed data." 2014-11-17 14:37:41 -05:00
Rodrigo Kumpera f256f515de Merge pull request #1289 from esdrubal/stackframe
Improved exception stack frame displayed data.
2014-11-17 12:44:35 -05:00
Marcos Henrich 937c7233d2 Changed METHOD_EXIT_IL_OFFSET back to 0xffffff.
The previous value was -2, that could introduce comparison issues.
Added flag MONO_SEQ_POINT_FLAG_EXIT_IL that is used to encode the exit IL, this avoids a 4 byte IL offset delta.
2014-11-17 20:47:43 +08:00
Marcos Henrich 8bf7d26eaa Added out_buf parameter to encode_var_int and decode_var_int. 2014-11-17 18:20:15 +08:00
Marcos Henrich c6fb27e6e9 Renamed seq_point_info_write_size to seq_point_info_get_write_size. 2014-11-17 17:54:51 +08:00
Marcos Henrich 0f2444e940 MonoSeqPointInfo data is now compressed.
Encode data MonoSeqPointInfo len, has_debug_data and alloc_data into a single variable int.
2014-11-17 17:54:50 +08:00
Marcos Henrich 698e12809f MonoSeqPointInfo no longer uses a GByteArray.
GByteArray requires too much memory, we still use GByteArray to build the buffer but when its done we store in MonoSeqPointInfo a copy.
2014-11-17 17:54:49 +08:00
Marcos Henrich 95b1a5bbf9 Merged SeqPoint.next_array with SeqPoint.array. 2014-11-17 17:54:49 +08:00
Marcos Henrich 63dce7b8e3 SeqPoint next array is no longer allocated by default.
Next array will only be allocated if has_debug_data is true.
2014-11-17 17:54:48 +08:00
Marcos Henrich ba7b9fc562 Added size of sequence points to mono jit stats. 2014-11-17 17:54:48 +08:00
Marcos Henrich 49b7ef4442 Ignore seq points of entry and exit IL offsets.
Those seq points are only required for debugging.
2014-11-17 17:54:47 +08:00
Marcos Henrich 6dea3629f7 Changed mini-exceptions functions to get IL offsets from seq point.
mono_walk_stack_full and ves_icall_get_trace are now using find_prev_seq_point_for_native_offset to retrieve IL offsets.
2014-11-17 17:54:46 +08:00
Marcos Henrich e8412d602f Sequence points debug data is no longer store by default.
Debug data is only stored when cfg->gen_seq_points_debug_data is true.
2014-11-17 17:54:45 +08:00
Marcos Henrich d55bb757b3 Sequence points are now generated by default. 2014-11-17 17:54:23 +08:00
Mauricio Faria de Oliveira 3953793f0c [ppc] Bump (more) instruction sizes after 51c454f6b0.
This fixes ~30 ppc-specific failures in mono/tests (e.g., appdomain), like this:
	wrong maximal instruction length of instruction atomic_add_i4 (expected 20, got 28)
	* Assertion: should not be reached at mini-ppc.c:5235

The commit 51c454f6b0 introduced 2 ppc_sync
instructions in OP_ATOMIC_CAS_I4/8 *and* OP_ATOMIC_ADD_NEW_I4/8 (mini-ppc64.c).

Accordingly, commit 83a34c40c6 updated the maxlength
(+8 bytes) of atomic_cas_i4/8 - *but not* atomic_add_new_i4/8 (cpu-ppc64.md).

Recently, commit b784b866da made atomic_add_new_i4/8
exercised (as 'atomic_add_i4/8') - with an incorrect/non-updated 20-byte maxlength,
which should actually be 28.

Thus:
	wrong maximal instruction length of instruction atomic_add_i4 (expected 20, got 28)

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-11-17 02:34:13 +00:00
Bill Seurer ba62bdf862 PowerPC64 ELFv2 ABI: cases for in-register parameter passing, return values, and structs
The ELFv2 ABI specifies some particular cases for in-register parameter
passing, return values, float/double structs; e.g.,
- small struct returned via registers (2 doublewords)
- homogeneous float struct returned via registers (8 members)
- small float struct passed/returned via FR registers
- return via multiple registers

Author: Bill Seurer <[email protected]>
Origin: https://launchpad.net/ubuntu/+source/mono/3.2.8+dfsg-4ubuntu2
Changes: Mauricio Faria de Oliveira <[email protected]>

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-11-17 02:34:12 +00:00
Michael Matz 5785fd898a Use ppc_r12 for some global call sequences
After the mechanical exchange of ppc_r11 and ppc_r12 we now can use
ppc_r12 for global calls to hold the callees address without clobbering
r11 (which potentially contains IMT_REG, VTABLE_REG and RGCTX_REG).
We don't need to change all indirect calls, only those potentially reaching
functions containing a TOC setup based on r12 (in particular functions
in shared libs).  As the instruction sequence patcher can only deal
with one destination register we also need to make some additional
calls use r12.  We probably should convert all calls that currently
use r0 to use r12 if no other conflicts arise but this is enough to build.

Author: Michael Matz <[email protected]>
Origin: https://build.opensuse.org/request/show/225490
Changes: Mauricio Faria de Oliveira <[email protected]>

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-11-17 02:34:11 +00:00
Michael Matz 02cdf6abca Switch ppc_r11 with ppc_r12
This is a preliminary patch for ppc64le ELFv2 support.  That one requires
r12 to hold a functions address at calls to normal (global) C functions.
As is r12 is also used by mini for its IMT_REG, VTABLE_REG and RGCTX_REG
to pass around values to functions outside the normal argument registers
(ugh!), so there's a conflict.  This mechanical (by sed) patch simply switches
ppc_r11 and ppc_r12 everywhere, r11 doesn't have any special use in the ABI.

Author: Michael Matz <[email protected]>
Origin: https://build.opensuse.org/request/show/225490
Changes: Mauricio Faria de Oliveira <[email protected]>

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-11-17 02:34:10 +00:00
Michael Matz d9a3c39a04 Basic ppc64le support
This adds initial support for ppc64le to the ppc64 port.  That is:
* little endian aware (also in strtod),
* and ELFv2 aware (not using function descriptors)
* adjust various block sizes to be multiple of 64k, the default
  pagesize on ppc64le.  The sources should have used the system function
  to ensure alignment on pagesize, so this is just a stop-gap

It also corrects the list of registers for the precise GC, but that isn't
used in mini at all on any architecture currently.

Author: Michael Matz <[email protected]>
Origin: https://build.opensuse.org/request/show/225490
Changes: Mauricio Faria de Oliveira <[email protected]>

Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
2014-11-17 02:33:59 +00:00
Jim Westfall 24742dc038 [MWF] Fix off-by-one from 5a5c683
first_row_index needs to be <= RowsLeft - 1, since we are comparing a
row count vs an index.
2014-11-15 09:35:54 -08:00
Marcos Henrich 4c8d5ee138 Changed METHOD_EXIT_IL_OFFSET to -2
The new value produces lower deltas and does not overflow when using variable integer encoding.
2014-11-15 03:44:10 +08:00
Marcos Henrich 49c48add7b aot-runtime and aot-compiler now use seq_point_info_read/write. 2014-11-15 03:44:09 +08:00
Marcos Henrich eecf7a8ab5 Added methods to read and write MonoSeqPointInfo. 2014-11-15 03:44:09 +08:00
Marcos Henrich 09bd838116 SeqPoint are now kept in memory with a compact encoding.
MonoSeqPointInfo has now a pointer to a buffer containing encoded sequence points, and to a buffer containing next values.
As there is no longer an array of SeqPoint ready to be read, SeqPointIterator was added.
2014-11-15 03:44:08 +08:00
Marcos Henrich d07e74a3f1 Moved sequence point logic to seq-points.h and seq-points.c 2014-11-15 03:44:07 +08:00
Marcos Henrich afc92f22dc Improved exception stack frame displayed data.
Added stack frame method address display.
2014-11-15 03:43:54 +08:00
Marcos Henrich 20523739f8 Added to StackFrame a field for the method address.
Incremented MONO_CORLIB_VERSION.
2014-11-15 03:34:31 +08:00
Zoltan Varga 4f237e0ce1 [runtime] Fix the errors in edb931dfb9 so it actually works. 2014-11-13 22:26:14 -05:00
fquiroz01 d380ffbb48 Add IE9 and newer to Up level navigator
This line enable the ASP Javascript validators in IE9 and upper. the user agent the IE10 is "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)".
2014-11-13 22:05:39 -05:00
Mark Probst 06b8128992 [sgen] Add a FIXME. 2014-11-13 15:46:05 -08:00
Mark Probst 7bd3bd73d5 [sgen] Never mark from two threads at the same time.
We don't update mark bits atomically, so we can't have two threads
marking at the same time, which means we have to stop the concurrent
collector worker thread while we do work in the main GC thread.  That
includes nursery collections, because they also touch mark bits.

Also problematic are mod-union updates.  The worker threads can add
global remsets, which they do in the main cardtable.  This will conflict
with updating the mod-union table, so having the workers stopped also
applies there.
2014-11-13 15:46:01 -08:00
Mark Probst e12085b4c9 [sgen] Reorganize sgen_perform_collection for clarity. 2014-11-13 15:44:28 -08:00
Mark Probst 1624ec14c3 [sgen] Make check-mark-bits work again. 2014-11-13 15:44:28 -08:00
Mark Probst b87d9685bb [sgen] Scan the whole nursery in the finish mark pause.
Before we do all the major heap work in the finish mark pause of a
concurrent collection, we perform a nursery collection, for simplicity's
sake.

The nursery collection left pinned objects in the nursery, without
following their references into the major heap, so the major heap work
had to scan those objects again.  There was no special provisioning
for this—major mark would do the pinning again, and we would
automatically end up scanning the objects again.

The way we determine the stack end for the GC thread, however,
had the effect of making pinning non-deterministic.  We would
conservatively scan part of the GC thread's stack, which was
subject to change, to pinning again might result in less or more
objects pinned.

The proper solution would be to determine the stack end correctly,
but for now we will just the whole nursery.
2014-11-13 15:44:27 -08:00
Mark Probst 537665b54e [sgen] Only count cards for STW protocol if heavy is enabled. 2014-11-13 15:44:26 -08:00
Mark Probst 3639ee61f1 [sgen] Binary protocol entry for pin stage. 2014-11-13 15:44:15 -08:00
Mark Probst fbfe8518ce [sgen] Add missing volatile. 2014-11-13 15:44:14 -08:00
Rolf Bjarne Kvinge 597183658e [System] Ignore two tests which are failing due to external factors changing.
See https://bugzilla.xamarin.com/show_bug.cgi?id=24340
2014-11-14 00:31:16 +01:00
Jonathan Pryor 6299445e81 [mono-api-html] Allow ignoring addition of property setters.
As mentioned in commit 789517f8, I'm trying to compare inter-API level
differences in Mono.Android.dll, and want to reduce as much
"meaningless noise" as possible -- changes which don't meaningfully
break API or ABI.

Among those "meaningless" changes are the addition of property setters
to properties. Adding a setter doesn't break API or ABI.

Add a `mono-api-html --ignore-changes-property-setters` option.

  --ignore-changes-property-setters:
      Ignore the addition of property setters.

      If a source property contains a getter and the target property
      contains both a getter and a setter, do not flag this as a
      change.
2014-11-13 13:36:45 -05:00
Jonathan Pryor 09d16b7265 [mono-api-html] Make --ignore-changes-virtual less lenient.
As mentioned in commit 789517f8, the intentino of
`mono-api-html --ignore-changes-virtual` is so that when a method is
changed from non-virtual to virtual or override, or from virtual to
override, a "Removed member" message isn't triggered.

However, the previous implementation was too lenient. While *adding*
virtual to the method is fine, *removing* is NOT fine, as that would
be an API breaking change (e.g. all classes which attempt to override
a previously virtual method could no longer do so).

Make the virtual check stricter so that virtual/override to
non-virtual changes are not ignored.
2014-11-13 13:36:45 -05:00
Marek Safar 3d293f5a71 [xbuild] Add 14.0 toolchain 2014-11-13 18:37:43 +01:00
Marek Safar 4697ef6e77 [mcs] More updates to auto-properties v6 implementation 2014-11-13 17:19:04 +01:00
Jim Westfall ad651ff43b [MWF] Add unit test for #24372 2014-11-12 19:50:32 -08:00
Zoltan Varga a32054ece9 [jit] Fix gshared and aot support for --debug=casts. 2014-11-12 20:12:44 -05:00
Zoltan Varga cdfb430b48 [jit] Fix --debug=casts support for casts in gshared methods. 2014-11-12 19:58:27 -05:00
Jonathan Pryor 789517f878 [mono-api-html] Allow ignoring parameter names, virtual.
I've been trying to review API diffs in Xamarin.Android between API
levels, but the diffs are "noisy" because Google will change parameter
names at-will, or will change a non-virtual method into a virtual
method, or a virtual method into an override, all of which are
acceptable changes but individually generate a Removed line in
mono-api-html output, and manually removing the *hundreds* of changes
is error-prone.

Add two new option flags to mono-api-html:

  --ignore-changes-parameter-names:
      Ignore changes in constructor and method parameter names.

      If parameter names change between <reference.xml> and
      <assembly.xml>, don't report a change for the constructor or
      method.

  --ignore-changes-virtual:
      Ignore changes in "virtual-ness".

      If a method or property changes from non-virtual to virtual,
      non-virtual to override, or virtual to override, don't report a
      change for the member.
2014-11-12 17:34:21 -05:00
Rodrigo Kumpera b486e8372e [runtime] Fix a deadlock introduced in the last commit. 2014-11-12 16:49:30 -05:00
Rodrigo Kumpera 363e4bb2a6 [runtime] What MonoImage::ptr_cache with the image lock. Do optimistic locking here too. 2014-11-12 11:29:07 -05:00
Rodrigo Kumpera 2ef2b0d754 [runtime] Replace the loader lock when protecting the global module map. 2014-11-12 11:29:06 -05:00
Rodrigo Kumpera c6b845ea23 Add comment on one usage of the loader lock. 2014-11-12 11:29:06 -05:00
Rodrigo Kumpera 0526aa45e0 [runtime] Protect MonoImage::files with the image lock and make image loading optimistic. 2014-11-12 11:29:06 -05:00
Rodrigo Kumpera 4fe5a46e55 Change mono_class_from_generic_parameter to use the image lock.
We change the function to use the lock/validate pattern. This is both
more scalable and enables us to use the image lock, since the amount of
work done with it held is now trivial.
2014-11-12 11:29:06 -05:00
Rodrigo Kumpera 532420cc64 Reduce usage of the loader lock in method lookup.
The function mono_method_inflated_lookup no longer needs the loader lock to be held
as the hashtable is now protected by the imageset lock.

This means that mono_class_inflate_generic_method_full_checked doesn't need to take the
loader lock.

The function mono_method_set_generic_container uses mono_image_property_insert which takes
the image lock and not the loader lock. Adjust the locking comment.
2014-11-12 11:29:06 -05:00
Zoltan Varga 50e286b2e7 Fix the mobile build. 2014-11-11 20:11:45 -05:00
Zoltan Varga 60d83a46e7 [aot] Avoid an assert when AOTing a non-mobile mscorlib in a runtime with COM disabled. 2014-11-11 20:11:45 -05:00
Ludovic Henry 83fac07316 [perfcounters,proflog,mprof-report] Add support for Performance Counters sampling in the log profiler 2014-11-11 13:46:47 -05:00
Ludovic Henry 7b59f2dcf1 [counters,proflog] Add mono_counters_on_register/delete callbacks + Use them in proflog
This is used for counters that are defined after runtime initialization. It implies that TYPE_SAMPLE_COUNTERS_DESC can now be emitted at any time, and not only once.
2014-11-11 13:40:29 -05:00
Ludovic Henry 734b0e9d32 [counters] Make API thread safe 2014-11-11 13:40:28 -05:00
Ludovic Henry fcfb6c2935 [perf-counters] Fix return of the same counter even with different a counter parameter
The same counter instance would be returned if we use the "instance" parameter instead of the "counter"
parameter. Also it is the name of the counter that is stored in mono_perfcounter_create (mono-perfcounters.c:1488).
2014-11-11 13:40:27 -05:00
Ludovic Henry dc139819ea [perf-counters] Declare shared data header type directly after creation
Fix the following bug : shared_data_find_room return twice the same memory region because it was not marked as "in use" by setting the header.ftype value.
This bug is triggered when we want to create a new shared area (for example a new FTYPE_INSTANCE area) while creating another area (for example a new FTYPE_CATEGORY).
2014-11-11 13:40:27 -05:00
Ludovic Henry 38f2bff71d [perf-counters] Fix bug on SharedCounter decoding
The structure of the encoded SharedCounter is as follow :
 - compressed data type : 1 byte
 - index in the category : 1 byte
 - name of the counter : null terminated string
 - help of the counter : null terminated string
2014-11-11 13:40:26 -05:00
Marek Safar b82016bf29 [xbuild] Change default tools profile 2014-11-11 18:49:30 +01:00
Marek Safar eed64a2729 [corlib] Fix culture info error message. Fixes #24431 2014-11-11 15:53:04 +01:00
Marek Safar 9ddd46b890 [mcs] Extended pragma warning syntax 2014-11-11 15:42:05 +01:00
Marek Safar 31b2d60549 [mcs] Use same result bucket for extension method lookup in all types of using expression 2014-11-11 11:25:28 +01:00
Jim Westfall 5a5c683696 [MWF] DataGridView: ensure first_row_index will be valid after row removal
DataGridView keeps track of the first visible row in first_row_index.
DataGridViewRowCollection will notify DataGridView its about to delete 1 or
more rows via OnRowsPreRemovedInternal().  When this happens, we need to
ensure first_row_index will still fall within the number of rows that
will remain after the row removal.

This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24372 which I
reported.
2014-11-10 19:20:56 -08:00
Zoltan Varga c09cd684b4 Add a test for #24419. 2014-11-10 20:54:12 -05:00
Zoltan Varga 5dd3347588 [jit] Remove some special casing from LDTOKEN, it doesn't seem to be needed. Fixes #24419. 2014-11-10 20:49:21 -05:00
Rodrigo Kumpera 5a2ef1b76f [runtime] Remove the second signal used by profiling and now multiplex distribution and sampling with the same signal. 2014-11-10 18:42:05 -05:00
Rodrigo Kumpera e6c3ff7551 [runtime] Introduce new MonoThread API for signal multiplexing. It's a provisional API until we figure out more of how it's suposed to work. 2014-11-10 18:41:25 -05:00
Rodrigo Kumpera 4d12ed3356 [profiler] Guard against null sbuff when serializing statistical data. 2014-11-10 18:41:20 -05:00
Rodrigo Kumpera a18dffad0d [profiler] Fix statistical backtraces to work and collect as many frames as possible.
This is a jumbo commit that addresses multiple issues with statistical backtrace collection:

1) It's not possible to reliably collect MonoMethod* so we check that they exist before
serializing to the .mlpd file and retrieve in sync context.

2) It was reporting the generic instance MonoMethod* under gsharing. Those methods are
not reported to the profiler since they are never compiled. They would turn out as unknowns.

3) Collecting IL offsets from async context is currently impossible to be done safely, so it's
now disabled. The way we'll do it in the future is by serializing the sequence point table when
JIT'ing.

4) The way we used to collect frames in statistical ignored all frames until the first LMF, which
discards a lot of them under statistical mode. We now properly pass sigcontext and have it been consumed.
In the future we should simply use the callchain mode.
2014-11-10 18:41:15 -05:00
Rodrigo Kumpera 3aa7f41bed [runtime] Changes mono_stack_walk_async_safe API to be truly async safe.
This is a very very tricky API, so we restrict the returned data to be what's really
possible under sig context.
2014-11-10 18:41:11 -05:00
Rodrigo Kumpera 412ed8153a [runtime] Harden the profiler signal handlers against not fully attached threads and HP reentrancy. 2014-11-10 18:41:05 -05:00
Zoltan Varga 25e04fa019 Revert "Disable building the NET 2.0 profile by default."
This reverts commit 458c9456f0.

This still breaks the build.
2014-11-10 17:46:34 -05:00
Zoltan Varga 458c9456f0 Disable building the NET 2.0 profile by default. 2014-11-10 15:43:53 -05:00
Zoltan Varga a8c183ac63 [jit] Get rid of the mono_arch_sigctx_to_monoctx()/monoctx_to_sigctx () functions, use mono_sigctx_to_monoctx()/monoctx_to_sigctx() instead. 2014-11-10 14:31:29 -05:00
Zoltan Varga a87062a145 [jit] Use xmm5 as an fp scratch register on winx64. 2014-11-10 14:04:23 -05:00
Jonathan Pryor 7f0da57a65 Merge pull request #1393 from akoeplinger/refresh-mdoc-expected
[mdoc] Refreshed the en.expected.importecmadoc files to fix errors after the recent XML changes

Output was generated on .NET, and thus is canonical.
2014-11-10 13:52:11 -05:00
Marek Safar 7c024c1d5a [mcs] Encode more win32 version info attributes. Fixes #23981 2014-11-10 16:09:38 +01:00
Marek Safar b7a8bfc7ad Merge pull request #1334 from ztone/delegate
Fix PrepareEmit error when evaluating delegates
2014-11-10 12:03:23 +01:00
Zoltan Varga 7e056cd346 [jit] Move the ppc sigctx<->monoctx conversion code to mono-context.c. 2014-11-10 05:22:04 -05:00
Zoltan Varga 1af68a199e Remove some dead code. 2014-11-10 05:06:51 -05:00
Zoltan Varga 0d1555dbd5 Fix the android build. 2014-11-09 21:41:43 -05:00
Miguel de Icaza fb3468e61c Merge pull request #1390 from woodsb02/FreeBSDMacNetworkInterfaces
Freebsd to use Mac NetworkInterface code instead of Linux NetworkInterface code
2014-11-09 20:17:50 -05:00
Zoltan Varga ab1c14290f Merge pull request #1392 from ludovic-henry/pr34-proflog-counters-sample-shutdown
[proflog] Add counters sampling on profiler shutdown and startup
2014-11-09 18:30:15 -05:00
Jim Westfall 7d1b878fbf [MWF] DataGridViewRowCollection Clear() speed up
When issuing a Clear() to remove all rows, a ReIndex() was being called for
each row that was being removed.  This is extremely inefficient, instead
do a single ReIndex() after all rows have been removed.

Before doing a Clear() of 30k rows was taking 5.8 seconds.  With this patch
it now takes 670ms.
2014-11-08 16:37:33 -08:00
Zoltan Varga 690a646c5e Merge pull request #1395 from ludovic-henry/pr38-proflog-only-counters
[proflog] Add onlycounters parameters which disable event dumping
2014-11-08 13:27:28 -05:00
Ludovic Henry bbfb0e86f3 [proflog] Add countersonly parameters which disable event dumping
This is useful in the case of the benchmarking suite because we are only interested in the counters, and they represent a minimal part of the output file size.
2014-11-08 10:40:34 -05:00
Zoltan Varga a255b522cb Fix a uninitialized variable warning. 2014-11-07 18:50:26 -05:00
Zoltan Varga 7d319221f1 Fix a problem introduced by e19f539121. 2014-11-07 16:53:22 -05:00
Zoltan Varga e19f539121 [amd64] Make xmm6:xmm15 callee saved on winx64 as required by the ABI. 2014-11-07 15:33:57 -05:00
Mark Probst 730d0ccd6f Merge pull request #1385 from BrzVlad/fin-hash
[sgen] Use hash based on current address for finalization hashes.
2014-11-07 12:14:48 -08:00
Alexander Köplinger 0442cdbc19 [System] Fixed formatting of new ClientWebSocket test and disabled it
We need to have an implementation for HttpListenerContext.AcceptWebSocketAsync () first before it works.
2014-11-07 20:16:51 +01:00
Alexander Köplinger 59d2397abc Merge branch 'patch-1' of https://github.com/ReubenBond/mono into ReubenBond-patch-1 2014-11-07 20:14:29 +01:00
Miguel de Icaza c97100c88d Merge pull request #1394 from kjpou1/master
Fix GetUsing to output the using name instead of -> using Mono.CSharp.Na...
2014-11-07 12:20:29 -05:00
Kenneth Pouncey de3ff228dc Add space 2014-11-07 16:59:42 +01:00
Kenneth Pouncey 3664e4c5a7 Add space 2014-11-07 16:57:41 +01:00
Kenneth Pouncey db2381da04 Fix GetUsing to output the using name instead of -> using Mono.CSharp.NamespaceExpression; <- for every using statement that was set
+ Fix NRE when source_file or source_file.Usings is null. This will now return back an empty string or empty List
+ **Note** that we are returning the ToString() value of NamespaceExpression which is the full resolved namespace of "System.Drawing" instead of "Drawing".
+ Add ToString override for NamespaceExpression to return the full resolved name of the namespace.
2014-11-07 16:41:05 +01:00
Atsushi Eno 367d417207 [Mono.Posix] consider nano time info in UnixFileSystemInfo.Last*Time.
Before this change, those Last*Time properties returned only based on
seconds (truncated), which could cause inaccurate time comparison.
Consider code like this:

var fileUpdated = DateTime.Now;
...
File.WriteAllText (path, "foobar");
...
if (fileUpdated > new UnixFileInfo (path).LastWriteTime)
   OnUpdatedFile (path);

This could always result in raising update event, even if there was
no update after writing.

Last*Time With milliseconds makes it very unlikely to happen.
2014-11-07 20:42:25 +08:00
Alexander Köplinger e1900d6dc2 [mdoc] Refreshed the en.expected.importecmadoc files to fix errors after the recent XML changes
The XML work in 661430fd1f and bf39f5aec0 changed the whitespace handling, so the mdoc test suite failed.
Refreshing the files makes them identical to what MS.NET produces and fixes the mdoc tests.
2014-11-07 12:34:26 +01:00
Atsushi Eno bf39f5aec0 [xml] XmlElement.InnserXml seems to preserve whitespaces.
Fix for mdoc test regression (see commit comments on #661430f).
2014-11-07 15:35:40 +08:00
Zoltan Varga edb931dfb9 [runtime] Use a separate signal with the SA_RESTART flag set for suspending/resuming threads during debugging on android, since lots of android native code cannot handle the interruptions caused by the normal abort signal. Fixes #22968/#23987. 2014-11-06 19:44:57 -05:00
Ludovic Henry e41c4efed5 [proflog] Add counters sampling on runtime initialized 2014-11-06 15:25:04 -05:00
Ludovic Henry 8a1db154e1 [proflog] Add counters sampling on profiler shutdown 2014-11-06 15:17:17 -05:00
Ben Woods ba998de3c9 Freebsd to use Mac NetworkInterface code instead of Linux NetworkInterface code 2014-11-06 17:27:36 +08:00
Mark Probst b9061f8807 [sgen] When out of memory, finish concurrent with scanning whole nursery. Fixes #23401.
If we run out of memory during the nursery collection in the finishing collection pause,
there will be late-pinned objects in the nursery: pinned objects that were not pinned
from conservative roots (or cementing).  We need to scan those, too, so in that case
we just walk the nursery and scan all objects.
2014-11-05 16:27:02 -08:00
Mark Probst 9bf45cc5ba [sgen] Make check-mark-bits also scan nursery objects. 2014-11-05 16:27:02 -08:00
Mark Probst d69d4c2472 [sgen] Optional check that the concurrent collector doesn't update references. 2014-11-05 16:27:02 -08:00
Mark Probst 9ed222bd75 [sgen] Add assertions. 2014-11-05 16:27:02 -08:00
Mark Probst 2ba7fb3a36 [sgen] Move heap checks before pinning. 2014-11-05 16:27:01 -08:00
Mark Probst b479e83275 [sgen] Stop concurrent worker during concurrent update and nursery collections.
The two collectors stepped on each other's toes.  Specifically, updating the mod union
card table while the worker thread might mark cards in the card table will not work.

The simplest solution for now is to stop the worker thread during concurrent updates
and nursery collections.  In the future we can have the thread help with the nursery
collection.
2014-11-05 16:27:01 -08:00
Mark Probst 72bd6b96fb [sgen] Remove workers_marking - workers are always marking. 2014-11-05 16:27:01 -08:00
Mark Probst 5479dd7e38 [sgen] Implement a proper state machine for workers.
What we had previously was an impromptu state machine that was
badly implemented, hard to reason about, and not easily extensible.
2014-11-05 16:27:01 -08:00
Mark Probst ef8f07687d [sgen] Fix build with heavy binary protocol. 2014-11-05 16:27:00 -08:00
Mark Probst 47287a6784 [sgen] Fix cementing with concurrent M&S.
Cementing can happen during a concurrent collection when processing
the cardtable.  We use a separate cementing hash during concurrent
collections but we didn't pin objects from there.
2014-11-05 16:27:00 -08:00
Zoltan Varga 363302f71f Install Mono.Cecil in the net 4.5 profile. 2014-11-05 17:31:48 -05:00
Zoltan Varga ed65bc251d Revert "Disable building the NET 2.0 profile by default."
This reverts commit fe265502cc.

Revert this for now as it breaks too much stuff.
2014-11-05 16:57:00 -05:00
Marcos Henrich 570cb1a10a Changed script DateTime.Now_Test.sh to use the compiled csharp.exe. 2014-11-05 16:38:39 +00:00
Marcos Henrich b324cecd4f TZ display name changes no longer reset adjustment rules.
Reset of adjustment rules is mandatory when the base offset is changed because the rules are relative to the base offset.
Adjustment rules are now kept until the base offset changes.
2014-11-05 16:30:13 +00:00
Radek Doulik d8aad87c88 [linker] blacklist System.Net.Sockets.MulticastOption fields
- merge fix for https://bugzilla.xamarin.com/show_bug.cgi?id=21578
   the MulticastOption's 'private IPAddress local' field was
   removed by linker and the app crashed later at runtime.
 - when System.Net.Sockets.MulticastOption object
   is passed to System.Net.Sockets.Socket.SetSocketOption
   and thru it to System.Net.Sockets.Socket.SetSocketOption_internal
   it accesses passed object fields
   (thru few more native calls).
2014-11-05 13:00:37 +01:00
Zoltan Varga 1ea6921beb Merge pull request #1387 from akoeplinger/improve-bug652331_2
[System.ServiceModel] Fixed Bug652331_2 test that failed on Jenkins by increasing timeout
2014-11-04 23:18:11 -05:00
Zoltan Varga 2a11a2f11b [arm] Fix OP_LOCALLOC on arm so it correctly adjusts sp with the param area size even if the size is large. Fixes #24221. 2014-11-04 22:45:23 -05:00
Rodrigo Kumpera d51f34fd21 [profiler] Expose new profiling modes and allow sampling rate to be set when using signal-based sampling. 2014-11-04 19:30:02 -05:00
Rodrigo Kumpera 9522723493 [profiler] Add new profiler API mono_profiler_set_statistical_mode that gives control to statistical mode and sampling rate. 2014-11-04 19:30:02 -05:00
Rodrigo Kumpera 53cd89d23a [profiler] Fix signal based profiling to sample all registered threads.
The current signal profiling code depended on invalid linux behavior of setitimer
allowing multiple threads to register for the same timer. Linux kernel 2.6.12 fixed
this and only the main thread gets the signal. Always.

The correct POSIX behavior happens on OSX/iOS.

On Linux we could use timer_create and SIGEV_THREAD_ID but that would not work on iOS/OSX
since it's specific to it. Given that little detail, I'll leave implementing it as an
exercise to the reader.

The solution, which aims to be as portable as possible, is to use a pair of signals and
have the first one fire the second one against all other threads.

We use a pair of signals since it's not well defined which thread will receive the signal
so detecting this from the signal is non-trivial.
2014-11-04 19:30:02 -05:00
Rodrigo Kumpera f34e6426f9 Make mono_threads_pthread_kill available to mach targets. 2014-11-04 19:30:01 -05:00
Zoltan Varga 82cfc3ea31 Make the build in docs/ uses the net 4.5 profile. 2014-11-04 18:24:27 -05:00
Zoltan Varga fe265502cc Disable building the NET 2.0 profile by default. 2014-11-04 17:49:18 -05:00
Zoltan Varga f6da6fa9ea Fix the loadable llvm build. 2014-11-04 16:44:39 -05:00
Zoltan Varga f812f43d2e [llvm] Add beginnings of support for emitting dwarf debug info for LLVM code. Not enabled yet, since it would clash with the dwarf info emitted by the AOT compiler for JITted code. 2014-11-04 16:20:05 -05:00
Alexander Köplinger d3ee9252da [System.ServiceModel] Fixed Bug652331_2 test that failed on Jenkins by increasing timeout
Looks like the test takes quite a while so 10 seconds was just too short. Increasing the timeout to 20s seems to fix it.
2014-11-04 21:17:26 +01:00
Jonathan Pryor c84d28ca73 [mscorlib] Marshal.GetExceptionForHR() takes an errorInfo parameter.
Parameter names are part of the ABI because of C#4 named parameter.
Consequently, they *must* be consistent with .NET, and .NET a
parameter name of "errorInfo", *not* "errorInfoPtr" [0]:

	public static Exception GetExceptionForHR(
		int errorCode,
		IntPtr errorInfo
	)

Change the parameter name from `errorCodeInfo` to `errorCode` so that
the parameter name is consistent with .NET.

[0]: http://msdn.microsoft.com/en-us/library/3xade62s(v=vs.100).aspx
2014-11-04 14:26:32 -05:00
Alexander Köplinger fc02486d6a Fix NET_2_0 build 2014-11-04 10:49:57 +01:00
Miguel de Icaza 9bb11ade6d Merge pull request #1363 from martinjt/AddMembershipPasswordAttribute
Added the MembershipPasswordAttribute class and associated unit tests
2014-11-04 12:51:53 -05:00
Vlad Brezae b160f1e3b7 [sgen] Use hash based on current address for finalization hashes.
Extend functionality of SgenPointerQueue.

The purpose of this commit is to avoid dependency between GC code and the obtaining of the hash from the object's synchronisation field, which might require additional processing.
2014-11-03 17:30:31 -08:00
Zoltan Varga 92c91d75f0 [jit] Factor out duplicate code from the castclass/unbox.any opcode implementation. 2014-11-03 17:53:21 -05:00
Martin Thwaites 8302b5782d Implement MachineKey.Protect and MachineKey.Unprotect 2014-11-03 21:52:18 +00:00
Martin Thwaites 1c6da6b912 Added the MembershipPasswordAttribute class and associated unit tests 2014-11-03 21:40:44 +00:00
Zoltan Varga 7b4bd74b4d [jit] Reenable the more efficient cast code in gshared methods. 2014-11-03 16:06:46 -05:00
Marcos Henrich e5fc5450dd Merge pull request #1185 from esdrubal/http-reuse
Allow stream reuse when InputStream has been disposed.
2014-11-03 11:41:13 +00:00
Miguel de Icaza 09308892bd Merge pull request #1347 from ermshiperete/ImproveEllipsisHandling
[MWF] Improve ellipsis handling
2014-11-02 12:36:49 -05:00
Alexander Köplinger 57feacab95 Add missing newline in .sources file, should fix build 2014-10-31 23:07:28 +01:00
Miguel de Icaza 716c7ad122 [asp.net] Implement the EventHandlerTaskAsyncHelper and HttpTaskAsyncHandler classes; Manually bring Pull Request 1365 from Kornel Pal 2014-11-01 21:23:15 -04:00
Miguel de Icaza 0afdce4e37 Merge pull request #1371 from martinjt/AddClientDisconnectedToken
Add ClientDisconnectedToken property to HttpResponseBase and Wrapper as ...
2014-11-01 20:50:48 -04:00
Miguel de Icaza 5c23f1e15d Set ReadEntityBodyMode default to Classic to force clients to use the old method
for reading the input stream.

According to the MSDN docs, if ReadEntityBodyMode returns "Classic" the code should use
the old method to read the input stream (HttpRequestBase.InputStream) which is fully
implemented in mono.

Manually applied patch from martinjt
2014-11-01 20:49:10 -04:00
Miguel de Icaza b11044a9a6 [asp.net] Implement the EventHandlerTaskAsyncHelper and HttpTaskAsyncHandler classes; Manually bring Pull Request 1365 from Kornel Pal 2014-11-01 20:48:12 -04:00
Miguel de Icaza e4d8f21cf6 Merge pull request #1163 from AerisG222/more_mvc_fixes
Add missing elements to allow MVC5.2 site to run
2014-11-01 20:36:49 -04:00
Atsushi Eno 661430fd1f [xml] XmlDocument.ReadNode() should not special case XmlTextReader.
Added test case that proves this change (by baulig).
2014-11-01 00:06:05 +08:00
Miguel de Icaza 3fd4901a23 Merge pull request #960 from ermshiperete/ShowHelp
[MWF] Partially implement Help.ShowHelp
2014-10-31 11:20:20 -04:00
João Matos 100ecb4f0f Merge pull request #1360 from madewokherd/winuncpath
File URI's without a host are not UNC paths on Windows.
2014-10-31 13:52:33 +00:00
Mark Probst 000c018169 [sgen] Add an explanatory comment about OOM. 2014-10-30 16:28:03 -07:00
Zoltan Varga f85a6bc77c [runtime] Fix the android build with ndk r10c. 2014-10-30 18:44:05 -04:00
Rodrigo Kumpera f05e658a2d Merge pull request #1381 from schani/fix-23401
Fix 23401
2014-10-30 18:43:36 -04:00
Zoltan Varga dbfee6a340 [aot] Remove some obsolete TODOs. 2014-10-30 17:56:19 -04:00
Zoltan Varga bf6fea51af [aot] Use the info->tramp_page_code_offsets array on arm as well. 2014-10-30 17:52:33 -04:00
Zoltan Varga 74d2172cd1 Fix a warning. 2014-10-30 17:28:31 -04:00
Zoltan Varga b40386d4f4 Add the -Qunused-arguments warning to CPPFLAGS too. 2014-10-30 17:28:22 -04:00
Zoltan Varga 7c162f952c [llvm] Remove the unused LLVM_MAJOR_VERSION/LLVM_MINOR_VERSION defines. 2014-10-30 17:23:18 -04:00
Alexander Köplinger 3c533de4a8 Add files that were forgotten in 6af7989628, which is the re-apply of 950d9c8a56 2014-10-30 22:16:35 +01:00
Mark Probst 5eec4d0c84 [sgen] Don't store pin queue addresses, only indexes. Fixes #24084.
The pin queue can get relocated as a side-effect of resizing when late
pinning happens, so we can't count on pointers into it to remain valid.
2014-10-30 13:34:44 -07:00
Mark Probst 45fc2e14fd [sgen] Fix crash in late pinning.
Our code assumed that late-pinned objects don't have a tag, but they
obviously have the pin tag, so use the safe function.
2014-10-30 13:30:26 -07:00
Mark Probst 03494c7387 [sgen] Don't loop endlessly when out of memory. 2014-10-30 13:30:26 -07:00
Ryan J. Melena ef13507552 Revert incorrect changes from commit 950d9c8a56
Correctly handle null value deserialization in non-generic Deserialize(string, Type) method.
2014-10-30 16:19:40 -04:00
Miguel de Icaza 6af7989628 Re-apply the patch, there isa fix for it 2014-10-30 16:19:07 -04:00
Zoltan Varga f269254917 [Mono.Data.Tds] Allow sending of text data longer than 4000 characters by using a different column type. Fixes #21172. 2014-10-30 14:39:44 -04:00
Miguel de Icaza 112079b844 Revert this patch, as it broke the test suite 2014-10-30 13:54:33 -04:00
Jonathan Pryor ac1dcc6ade [System.Core/Android] Update TimeZone database self test.
Add Makefile rules to automagically download the TimeZone database
from the Android target $(ADB_TARGET), and build the tzi.exe app.

	$ make android-dump-tzdata ADB_TARGET=-d
	# downloads timezone data into ./android/tzdb.
	# dumps timezone data into ./android/tzdata
	# builds ./tzi.exe

	# Show adjustment rules for a given timezone dump
	$ mono tzi.exe -i=tzdata/Asia/Amman

Add `tzi.exe -R` option to show the TimeZoneInfo.GetAdjustmentRules()
output for all encountered timezones.

Add `tzi.exe -o=PATH` option to dump the TimeZone data to disk for
interrogation.

Add `tzi.exe -i=PATH` option to read in the specified TimeZone data
file and dump the rules contained therein.

Update usage comments.
2014-10-30 12:42:37 -04:00
Zoltan Varga dacc3f8c5d Merge pull request #944 from ermshiperete/bug-novell-496138
Improve COM error handling
2014-10-29 19:06:05 -04:00
Zoltan Varga 6a738caa5a [corlib] Add some missing memory barriers to the ConcurrentQueue methods to order memory operations. Fixes #22788. 2014-10-29 17:14:10 -04:00
Zoltan Varga bd715a7c5e Merge pull request #1378 from DynamicDevices/ajl/warnings
[libgc] Eliminate warning about redefinition of GC_WIN32_THREADS
2014-10-29 15:03:31 -04:00
Miguel de Icaza c265540e76 Merge pull request #1337 from RyanMelenaNoesis/master
Additional JWT Security Token Support
2014-10-29 15:02:30 -04:00
Alexis Christoforides d585381555 Bump Mono version -> 3.12.1 2014-10-29 13:16:04 -04:00
Zoltan Varga dcdc8414df [llvm] Disable the extension of i8/i16 arguments to i32 on arm64, since the ios calling convention passes them differently than i32. Fixes #22800. 2014-10-29 12:55:31 -04:00
Alex J Lennon 41981cdca1 [libgc] Eliminate warning about redefinition of GC_WIN32_THREADS
Makefile defines GC_WIN32_THREADS as 1 but gc_config_macros was
redefining as defined but with no value.

Signed-off-by: Alex J Lennon <[email protected]>
2014-10-29 14:27:01 +01:00
Zoltan Varga 2e8f21d4f2 [llvm] Fix a regression caused by 6ec1ebf990. Do the direct call rewrite only if the caller and callee signature matches. 2014-10-28 23:30:44 -04:00
Zoltan Varga 7e8a11f888 [runtime] Disable the check for overlapping reference and non-reference fields, too much code depends on this to work. 2014-10-28 17:08:09 -04:00
Neale Ferguson 872e97cb30 Add OP_LREM_IMM support;Add implementation of mono_arch_get_delegate_virtual_invoke_impl 2014-10-28 14:48:45 -04:00
Marcos Henrich 36c9c006bc Merge pull request #1298 from esdrubal/uploadfileasync
Fixes missing ContentType on WebClient.UploadFileTaskAsync
2014-10-28 18:21:22 +00:00
Marcos Henrich 137718d9b4 Merge pull request #1321 from esdrubal/currentsystemtimezone
CurrentSystemTimeZone.GetUtcOffset now supports multiple DST periods.
2014-10-28 18:18:54 +00:00
Zoltan Varga 424d1cdc8b Merge pull request #1376 from StephenMcConnel/bug-24109
Zero out pointers to freed memory in AudioDevice
2014-10-28 13:40:28 -04:00
Stephen McConnel 328defdcde Zero out pointers to freed memory in AudioDevice
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=24109.
2014-10-28 12:10:43 -05:00
Alexis Christoforides e0dab7749a Merge pull request #1373 from michaldobrodenka/master
Fix for random ObjectDiposedException in DispatcherCB class when connecting
2014-10-28 12:48:14 -04:00
João Matos e4b431e3a5 Merge pull request #1369 from DynamicDevices/ajl/appveyor
[CI] Add appveyor.yml configuration file to support Windows build
2014-10-28 16:47:19 +00:00
Zoltan Varga 039ffcafca Merge pull request #1374 from directhex/master
Add missing header file to s390x_sources
2014-10-28 01:08:37 -04:00
Alexis Christoforides 717c6de1cc [System.IO] Phase 2 of revamping KeventWatcher (FileSystemWatcher implementation for OS X/kqueue). Dozens of bugs and reliability issues fixed.
FileSystemWatcher.cs: Fixed multicast events.
SearchPattern.cs :  Fixed issue where case insensitivity was not being honored.
KeventWatcher.cs:
* Fixed several race conditions
* Fixed file descriptor duplication & leaks
* thread-safe/cleaner state transitions for watcher, and much cleaner stopping
* Now uses fsw.Filter parameter and respects IncludeSubdirectories = false. Use fsw.Filter to watch very large trees
* Added more error handling + OnError event
* Lots of behavior/reliability fixes and optimizations for Monitor() loop
* Fixed kevent/timespec struct definitions (for 64-bit build)
2014-10-27 21:20:16 -04:00
Cody Russell 13fd028ee8 [System.IO] Reimplemented much of the kqueue-based file watcher so that watching subdirectories works.
Reworked a lot of the internals of the kqueue FileSystemWatcher. There
is now a separate thread and a separate kqueue for each FileSystemWatcher
object.

https://bugzilla.xamarin.com/show_bug.cgi?id=16259
2014-10-27 21:20:16 -04:00
Zoltan Varga 80ca0394cd [jit] Fix the decomposition of OP_IREM_IMM on arm64. 2014-10-27 20:55:51 -04:00
Jo Shields 8b80178115 Add missing header file to s390x_sources, otherwise a required header file for s390x builds is missing from tarball builds. 2014-10-27 22:51:47 +00:00
Ludovic Henry 447975c12c [threadpool] Fix race condition on threads variable cleanup 2014-10-27 12:28:19 -04:00
michaldobrodenka 7174b069cf Fix for ObjectDiposedException in DispatcherCB class
https://bugzilla.xamarin.com/show_bug.cgi?id=23700
2014-10-27 13:28:59 +01:00
Martin Thwaites b7b94a8024 Add ClientDisconnectedToken property to HttpResponseBase and Wrapper as default None 2014-10-26 23:42:54 +00:00
Miguel de Icaza 45d831259b Merge pull request #1368 from martinjt/SuppressFormsAuthRedirect
Implement the SuppressFormsAuthenticationRedirect properties
2014-10-26 18:53:05 -04:00
Zoltan Varga c170351fde Merge pull request #1366 from DynamicDevices/ajl/win32build
Fix Windows build by including wstcpip.h before winsock.h is included
2014-10-26 11:17:39 -04:00
Mike Morano d35449e99b Add/update missing bits in order to support MVC5.2. 2014-10-26 11:14:08 -04:00
Martin Thwaites e55e70f8c7 Implement the SuppressFormsAuthenticationRedirect properties 2014-10-26 14:55:41 +00:00
Zoltan Varga 5a234d5d16 Merge pull request #1367 from kornelpal/dolt-mingw32
[build] Enable dolt on mingw32
2014-10-26 10:07:51 -04:00
Kornel Pal 0635a83c89 [build] Enable dolt on mingw32 2014-10-26 14:49:45 +01:00
Alex J Lennon ff1817f017 [CI] Add appveyor.yml configuration file to support Windows build
Adds a configuration file to facilitate build of Mono with Cygwin
on Appveyor Windows-based build workers.

Dependencies are installed on a clean Appveyor build image for
each build and the result of the 'make install' step is stored
as a build output 'artifact' for further testing or deployment.

Signed-off-by: Alex J Lennon <[email protected]>
2014-10-26 14:06:08 +01:00
Alex J Lennon d663c9f65c Fix Windows build by including wstcpip.h before winsock.h is included
Error generated by socket-io.c was:

/usr/i686-pc-mingw32/sys-root/mingw/include/ws2tcpip.h:38:2:
error: #error "ws2tcpip.h is not compatible with winsock.h.
Include winsock2.h instead."

Signed-off-by: Alex J Lennon <[email protected]>
2014-10-26 12:49:59 +01:00
Stone Gislason f1108aabba [eval] Fix delegate; add caching for PrepareEmit
The delegate class did not use the internal cache flag as other type definitions which caused the next evaluation to fail.
2014-10-26 01:15:37 +01:00
Zoltan Varga 8f9a74f2f6 Merge pull request #1364 from muojp/addDotNet45_SocketCtor
[System] Added missing ctor to Socket for initializing dual-mode socket
2014-10-25 17:24:53 -04:00
Kei Nakazawa dc30595ace [System] Added missing ctor to Socket for initializing dual-mode socket
- Ref: https://bugzilla.xamarin.com/show_bug.cgi?id=20048
 - Mono currently doesn't support 2-args Socket ctor added in .NET 4.5
 - Absence of this ctor prevents KestrelHttpServer (web server for
   ASP.NET vNext: https://github.com/aspnet/KestrelHttpServer ) test
   code from working
 - I hesitated to put IPv4 only implementation, but full dual stack
   (IPv4/v6) support would need bunch of works to be done. So, I pinned
   supported protocol of new ctor to IPv4. Also, I filed v4/v6 support
   issue as a MonoTODO entry inside the source code.
2014-10-26 02:57:22 +09:00
Eberhard Beilharz 5d869be794 [MWF] Improve ellipsis handling
- Don't subtract room for ellipsis. Ellipsis should be
  handled by the renderer so we shouldn't reserve space for it.
  Otherwise we end up not getting ellipsis (because the renderer
  thinks there is enough space available), or we don't use up the
  available space.
- Don't allow text to go below button if we want to show ellipsis.
2014-10-24 22:38:56 +02:00
Eberhard Beilharz ab361102db [MWF] Display visual feedback on pressed button (#23869)
When a button is pressed the image and the text needs to be rendered one
pixel to the right and to the bottom so that there is some visual
feedback of the button press. Previously this was only the case if
TextImageRelation was set to Overlay.
2014-10-24 22:26:59 +02:00
Jonathan Pryor f7fd52ad18 [mscorlib/Android] TimeZoneInfo.Local.Id should be "Local".
On Mono/.NET, TimeZoneInfo.Local has a TimeZoneInfo.Id value of
"Local" and a TimeZoneInfo.DisplayName value of "Local":

	$ csharp
	csharp> TimeZoneInfo.Local.Id;
	"Local"
	csharp> TimeZoneInfo.Local.DisplayName;
	"Local"

That isn't the case on Xamarin.Android, which returns the timezoneinfo
ID value from both DisplayName and Id, e.g. TimeZoneInfo.Local could
have Id and DisplayName values of "Australia/Sydney".

Rework things so that the TimeZoneInfo.Id and TimeZoneInfo.DisplayName
properties return "Local" on Xamarin.Android for the instance returned
from TimeZoneInfo.Local, just like normal Mono/.NET does.
2014-10-24 15:56:13 -04:00
Miguel de Icaza 84472a332e Merge pull request #1348 from ermshiperete/ImproveButtonTextLayout
[MWF] Improve button text layout
2014-10-24 14:44:29 -04:00
Miguel de Icaza c19e821763 Merge pull request #1357 from emergent-design/master
Include /dev/ttyACM in the search for serial port devices
2014-10-24 14:43:49 -04:00
Miguel de Icaza e867622025 Merge pull request #1362 from echampet/dupfix
Webapp stuck with "Key duplication when adding: httpModules"
2014-10-24 14:43:00 -04:00
Etienne CHAMPETIER c46234bf0c HttpApplication: if there is an exception in InitOnce, output it on the Console
Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-10-24 16:17:10 +02:00
Etienne CHAMPETIER 9b7b75d7ec WebConfigurationManager: simplify call to ConfigurationSection.GetRuntimeObject ()
this call come from an obfuscation contest :) ?

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-10-24 16:17:01 +02:00
Etienne CHAMPETIER 3fd3541704 WebConfigurationManager: protect GetSection
all public static should be thread-safe

Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-10-24 16:16:55 +02:00
Etienne CHAMPETIER 8630afbd9b HttpApplication: set StatusCode = 500 when we send an exception to the client
Signed-off-by: Etienne CHAMPETIER <[email protected]>
2014-10-24 16:16:47 +02:00
Jo Shields 8da186ea62 Merge pull request #1361 from akoeplinger/fix-forms
[MWF] Use overload of Marshal.PtrToStringUni that reads up until the first null instead of explicitly specifying length
2014-10-24 13:23:15 +01:00
Atsushi Eno 976be34045 [xml] XmlTextReader: Value was wrong after ReadAttributeValue() on xml declaration. 2014-10-24 12:20:09 +08:00
Zoltan Varga e6b335e7f7 [runtime] Remove build system support for the interpreter. 2014-10-23 23:01:28 -04:00
Atsushi Eno 3d9a2b7175 [relaxng] fix default namespace handling in compact syntax.
Also had to disable RNC tests that depended on vanished web resource...
2014-10-24 07:14:58 +08:00
Alexander Köplinger ede4f3a8c6 [MWF] Use overload of Marshal.PtrToStringUni that reads up until the first null instead of explicitly specifying length
This fixes the two tests broken by 0ac61b03fc
2014-10-24 00:11:03 +02:00
Vincent Povirk dd68e53636 File URI's without a host are not UNC paths on Windows.
NUnit breaks when these URI's are treated as UNC paths, so I have no way of
running the tests on Windows without this change to see if it broke anything.
Not all URI tests pass, but the ones that fail seem unrelated to my change.

On Unix, the tests all work, but of course on Unix this is a no-op.

This commit licensed as MIT/X11.
2014-10-23 16:12:30 -05:00
Zoltan Varga e1da8e304d [jit] Use NULLIFY_INS () to nullify instructions and use MONO_INST_NEW to create phi node instructions to avoid asserts in the spill pass. Fixes #24006. 2014-10-23 14:47:19 -04:00
Zoltan Varga 2d3dd5a40a [runtime] Fix a regression introduced by 8d9f05ea9a. Only do the check for overlapping fields when the size of the type is known. 2014-10-23 14:04:32 -04:00
Zoltan Varga 87f4b14752 [jit] Print out methods which failed to JIT when using --regression. 2014-10-23 13:56:38 -04:00
Ludovic Henry 916abe5f57 [bcl] Restore ThreadPool number of threads configuration after each test 2014-10-23 11:00:47 -04:00
Zoltan Varga 8d9f05ea9a [runtime] Add checks for overlapping reference and non-reference fields when using explicit layout. Fixes #23954. 2014-10-22 18:20:41 -04:00
Zoltan Varga de8ca8fdf6 Merge pull request #1358 from madewokherd/win32build
Fix win32 build.
2014-10-22 17:47:48 -04:00
Zoltan Varga 6ec1ebf990 [llvm] Rewrite the way direct calls are made between llvm methods. Previously all calls were made to plt entries and the plt entry symbols were aliased to point to the corresponding method if the method was directly callable using the .set assembler directive. This doesn't seem to work with newer LLVM/CLANG versions, so do this completely on the LLVM side using Value::replaceAllUsesWith (). Fixes #23976. 2014-10-22 17:14:00 -04:00
Ludovic Henry a142d922aa [threadpool] Fix deadlock/starvation of the thread pool
The issue was with the new heuristic of the thread pool which would not create new threads, leading to deadlock between dependent tasks.
The fix is to check if every worker threads are sleeping, waiting or joining, and if that's the case, then we create a new thread because we might be in the case where the tasks being currently run depends on one still being enqueued in the cq or one of the wsq.

The following tests would previously fail :

1) MonoTests.System.Threading.Tasks.TaskTests.DoubleWaitTest :   #1
  Expected: True
  But was:  False

at MonoTests.System.Threading.Tasks.TaskTests.<DoubleWaitTest>m__27 () [0x00077] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:800
at MonoTests.System.Threading.Tasks.ParallelTestHelper.Repeat (System.Action action, Int32 numRun) [0x00007] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/ParallelTestHelper.cs:48
at MonoTests.System.Threading.Tasks.TaskTests.DoubleWaitTest () [0x00000] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:790
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

2) MonoTests.System.Threading.Tasks.TaskTests.HideSchedulerTest :   #1
  Expected: True
  But was:  False

at MonoTests.System.Threading.Tasks.TaskTests.HideSchedulerTest () [0x0003d] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1914
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

3) MonoTests.System.Threading.Tasks.TaskTests.WaitAll_TimeoutWithExceptionsAfter :   #1
  Expected: True
  But was:  False

at MonoTests.System.Threading.Tasks.TaskTests.WaitAll_TimeoutWithExceptionsAfter () [0x00070] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:317
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

4) MonoTests.System.Threading.Tasks.TaskTests.WaitAll_TimeoutWithExceptionsBefore :   #1
  Expected: True
  But was:  False

at MonoTests.System.Threading.Tasks.TaskTests.WaitAll_TimeoutWithExceptionsBefore () [0x00070] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:341
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

5) MonoTests.System.Threading.Tasks.TaskTests.WaitAnyTest :   #3
  Expected: not -1
  But was:  -1

at MonoTests.System.Threading.Tasks.TaskTests.<WaitAnyTest>m__0 () [0x00026] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:142
at MonoTests.System.Threading.Tasks.ParallelTestHelper.Repeat (System.Action action, Int32 numRun) [0x00007] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/ParallelTestHelper.cs:48
at MonoTests.System.Threading.Tasks.ParallelTestHelper.Repeat (System.Action action) [0x00000] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/ParallelTestHelper.cs:42
at MonoTests.System.Threading.Tasks.TaskTests.WaitAnyTest () [0x00000] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:128
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

6) MonoTests.System.Threading.Tasks.TaskTests.WaitChildTestCase :   #0b
  Expected: True
  But was:  False

at MonoTests.System.Threading.Tasks.TaskTests.<WaitChildTestCase>m__25 () [0x0006d] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:705
at MonoTests.System.Threading.Tasks.ParallelTestHelper.Repeat (System.Action action, Int32 numRun) [0x00007] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/ParallelTestHelper.cs:48
at MonoTests.System.Threading.Tasks.TaskTests.WaitChildTestCase () [0x00000] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:684
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230

7) MonoTests.System.Threading.Tasks.TaskTests.WaitingForChildrenToComplete :   #3
  Expected: True
  But was:  False

at MonoTests.System.Threading.Tasks.TaskTests.WaitingForChildrenToComplete () [0x00048] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:734
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /Users/ludovic/Xamarin/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2014-10-22 17:09:11 -04:00
Vincent Povirk 21656fd89f Fix win32 build.
This commit licensed as MIT/X11.
2014-10-22 15:19:39 -05:00
Zoltan Varga bb86670c28 [bcl] Fix races in task tests. 2014-10-22 14:22:17 -04:00
Dan Parnham 87e7f1c2d7 Included /dev/ttyACM in the search for serial port devices, since CDC ACM is a standard
protocol for emulating serial ports over USB.
2014-10-22 16:21:20 +01:00
Ludovic Henry e15463e38a [sgen] Add GC max collection time counter 2014-10-21 15:28:59 -07:00
Ludovic Henry c4f72def57 [sgen] Add memory governor allocated size counter 2014-10-21 15:28:59 -07:00
Ludovic Henry 2a14bc4dad [sgen] Fix assertion error on 32bits 2014-10-21 10:03:31 -04:00
Jo Shields 63eb94b524 Merge pull request #1356 from martinjt/ReadEntityV2
Removed erroneously added property to HttpRequestBase in pull #1353
2014-10-21 14:17:36 +01:00
Zoltan Varga 066bdb9c24 [jit] Add some micro-optimizations to speed up the AOT compiler. 2014-10-20 22:51:49 -04:00
Zoltan Varga a26b297e11 Fix a warning. 2014-10-20 20:49:01 -04:00
Ludovic Henry 18cd82b380 [sgen] Adjust internal allocator block size to slot size.
The internal allocator used size segregated blocks which were always
16k large.  Since we have quite a few different size classes this led
to a lot of allocation even for very small programs.

We now use block sizes that are determined by the slot size and are as
small as possible.  They're power-of-two multiples of the page size,
so we end up with blocks of 4k, 8k and 16k.
2014-10-20 16:24:06 -07:00
Ludovic Henry 1daac38948 [sgen] Add assertion on power of 2 for internal allocator section size 2014-10-20 16:24:05 -07:00
Ludovic Henry 4619f9f070 [sgen] Add internal allocator default sizes usage statistic 2014-10-20 16:24:05 -07:00
Ludovic Henry d3788f892f [sgen] Utility function to compute number of unfaulted pages. 2014-10-20 16:24:05 -07:00
Ludovic Henry 26364535a0 [sgen] Cleanup some allocation code 2014-10-20 16:24:05 -07:00
Zoltan Varga 639413ef89 Fix the build after the signals changes. 2014-10-20 19:19:27 -04:00
Zoltan Varga 6716d439e9 [jit] Remove some unused definitions. 2014-10-20 18:22:40 -04:00
Zoltan Varga c3bd8334a3 Fix a typo. 2014-10-20 18:08:19 -04:00
Zoltan Varga 8410c9bb00 [runtime] Clean up the signal handling code by moving the signal handler signature definitions to mono-signal-handler.h and using them everywhere. 2014-10-20 18:07:24 -04:00
Ryan Melena 950d9c8a56 Additional JWT Security Token Support
Fix line endings.  Add test for JavaScriptSerializer.Deserialize(string input, Type targetType).
2014-10-20 16:00:16 -05:00
Mark Probst 5ae9f7d93f [sgen] Fix allowance calculation.
The formula for calculating allowance was not only overly complicated
but completely broken, which resulted in the allowance always being the
minimum (4 times the nursery size).  That resulted in too frequent garbage
collections when the heap grew larger.

Now we do something very similar to what Boehm does: Allow the heap
to grow by a third before the next major collection happens.
2014-10-20 13:40:50 -07:00
Martin Thwaites ce348f12da Removed erroneously added property to HttpRequestBase in pull #1353 2014-10-20 21:34:27 +01:00
Miguel de Icaza 643ad918e0 Merge pull request #1354 from martinjt/RequestAbort
Implement Request.Abort()
2014-10-20 10:04:35 -04:00
Miguel de Icaza e9ef2be437 Merge pull request #1353 from martinjt/ReadEntityBodyMode
Implement the ReadEntityBodyMode properties
2014-10-20 10:04:00 -04:00
Martin Thwaites 7eeb7f14f3 Implement Request.Abort() 2014-10-18 22:31:14 +01:00
Martin Thwaites 0db6c1418f Implement the ReadEntityBodyMode properties 2014-10-18 21:55:47 +01:00
Rodrigo Kumpera 6edd8bf89e [runtime] Don't define ucontext_t for android if PLATFORM is not android. 2014-10-17 15:37:14 -04:00
Zoltan Varga b67c4fe1c5 Fix a warning. 2014-10-17 12:14:26 -04:00
Zoltan Varga 36bfeec103 Fix a warning. 2014-10-16 18:35:55 -04:00
Zoltan Varga 77f9b3dc10 Fix a warning. 2014-10-16 17:11:19 -04:00
Zoltan Varga ddb83ce172 [bcl] Add an AppDomain.DoUnhandledException () internal method which can be used to invoke the UnhandledException event handlers. 2014-10-16 16:03:49 -04:00
Zoltan Varga 6f53824f35 [io-layer] Make _wapi_shm_enabled () inline so more code can be optimized away if shared handles are disabled. 2014-10-16 13:53:56 -04:00
Zoltan Varga 97866fc145 [io-layer] Remove more dead process code, add comments. 2014-10-16 12:59:11 -04:00
Paolo Molaro c5d4e39545 [jit] Fix -O=precomp option to skip generic methods and not crash. 2014-10-16 10:40:45 -04:00
Eberhard Beilharz 1189d3706a [MWF] Use full available height for text
This is especially relevant if we have to shrink the width because of
padding. In this case it is possible that MeasureString calculated that
the string would fit in one line, but because of padding we reduce the
width. If the button is large enough we want to display additional lines
even if MeasureString told us we only need one line.
2014-10-16 14:09:24 +02:00
Eberhard Beilharz 885b065e06 [MWF] Use full width for measuring text
Previously we applied the padding twice.
2014-10-16 14:08:53 +02:00
Zoltan Varga 45deb48384 [io-layer] Allocate the process name dynamically to make WapiHandle_process smaller. 2014-10-15 18:56:01 -04:00
Zoltan Varga b0077e8c2a [io-layer] Remove WapiHandle_process.self field, its no longer needed. 2014-10-15 18:50:09 -04:00
Zoltan Varga 1784575ef2 Include ucontext.h on android if it exists. 2014-10-15 17:22:08 -04:00
Zoltan Varga 5a4cd56c04 [runtime] Add a 'shared_handles' --enable-minimal option, same as --disable-shared-handles. 2014-10-15 17:18:21 -04:00
Zoltan Varga 04967b8dba Fix a warning. 2014-10-15 17:17:41 -04:00
Zoltan Varga ba6a479e5d [io-layer] Remove another usage of getdtablesize (). 2014-10-15 16:52:56 -04:00
Zoltan Varga 179fbf4b23 [runtime] Use getrlimit () to obtain the size of the fd table instead of getdtablesize () which is getting deprecated in Android. 2014-10-15 16:45:19 -04:00
Zoltan Varga 8e6ae13499 [io-layer] More coding convention/formatting fixes. 2014-10-15 16:28:47 -04:00
Zoltan Varga b58da19a66 [corlib] Implement MonoGenericClass:GetCustomAttributes () for created types. Fixes #23769. 2014-10-15 15:21:53 -04:00
Zoltan Varga 2ec479b762 [io-layer] Fix the linux build. 2014-10-15 15:08:54 -04:00
Zoltan Varga bf87077ac9 [io-layer] Make process handles non-shared. Fixes #23423. 2014-10-15 15:01:31 -04:00
João Matos e78e74cc1c Fixed linking on MinGW. 2014-10-15 14:37:25 -04:00
Zoltan Varga 727f8fe28d [jit] Fix the return of vtypes containing a single fp member from pinvoke methods on osx/x86. Fixes #23813. 2014-10-15 12:54:16 -04:00
Rodrigo Kumpera a9f31e63db [build] Rework the buildver dep check. 2014-10-14 18:12:08 -04:00
Zoltan Varga 30ed59ce3e Revert "Fixed buildver generated headers automake dependency tracking."
This reverts commit 8f41328a78.

Revert this for now as it breaks the parallel build.
2014-10-14 15:59:24 -04:00
Zoltan Varga 60d10d5464 Merge pull request #1341 from smortex/patch-2
Fix build on FreeBSD
2014-10-14 14:12:19 -04:00
Romain Tartière 54f5b48d44 Protect #include <unistd.h>
Protect inclusion as reported by @vargaz
2014-10-14 20:03:29 +02:00
Zoltan Varga 88ed113252 Merge pull request #1340 from smortex/patch-1
Add missing header
2014-10-14 13:49:53 -04:00
Romain Tartière 855bb5648b Fix build on FreeBSD
pid_t (used at line 216) is available on Linux in `unistd.h` and so on on FreeBSD (`sys/types.h` to be precise, included in `unistd.h`), yet on FreeBSD this header is not automatically included.
2014-10-14 19:48:31 +02:00
Romain Tartière 55fc7c277f Add missing header 2014-10-14 19:42:44 +02:00
Zoltan Varga 123d9a05db Merge pull request #1339 from tritao/master
Fixed buildver generated headers automake dependency tracking.
2014-10-14 12:54:48 -04:00
João Matos 8f41328a78 Fixed buildver generated headers automake dependency tracking.
We now include buildver-sgen/boehm.h in BUILT_SOURCES to have proper dependency tracking for these generated files.

Fixes the MinGW OSX cross build.
2014-10-14 11:46:36 -04:00
Zoltan Varga 4cba98f8c0 [runtime] Fix an SRE assert. Fixes #19039. 2014-10-13 18:39:56 -04:00
Marcos Henrich 48d05afa0e DataTabe.ReadXmlSchema now handles non Schema base element. Fixes #22501. 2014-10-13 16:15:23 -04:00
Marcos Henrich 9e5d94e72b Test DataTable.ReadXmlSchema with non Schema base element. Covers #22501. 2014-10-13 16:15:03 -04:00
Zoltan Varga 3b484c1fcb Merge pull request #1335 from nlhepler/master
Fix relocatable mono
2014-10-13 13:56:29 -04:00
Lance Hepler e3abaa85d8 Fix relocatable mono 2014-10-13 09:32:30 -07:00
Marek Safar 10b5567b3d [mcs] A pointer-type may be used as the type of a volatile field. Fixes #23770 2014-10-13 12:28:08 +02:00
Jo Shields f600c130ef Add a third AOT location, alongside ~/.mono/aot-cache and the assembly dir
Unless running in on-demand AOT mode, the AOT runtime will look for an AOT cache alongside the assembly (e.g. /usr/lib/mono/4.5/mscorlib.dll.so).

This patch adds a second search path to the non-on-demand AOT loader, /usr/lib/mono/aot-cache/ARCHITECTURE/path/to/assembly.dll.so

This new structure makes it possible to have more than one Mono architecture on a system, sharing assemblies but not sharing AOT caches (for example, i386 and amd64 Mono on the same system, for different needs)
2014-10-13 09:24:07 +01:00
Zoltan Varga 6e4ab1d3eb [runtime] Remove some dead code from the io-layer process code, avoid mixing ifdefs with control flow. 2014-10-12 18:03:02 -04:00
Marek Habersack abb760f376 Merge pull request #1333 from joero74/ignore-missing-host
Prevent NullReferenceException in case of missing Host
2014-10-10 18:36:50 +02:00
Joerg Rosenkranz f927c83afe Prevent NullReferenceException in case of missing Host
Do not throw a NullReferenceException when Host variable is not set.
Ignore the calls to RegisterObject and UnregisterObject instead.
2014-10-10 16:23:22 +02:00
Zoltan Varga 5f2f74f5de [runtime] Rewrite io-layer process code to reduce duplication and make it conform to the mono coding conventions. 2014-10-09 21:46:01 -04:00
Zoltan Varga 02be6a4f28 [runtime] Use explicit initialization in the io-layer process code instead of pthread_once (). Get rid of the WAPI_PROCESS_HANDLE_OFFSET code which was only used in shared mode. 2014-10-09 16:49:13 -04:00
Zoltan Varga e1af46ef45 [runtime] More win32 build fixes. 2014-10-09 16:21:56 -04:00
Zoltan Varga a487812e61 runtime] Really use WinXP SP2 as the minimum version on the msvc builds too. Update project files with newly
added/removed sources.
2014-10-09 15:51:49 -04:00
Zoltan Varga eea8080dad [runtime] Use WinXP SP2 as the minimum version on the msvc builds too. 2014-10-09 15:20:06 -04:00
Mark Probst a68a793383 Merge pull request #1326 from BrzVlad/master
[sgen] Fix pointer access.
2014-10-09 11:43:03 -07:00
Zoltan Varga 92d86659ca [runtime] Remove pre WinXP SP2 windows support code. 2014-10-09 14:04:31 -04:00
Zoltan Varga 4109ab0ee4 [runtime] Use the functionality in mono-proclib.c to get the current pid, remove duplicate code from the io-layer. 2014-10-09 14:04:31 -04:00
Zoltan Varga 43fd14b9d8 [runtime] Use the functionality in mono-proclib.c to enumerate processes, remove duplicate code from the io-layer. 2014-10-09 14:04:31 -04:00
Alexis Christoforides e92af12248 Fix oops in DataContractJsonSerializer fix 2014-10-08 22:04:34 -07:00
Zoltan Varga 17edd267ab [bcl] Use List instead of ArrayList () in a few places. 2014-10-08 16:12:01 -04:00
Zoltan Varga c33600f57d [bcl] Free strings allocated using Marshal.SecureStringToBSTR () using Marshal.ZeroFreeBSTR (). 2014-10-08 15:12:35 -04:00
Marek Safar 114a27e57c Merge pull request #1330 from esdrubal/blockingcollection
Improved BlockingCollection.AddAny.
2014-10-08 15:02:54 -04:00
Ludovic Henry 98ce3f76b2 [threaddpool] Fix deadlock in thread pool with monitor thread (2nd attempt)
Because the monitor thread was not marked as background thread, remove_and_abort_threads (threads.c:2807) would mark it as needed to be waited to shutdown the runtime, and wait_for_tids (threads.c:2652) would then wait indefinitely for it to finish. The issue was that the monitor was waiting on the semaphore monitor_sem, and thus would never exit.

Thread 7 (Thread 0x1c13 of process 99776):
#0  0x00007fff86590a56 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00000001003cc03a in mono_sem_wait (sem=0x1004f7f50, alertable=0) at mono-semaphore.c:103
#2  0x00000001002cef41 in monitor_thread (unused=0x0) at threadpool.c:898
#3  0x00000001002cb78f in start_wrapper_internal (data=0x10500abf0) at threads.c:657
#4  0x00000001002cb4a1 in start_wrapper (data=0x10500abf0) at threads.c:704
#5  0x00000001003d61d4 in inner_start_thread (arg=0x7fff5fbfe500) at mono-threads-posix.c:84
#6  0x00007fff8e7c9899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib
#7  0x00007fff8e7c972a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib
#8  0x00007fff8e7cdfc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x1503 of process 99776):
#0  0x00007fff86594716 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff8e7cbc3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib
#2  0x000000010039cfaa in _wapi_handle_timedwait_signal_handle (handle=0xa55, timeout=0x0, alertable=1, poll=0) at handles.c:1595
#3  0x000000010039d03d in _wapi_handle_wait_signal_handle (handle=0xa55, alertable=1) at handles.c:1540
#4  0x00000001003b7ba3 in WaitForSingleObjectEx (handle=0xa55, timeout=4294967295, alertable=1) at wait.c:194
#5  0x00000001003b865d in WaitForMultipleObjectsEx (numobjects=1, handles=0x7fff5fbff1f8, waitall=1, timeout=4294967295, alertable=1) at wait.c:516
#6  0x00000001002c75df in wait_for_tids (wait=0x7fff5fbff1f8, timeout=4294967295) at threads.c:2658
#7  0x00000001002c70e5 in mono_thread_manage () at threads.c:2951
#8  0x00000001000d551b in mono_main (argc=6, argv=0x7fff5fbff9e8) at driver.c:2021
#9  0x0000000100001bd1 in mono_main_with_options (argc=6, argv=0x7fff5fbff9e8) at ./main.c:91
#10 0x00000001000017d3 in main (argc=6, argv=0x7fff5fbff9e8) at ./main.c:122

Thanks @akoeplinger for the help debugging
2014-10-08 14:39:18 -04:00
Marcos Henrich 54844b08ef Refactored AddToAny and TakeFromAny to reuse code. 2014-10-08 12:59:42 +01:00
Marcos Henrich 7724a608a5 Improved BlockingCollection.AddAny. Fixes #22775.
AddAny no longer consumes OperationCanceledException.
AddAny no longer blocks while adding an item to the first collection when its full.
2014-10-08 12:16:36 +01:00
Marcos Henrich 0e13745ec2 Test BlockCollection.AddAny. Covers #22775. 2014-10-08 11:58:26 +01:00
Marcos Henrich 00c918e0a9 BlockingCollection.Add was adding one more item than it should. 2014-10-08 11:51:59 +01:00
Marcos Henrich 7e034defbc Test that BlockingCollection.Add blocks when there is no more space. 2014-10-08 10:41:14 +01:00
Zoltan Varga f51b9a4bb2 [jit] Extract the ctor calling code from the NEWOBJ implementation into a separate function. 2014-10-07 20:44:28 -04:00
Zoltan Varga c01afa20e8 [jit] Clean up the jit failure handling code a bit, move the the bulk of the eror handling macros into functions, unify the cleanup code at the end of mono_method_to_ir (). 2014-10-07 20:21:09 -04:00
Alexis Christoforides 71e152accc [bcl] Implement KnownTypes for DataContractJsonSerializer. Fixes #23058 and polymorphism support.
Also discarded old __type hint behavior in JsonSerializationReader that potentially allowed any loaded type to be instantiated.
2014-10-07 16:24:41 -07:00
Alexis Christoforides fbea921536 [tests] Add tests for Bug #23058 and polymorphism/known types in DataContractJsonSerializer. 2014-10-07 16:24:41 -07:00
Ludovic Henry 478f99f398 [threaddpool] Fix deadlock in thread pool with monitor thread
Because the monitor thread was not marked as background thread, remove_and_abort_threads (threads.c:2807) would mark it as needed to be waited to shutdown the runtime, and wait_for_tids (threads.c:2652) would then wait indefinitely for it to finish. The issue was that the monitor was waiting on the semaphore monitor_sem, and thus would never exit.

Thread 7 (Thread 0x1c13 of process 99776):
#0  0x00007fff86590a56 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00000001003cc03a in mono_sem_wait (sem=0x1004f7f50, alertable=0) at mono-semaphore.c:103
#2  0x00000001002cef41 in monitor_thread (unused=0x0) at threadpool.c:898
#3  0x00000001002cb78f in start_wrapper_internal (data=0x10500abf0) at threads.c:657
#4  0x00000001002cb4a1 in start_wrapper (data=0x10500abf0) at threads.c:704
#5  0x00000001003d61d4 in inner_start_thread (arg=0x7fff5fbfe500) at mono-threads-posix.c:84
#6  0x00007fff8e7c9899 in _pthread_body () from /usr/lib/system/libsystem_pthread.dylib
#7  0x00007fff8e7c972a in _pthread_start () from /usr/lib/system/libsystem_pthread.dylib
#8  0x00007fff8e7cdfc9 in thread_start () from /usr/lib/system/libsystem_pthread.dylib
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x1503 of process 99776):
#0  0x00007fff86594716 in ?? () from /usr/lib/system/libsystem_kernel.dylib
#1  0x00007fff8e7cbc3b in _pthread_cond_wait () from /usr/lib/system/libsystem_pthread.dylib
#2  0x000000010039cfaa in _wapi_handle_timedwait_signal_handle (handle=0xa55, timeout=0x0, alertable=1, poll=0) at handles.c:1595
#3  0x000000010039d03d in _wapi_handle_wait_signal_handle (handle=0xa55, alertable=1) at handles.c:1540
#4  0x00000001003b7ba3 in WaitForSingleObjectEx (handle=0xa55, timeout=4294967295, alertable=1) at wait.c:194
#5  0x00000001003b865d in WaitForMultipleObjectsEx (numobjects=1, handles=0x7fff5fbff1f8, waitall=1, timeout=4294967295, alertable=1) at wait.c:516
#6  0x00000001002c75df in wait_for_tids (wait=0x7fff5fbff1f8, timeout=4294967295) at threads.c:2658
#7  0x00000001002c70e5 in mono_thread_manage () at threads.c:2951
#8  0x00000001000d551b in mono_main (argc=6, argv=0x7fff5fbff9e8) at driver.c:2021
#9  0x0000000100001bd1 in mono_main_with_options (argc=6, argv=0x7fff5fbff9e8) at ./main.c:91
#10 0x00000001000017d3 in main (argc=6, argv=0x7fff5fbff9e8) at ./main.c:122
2014-10-07 18:15:04 -04:00
Zoltan Varga ac2d851398 [jit] Reduce code duplication in the inlining code. 2014-10-07 15:43:17 -04:00
Marek Safar c74ca49869 Merge pull request #1329 from esdrubal/httputility
HttpQSCollection.ToString now url encodes values.
2014-10-07 14:31:50 -04:00
Alexis Christoforides c677be429f Merge pull request #1327 from ermshiperete/Xamarin-23168
[MWF] Pass graphics when calculating button text and image
2014-10-07 11:30:52 -07:00
Jonathan Pryor 8b90653ff3 [System.Core/Android] Fix standalone unit tests.
Commit 5564dad1 broke the self-test (for testing on the developer
machine, not an Android target). Fixup the comment so that appropriate
data is grabbed and used for testing, and improve
AndroidTimeZones.GetDefaultTimeZoneName() so that the default timezone
ID can be specified via the __XA_OVERRIDE_TIMEZONE_ID__ environment
variable for testing.

Finally, demonstrate TimeZoneInfo.GetUtcOffset(DateTime) use so that I
can get better insight into the timezone data stored within the
database:

	$ __XA_OVERRIDE_TIMEZONE_ID__=America/New_York ANDROID_ROOT=`pwd` ANDROID_DATA=`pwd` mono --debug tzi.exe --offset=1969-01-01
	Using DateTime Offset: 1/1/1969 12:00:00 AM
	DB type: System.AndroidTzData
	name=Africa/Abidjan                           Africa/Abidjan                          From Offset: 00:00:00
	name=Africa/Accra                             Africa/Accra                            From Offset: 00:00:00
	name=Africa/Addis_Ababa                       Africa/Addis_Ababa                      From Offset: 03:00:00
	...
2014-10-07 13:59:49 -04:00
Marcos Henrich 843fe0b3c6 HttpQSCollection.ToString now url encodes values. Fixes 22557. 2014-10-07 18:50:45 +01:00
Marcos Henrich 6abce1e8d8 Test HttpQSCollection.ToString url encoding. Covers #22557. 2014-10-07 18:45:50 +01:00
Zoltan Varga 10c2cc4d3f [runtime] Move the MonoJit/MonoJitInfoTable code to a separate file from domain.c. 2014-10-07 13:26:12 -04:00
Zoltan Varga 7cfd463841 [runtime] Factor out some duplicate code from the MonoJitInfo creation code. 2014-10-07 13:03:41 -04:00
Zoltan Varga 04f89bb6fe Merge pull request #1328 from vkargov/master
[runtime] Take correct domain information from StackFrameInfo for each stack frame.
2014-10-07 12:45:52 -04:00
Eberhard Beilharz aab88e769c [MWF] Pass graphics when calculating button text and image
This fixes a problem with calculating the text width of a button
which caused the text to get truncated under certain circumstances
instead of being wrapped. This fixes Xamarin-23168.

Change-Id: Iac0d8a2720a99cf5433e05d5123a04c4b019e493
2014-10-07 17:34:44 +02:00
Vladimir Kargov 4cda578c6a [runtime] Take correct domain information from StackFrameInfo for each stack frame. 2014-10-07 19:30:31 +04:00
Rodrigo Kumpera bd002446fc Merge pull request #1179 from ludovic-henry/pr25-threadpool
[threadpool] Improve heuristic to approach optimal number of threads based on workload
2014-10-07 10:34:43 -04:00
Marcos Henrich fa2c2870e5 Added missing files to projects csproj files. 2014-10-07 14:03:29 +01:00
Marcos Henrich a1e558f6c6 Reset stream position before doing CopyToAsync.
CopyToAsync begins copying at the current position.
2014-10-07 09:53:01 +01:00
Marcos Henrich aea4abc755 Call SetupRequestAsync only after ContentType changes. Fixes 19529. 2014-10-07 09:52:54 +01:00
Alexis Christoforides 14d49cce10 [runtime] Fix another lost canary change 2014-10-06 17:02:23 -07:00
Zoltan Varga f533903590 Kill timed-out tests when using the managed test runner. 2014-10-06 16:13:54 -04:00
Vlad Brezae 7ecf25c7a1 [sgen] Fix pointer access.
Thanks to @martinpotter for finding the bug.
2014-10-06 12:19:52 -07:00
Zoltan Varga 5a22dacd4e [bcl] Remove some verbose test output. 2014-10-06 14:56:32 -04:00
Marcos Henrich 457c87c69f TimeZoneInfo.CreateLocal now handles environment variable TZ. 2014-10-06 15:57:13 +01:00
Rodrigo Kumpera b97e3209b3 [runtime] Silence a warning that has not helped us fix anything. 2014-10-06 10:54:16 -04:00
Marcos Henrich 27d26c36cc Added bash script to test DateTime.Now.
The test changes TZ environment variable and compares DateTime.Now with system date.
The test checks all the timezones installed in /usr/share/zoneinfo/.
2014-10-06 15:32:45 +01:00
Alexis Christoforides d29a341e73 [runtime] Fix canary oops 2014-10-05 23:08:48 -07:00
Alexis Christoforides ee90d5ff1d [runtime] Implement 'nursery-canaries' option for SGen. 2014-10-05 22:32:53 -07:00
Alexis Christoforides 84110040aa [runtime] Convert String.InternalSetLength to an icall. Needed for canary support.
The change does not have a negative impact on StringBuilder performance; under variable-string-length microbenchmarks it seems to perform ~15-20% faster than the managed implementation.
2014-10-05 22:21:15 -07:00
Alexis Christoforides d8ae2993ef [runtime] Implement nursery canaries.
Use the new MONO_GC_DEBUG option "nursery-canaries"  to suffix each nursery object with a canary (guard) word, which is checked on each minor collection. Can be used to detect/debug
heap corruption issues.

Adding canaries to LOS is also easy if wanted - not sure about major heap.
2014-10-05 22:16:27 -07:00
Marek Safar 153d104c07 [system.xml] Make XmlSerializer work even when XmlTextReader has explicitly set its resolver 2014-10-05 17:58:02 -04:00
Marek Safar 58105a4dc6 [system.xml] Add missing 4.0 property 2014-10-05 15:44:55 -04:00
Marek Safar f39cc88e58 [corlib] Notify parent task when child task uses NotOnFaulted. Fixes #23594 2014-10-05 14:36:05 -04:00
Zoltan Varga 9e573872f0 [arm] Increase size of tls_get opcode to 24. 2014-10-05 00:04:58 -04:00
Marcos Henrich 2a73a83d89 Use TZ transitions when AdjustementRules are ignored. Fixes 23170.
In some cases the timezone transitions provided by iOS are not convertible to AdjustmentRules because of changes on the base offset.
Now we store the transitions so they can be used instead of an incomplete list of AdjustmentRules.
2014-10-04 17:32:03 +01:00
Marcos Henrich 97c6bc06ea Refactored TimeZoneInfo.GetUtcOffset.
Added GetUtcOffset auxiliar methods with bool out parameter that is true when the given DateTime is a DST.
2014-10-04 16:46:47 +01:00
Stephen McConnel 82093256f4 Fix potential crash in ListView.ItemControl.ItemsMouseDown
This fixes Xamarin bug 23591.  Side-effects of internal processing of
ItemsMouseDown can cause ItemsMouseUp before ItemsMouseUp has finished.
2014-10-03 13:09:10 -05:00
Marcos Henrich 1a92f4e90b TimeZoneInfo.IsDaylightSavingTime now uses GetUtcOffset. 2014-10-03 17:43:47 +01:00
Marcos Henrich 374e1b13e0 TimeZoneInfo.GetUtcOffset now handles all DateTimeKinds.
Removed GetUtcOffset cohesion with TimeZoneInfo.IsDaylightSavingTime.
2014-10-03 17:43:32 +01:00
Marcos Henrich 09fc592499 Created helper method TimeZoneInfo.IsInDST. 2014-10-03 10:38:13 +02:00
Marcos Henrich 306ac05ea1 Removed repeated logic from TimeZoneInfo.ConvertTimeToUtc. 2014-10-03 10:38:13 +02:00
Marcos Henrich d6848d1ef6 ConvertTimeToUtc no longer relies in DateTime.ToUniversalTime. 2014-10-03 10:38:12 +02:00
Marcos Henrich b863d3c58d Simplified TimeZone.ToLocalTime.
Old code was producing invalid DST dates.
2014-10-03 10:38:11 +02:00
Marcos Henrich 411d4aa0bb Test TimeZoneInfo.GetUtcOffset with multiple DST and DateTimeKind. 2014-10-03 10:38:11 +02:00
Marcos Henrich 8ab9a76c7e Updated TimeZoneInfoTest.DSTTransisions to correct .NET behavior. 2014-10-03 10:38:10 +02:00
Alexis Christoforides b0cff959e4 [runtime] Fix allocation size calculation for strings in 64-bit builds.
Depending on alignment and packing, part of the string might be inside the MonoString struct boundaries. This e.g. shows up on 64-bit builds of mono where we were allocating 4 extra bytes per string.
2014-10-02 21:04:39 -07:00
Zoltan Varga 6e27f984ab [bcl] Use random ports for the HttpListener tests. 2014-10-02 23:29:53 -04:00
Zoltan Varga af33ad4eaa [jit] Implement 5dbf97e660 for calls made from NEWOBJ too. Fixes #23557. 2014-10-02 21:29:51 -04:00
Zoltan Varga 7a430acd77 [jit] Get rid of unused MONO_ARCH_THIS_AS_FIRST_ARG define. 2014-10-02 20:40:38 -04:00
Zoltan Varga 9523b73148 [arm] Implement handler block guards. 2014-10-02 20:35:42 -04:00
Zoltan Varga f862057fb1 [amd64] Simplify mono_arch_install_handler_block_guard (). 2014-10-02 19:04:27 -04:00
Zoltan Varga c1fe551f9c [arm] Increase the length of the tls_get opcode. 2014-10-02 18:41:42 -04:00
Chris Hamons 4c6a463678 [mono-api-html] Add filter for new namespaces/types
- Reviewed by Sebastien
2014-10-02 15:35:21 -05:00
Zoltan Varga e7778f3fd5 Fix a warning. 2014-10-02 16:06:24 -04:00
Zoltan Varga 4437ecea91 Fix the arm build. 2014-10-02 16:06:01 -04:00
Zoltan Varga 1317d99cae [sgen] Reorganize sgen-archdep.h to remove unused defines. 2014-10-02 15:49:00 -04:00
Zoltan Varga 1e709688bb [jit] Remove unused defines. 2014-10-02 14:32:11 -04:00
Zoltan Varga da3b7dd271 [amd64] Define MONO_ARCH_NOMAP32BIT on all non-linux platforms instead of defining it once for each platform. 2014-10-02 14:23:15 -04:00
Sebastien Pouliot 3e3fe21e7f Revert "Finish test changes started in 7ece665d16714db0979bde5df254231c5be24f10"
This reverts commit d171cdf5e2.
2014-10-02 13:45:11 -04:00
Sebastien Pouliot d525ff73e1 Revert "Refresh HashAlgorithmTest to match changed NullStream behaviour in 8b9c60075f7b97fe88c3c588968977ff9bcf8c28"
This reverts commit 7ece665d16.
2014-10-02 13:44:58 -04:00
Sebastien Pouliot 16dbea555d Revert "Missing Args checks."
This reverts commit 8b9c60075f.
2014-10-02 13:44:35 -04:00
Marcos Henrich 709d2c58ad Removed unused CurrentSystemTimeZone fields and methods. 2014-10-02 09:31:06 +01:00
Marcos Henrich 9be262f8cc CurrentSystemTimeZone.GetUtcOffset now supports multiple DST periods.
DateTime.Now was returning wrong values when system TimeZone had more than one daylight saving time.
Fixes 22648.
2014-10-02 09:31:06 +01:00
Marcos Henrich 88297792e7 TimeZoneInfo is now always present in corlib.
Prior to net_4_0 TimeZoneInfo is a private class.
2014-10-02 09:31:06 +01:00
Zoltan Varga aa73f76a34 [jit] Define NOMAP32BIT on winx64. 2014-10-01 22:49:29 -04:00
Mark Probst b86bd886d6 [sgen] Fix concurrent mark with split nursery. 2014-10-01 14:52:07 -07:00
Zoltan Varga c856758e54 [jit] Remove the unused MONO_DISABLE_PENDING_EXCEPTIONS env var, the functionality it disable is not experimental anymore. 2014-10-01 16:42:47 -04:00
Zoltan Varga d659d7540d [x86] Remove the now unused push based parameter passing code. 2014-10-01 16:36:27 -04:00
Stephen McConnel b3214a4a42 Remove excessive shortcut key matching in ToolStrip
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=23532.
2014-10-01 15:04:39 -05:00
Jonathan Pryor 87454f9f83 Merge pull request #1306 from joelmartinez/docs-privateinterface
mdoc no longer documents private interfaces
2014-10-01 15:23:08 -04:00
Rodrigo Kumpera 0ac61b03fc [corlib] Fix UnicodeEncoding GetMaxByteCount and GetMaxCharCount to return the same values as .net. 2014-10-01 15:11:20 -04:00
Zoltan Varga 52834175e1 [runtime] Add a missing call to mono_thread_notify_pending_exc_fn () to the thread abort code. 2014-10-01 15:02:25 -04:00
Zoltan Varga 9aaf79b055 Fix some warnings by not including utils/mono-threads.h into threads-types.h. 2014-10-01 14:27:18 -04:00
Zoltan Varga fc7c8e9765 [jit] Make each CASTCLASS_CACHE patch unique by generating a unique identifier from the method index and an per-method counter. Fixes #23478. 2014-09-30 22:12:53 -04:00
Jo Shields d171cdf5e2 Finish test changes started in 7ece665d16 2014-09-30 14:51:13 +01:00
Jo Shields a49bd2664f Add new cert-sync command to scripts/.gitignore 2014-09-30 13:22:00 +01:00
Jo Shields 7ece665d16 Refresh HashAlgorithmTest to match changed NullStream behaviour in 8b9c60075f 2014-09-30 13:22:00 +01:00
Marek Safar 497481742a [mcs] Undo bool loads normalization from byte arrays 2014-09-30 13:02:32 +02:00
Marek Safar 999e88dcd5 [mcs] Correctly identify constant switch section when value match is not section start. Fixes #23475 2014-09-30 11:12:24 +02:00
Marek Safar 01ffcd4145 [mcs] struct initializers are still experimental 2014-09-30 09:48:41 +02:00
Marek Safar 2476a1b728 Merge pull request #1318 from AlexanderBekrenev/baa-membershipuser
MembershipUser::UpdateUser method fix
2014-09-29 22:28:19 -09:00
Alexander Bekrenev c9044d71bb MembershipUser::UpdateUser method fix 2014-09-30 10:46:14 +04:00
Neale Ferguson dbd022aba4 Enable build on RHEL and CentOS 2014-09-29 17:34:38 -04:00
Mark Probst 4e3ca74fcb Fix build on pre-C99 compilers. 2014-09-29 13:52:00 -07:00
Ludovic Henry ada4b4b06f [sgen] Remove useless internal allocation 2014-09-29 16:16:31 -04:00
Zoltan Varga 1fbdf06d04 [runtime] Enable the new interrupt code on ios. 2014-09-29 14:30:19 -04:00
Mark Probst c70c3c429a [sgen] Don't use callback for pinning cemented objects. 2014-09-29 11:04:03 -07:00
Mark Probst a12c4b8099 [sgen] Tag block pointers with whether the blocks contain references. 2014-09-29 11:04:02 -07:00
Mark Probst e8efdfa360 [sgen] Macro abstractions for pointer tagging. 2014-09-29 11:04:02 -07:00
Mark Probst ac83118056 [sgen] Shift, don't divide, just to make sure. 2014-09-29 11:04:02 -07:00
Mark Probst 70980c0cde [sgen] Move SGen statistics out of gc-internal.h.
This introduced a dependency from sgen-conf.h to a lot of compilation units
in metadata, leading to long build times when experimenting with SGen.
2014-09-29 11:04:02 -07:00
Mark Probst 0cfc7008a0 [sgen] Don't unroll run-length scanning loop. 2014-09-29 11:04:01 -07:00
Mark Probst 8e714a70a1 [sgen] Keep allocated blocks in array instead of linked list.
We were spending a lot of time in major_iterate_live_block_ranges() on
the lcscbench benchmark, mainly from following the linked block list.
This change makes it much faster.
2014-09-29 11:04:01 -07:00
Mark Probst 18ee4f22a3 [sgen] Move GRAY_OBJECT_ENQUEUE/DEQUEUE to sgen-gray.h. 2014-09-29 11:04:01 -07:00
Mark Probst 62df12c0e4 [sgen] Move HEAVY_STAT macro to sgen-conf.h.
That's where we define HEAVY_STATISTICS, too.
2014-09-29 11:04:01 -07:00
Mark Probst aa82365b6b [sgen] Scoping fix in a macro. 2014-09-29 11:04:01 -07:00
Mark Probst 0f7be7ca38 [sgen] Heavy statistics counters for scanned object descriptors. 2014-09-29 11:04:00 -07:00
Mark Probst aa8cabc373 [sgen] do-while loop instead of 1-unrolled while loop in bitmap scan. 2014-09-29 11:04:00 -07:00
Mark Probst 53b798f915 [sgen] Added some comments. 2014-09-29 11:04:00 -07:00
Mark Probst 533b11a0f6 [sgen] Simplify sgen_drain_gray_stack().
This seems to have accumulated code duplication by accident.
2014-09-29 11:03:59 -07:00
Mark Probst 78408ae100 [sgen] Free gray queue sections after GC, not at start of next.
We trim the free list of the gray queue to a maximum number of
sections, but we did it at each collection start, so the extraneous
sections were kept around between collections.
2014-09-29 11:03:59 -07:00
Mark Probst 72c15bb6f2 [sgen] Enqueue objects with their descriptors.
At the point where we enqueue objects we have already fetched their
descriptors, and when we later scan them (after dequeuing) we need the
descriptor again, so we avoid cache misses by enqueuing them together.
2014-09-29 11:03:59 -07:00
Mark Probst 96e37d79b3 [sgen] Pass descriptor, not vtable, to OBJ_COMPLEX_ARR_FOREACH_PTR.
Later on, when we enqueue objects with their GC descriptors, we won't
load the vtable before scanning (because we'll already have the
descriptor), so the scanning macros shouldn't take them as arguments.
2014-09-29 11:03:59 -07:00
Mark Probst 003488cc2a [sgen] GrayQueueEntry struct instead of just char*.
This makes it easier to later enqueue the GC descriptor with the
object.
2014-09-29 11:03:58 -07:00
Mark Probst c2022b34b7 [sgen] Remove obsolete check in #ifdef.
That macro doesn't exist anymore.
2014-09-29 11:03:58 -07:00
Mark Probst d07b7650c7 [sgen] Abstract block info->block via macro.
If we want to experiment with putting the block info into the block this
makes it easy.
2014-09-29 11:03:58 -07:00
Mark Probst 050ee93a67 [sgen] Implement get_and_reset_num_major_objects_marked() for non-conc, too.
This is used for profiling and debugging.  There's no reason to only
have it for concurrent.
2014-09-29 11:03:58 -07:00
Mark Probst 8a005b8290 [sgen] Remove parallel collector.
This was almost completely untested and performance was
erratic.
2014-09-29 11:03:57 -07:00
Mark Probst 06ba93fd0e [sgen] Remove SGen fixed heap configuration.
It's not well-tested, not widely used, we can surpass its speed with
upcoming improvements and we won't put those into the fixed
configuration because it's too much of a diversion.
2014-09-29 11:03:57 -07:00
Marek Safar 2a4230fe3b [facades] Add ComInterfaceType type forwarder 2014-09-29 19:50:29 +02:00
Zoltan Varga 67297b2710 Fix a warning. 2014-09-29 13:37:03 -04:00
Zoltan Varga 7968a8df16 [x86] Reenable the no pushes code again. 2014-09-29 13:01:52 -04:00
Marek Safar f1ca57ebb3 [mcs] Don't consider loads from captured local cheap 2014-09-29 16:44:46 +02:00
Marek Safar 5d762ffe93 [mcs] null operator on unconstrained generic values 2014-09-29 16:44:46 +02:00
Alexander Köplinger 22a218578a Updated links in CONTRIBUTING.md 2014-09-29 14:11:06 +02:00
Marek Safar 84f9d58737 [mcs] Handle crash in binary operators when enum is used and nullable type is undefined 2014-09-29 11:41:35 +02:00
Marek Safar 1e5638b59c Merge pull request #1316 from Therzok/addSealed
Improvements in CorCompare
2014-09-28 21:27:08 -09:00
Zoltan Varga 75eb6a9caf Revert "[jit] Enable deadce on fp instructions on x86. Fixes #23392."
This reverts commit a32e2c7fe6.

Revert this as it breaks the build.
2014-09-29 01:06:50 -04:00
Zoltan Varga b533e2abac Fix a warning. 2014-09-28 19:57:52 -04:00
Zoltan Varga 9ac8be28af [bcl] Add AppDomain.FirstChangeException event, not implemented yet. 2014-09-28 19:56:53 -04:00
Zoltan Varga 5d3a42dc0f [runtime] Disallow generic classes with explicit layout. Fixes #23438. 2014-09-28 19:44:23 -04:00
Marius Ungureanu 63f50e9a1a [CorCompare] Add pointer as a class type. 2014-09-28 23:50:39 +03:00
Marius Ungureanu a5439f9646 [CorCompare] Add sealed methods parsing. 2014-09-28 23:48:58 +03:00
Marek Safar f289255ed5 Merge pull request #1315 from rjvdboon/BootstrapContext
Add System.IdentityModel.BootstrapContext to .Net 4.5 profile, fixes #22560
2014-09-27 20:59:02 -09:00
Zoltan Varga 657b6caad6 [runtime] Implement and enable the new interrupt code on amd64. 2014-09-28 01:50:51 -04:00
rjvdboon 2f9fb9e888 more coding style changes 2014-09-27 21:32:46 +02:00
rjvdboon d90ab2a697 Adhere to mono coding guidelines. 2014-09-27 21:27:44 +02:00
Marek Safar bb12899b3a [corlib] Timespan ticks formatting rewrite. Fixes #23376 2014-09-27 16:41:46 +02:00
Marek Safar bd3f6f5abc Merge pull request #1314 from alesliehughes/master
Add basic implement of ManagementObjectSearcher
2014-09-27 02:13:34 -09:00
Alistair Leslie-Hughes 13e0175fc8 Add basic implement of ManagementObjectSearcher
This change is released under the MIT license.
2014-09-27 20:16:32 +10:00
Zoltan Varga a32e2c7fe6 [jit] Enable deadce on fp instructions on x86. Fixes #23392. 2014-09-26 19:48:21 -04:00
Zoltan Varga cca43a2d34 [sdb] Add an option to make debugger invokes virtual. Part of the fix for #23385. 2014-09-26 18:16:17 -04:00
Sebastien Pouliot f234e421ae Merge pull request #1282 from madrang/MinorChangesOfPull1281
Add missing argument validations and set disposed flag to true once Dispose is called
2014-09-26 16:24:22 -04:00
Sebastien Pouliot c648f28f54 [corlib] Move iOS-specific code to a separate file for System.Environment 2014-09-26 15:40:34 -04:00
Ludovic Henry 62edb78cd6 [threadpool] Put the monitor thread to sleep if there has been no tasks for the past 5 seconds (NON_BUSY_INTERATION * SAMPLES_PERIOD)
This should improve a lot power consumption, because this avoir having a thread waking up every 500ms keeping the CPU awake.
2014-09-26 15:06:43 -04:00
Ludovic Henry 681a0061ad [threadpool] Remove process_idle_times so monitor_thread is the only function to change the number of threads 2014-09-26 15:06:42 -04:00
Ludovic Henry c93f120211 [threadpool] Add heuristic to approach the optimal number of threads 2014-09-26 15:06:42 -04:00
Ludovic Henry 1210628a04 [threadpool] Add suspend pushing to a WSQ 2014-09-26 15:06:42 -04:00
Sebastien Pouliot 1641a095bb [Mono.Security] Clear Certificates after Import or Remove [part of PR #1004]
PR: https://github.com/mono/mono/pull/1004

commit: https://github.com/rahvee/mono/commit/9fa2a1928a50114eb144202b939269f3f8d823f2

Modified to match Mono guidelines.
2014-09-26 14:35:20 -04:00
Marek Safar 0567e7763e [mcs] Check for true/false user operators on unwrapped nullable type. Fixes #23199 2014-09-26 20:34:01 +02:00
Rodrigo Kumpera aa11aa6184 Revert "[runtime] Implement lazy resolution of array interfaces."
This reverts commit 6ee08cf772.

This broke corlib compilation in a very weird way. Reverting it for now as I have no idea on why things break.
2014-09-26 14:12:32 -04:00
Rodrigo Kumpera 0e37ed19be Revert "[runtime] Remove a bit chunk of what's dead code now."
This reverts commit cab1c00168.
2014-09-26 14:12:22 -04:00
Marek Safar 96b46d1ad0 [mcs] Add check for parameterless user constructor used as default parameter value 2014-09-26 14:31:40 +02:00
Marek Safar a59c434f46 Merge pull request #1312 from esdrubal/xmltext
Property with attribute XmlTest is now set from ReadString only.
2014-09-26 02:47:15 -09:00
Marcos Henrich 916121f3d7 Property with attribute XmlTest is now set from ReadString only.
Before the change when the property default value was not null or empty the deserialized value would be the concatenation of the default value and the serialized value.
The correct behavior is to use the serialized value only.
Fixes 18908.
2014-09-26 10:35:57 +01:00
Marcos Henrich 007413298d Test Xml serialization of a property with attribute XmlText.
The tested property has a default value that is not null.
Covers 18908.
2014-09-26 10:31:51 +01:00
Marek Safar c5cf618a14 [mcs] Fix codegen for coalescing operator involving user operator conversion to result type 2014-09-26 09:27:49 +02:00
Zoltan Varga 6c4bc5f9d7 [aot] Pass additional arguments to llc on x86. 2014-09-25 17:12:17 -04:00
Robert J. van der Boon 11049f9dd7 Added serialization of SecurityToken with Handler 2014-09-26 05:39:48 +09:00
Rodrigo Kumpera cab1c00168 [runtime] Remove a bit chunk of what's dead code now. 2014-09-25 16:23:24 -04:00
Rodrigo Kumpera 6ee08cf772 [runtime] Implement lazy resolution of array interfaces.
To resolve casting we make all relevant interfaces to use the generic variance casting code.
This only affected ICollection`1 and IList`1, which are not terribly popular.

To fix dispatch we augment vtable resolution to treat those interfaces as variant and use
the already in place machinery.

Memory reduction numbers for the corlib test suite:

Initialized classes 8004 -> 7470 (7% reduction)
Corlib mempool size: 2719832 -> 2678872 (1.5% reduction)

Inflated classes 4500: 3.972 (12% reduction)
Inflated signatures size: 166128 -> 139812 (16% reduction)
Inflated methods size: 565152 -> 485664 (15$ reduction)
2014-09-25 16:23:23 -04:00
rjvdboon 4d7a441967 Update unit tests for binary serialization 2014-09-25 22:09:21 +02:00
rjvdboon 8d405e7aa1 Change unittest to not use the UserNameSecurityTokenHandler base class (as it does not-exist in mono) 2014-09-25 21:33:22 +02:00
Marek Safar 410af9c0cc Merge pull request #1309 from esdrubal/json
Improved Json deserialization of floating-point numbers.
2014-09-25 07:42:36 -09:00
Joel Martinez 8f2377e855 [mdoc] No longer documenting explicitly implemented private interface members.
https://bugzilla.xamarin.com/show_bug.cgi?id=18411

If a class explicitly implements an internal interface, those members will no
longer be documented, nor will the interface show up in the class' signature.
This allows for a library to hide internal implementation details that an end
user would not be able to take advantage of (ie. can't cast to internal
interface to call methods).

Includes test (check-monodocer-internal-interface)  added to makefile.
2014-09-25 10:41:42 -04:00
Marcos Henrich 92a4fd26ac Improved Json deserialization of floating-point numbers.
When DataContractJsonSerializer was created from type object, deserialization of floating.point numbers was not possible.
Fixes 21583.
2014-09-25 15:30:46 +01:00
Marcos Henrich ee71f0a1e6 Test Json deserialization of a floating-point number as object.
Covers 21583.
2014-09-25 15:15:38 +01:00
Miguel de Icaza 40ccf510c6 Merge pull request #1307 from esdrubal/servicemodelrss
Rss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.
2014-09-25 09:52:23 -04:00
Marcos Henrich d7c598b74c Rss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.
Fixes 23262.
2014-09-25 13:38:59 +01:00
Marcos Henrich 5ddcc07c67 Test Rss20ItemFormatter.ReadFrom Guid. Covers 23262. 2014-09-25 13:36:40 +01:00
Mark Probst 294e5214b2 [sgen] Don't get time twice at the same time. 2014-09-24 16:31:19 -07:00
Ludovic Henry 546831886e [sgen] Add concurrent collector counter for time spent during concurrent phase 2014-09-24 16:31:19 -07:00
Ludovic Henry 5d4b1f978b [sgen] Add major concurrent collector stw time to "Major GC time" counter 2014-09-24 16:31:18 -07:00
Miguel de Icaza 4320e844e9 Merge pull request #1304 from slluis/mac-proxy-autoconfig
[System.Net] Add support for .pac proxy config scripts on mac
2014-09-24 11:17:33 -04:00
Lluis Sanchez f5f69e540e [System.Net] Add support for .pac proxy config scripts on mac 2014-09-24 16:50:15 +02:00
Miguel de Icaza c6ab899595 [System] Fix most warnings on the System test suite 2014-09-24 10:43:46 -04:00
Marcos Henrich 67ea9985cb UriParserTest.GetComponents_Ftp2 now uses the variable 'ftp2'. 2014-09-24 12:22:30 +01:00
João Matos e150fde4e2 Fixed TLS detection to check for TARGET_MACH instead of __APPLE__.
In the case of cross-compiling to x86 Linux from OSX we'd hit compilation issues here.
2014-09-24 12:21:35 +01:00
João Matos de0543fbea Added support for cross-compiling to x86 Linux/Android. 2014-09-24 12:21:34 +01:00
Marek Safar 1d94d1770d [mcs] More tweaks to conditional tokenizer. Fixes #23319 2014-09-24 12:29:06 +02:00
Jo Shields ff165854bd Move llvm_init_inner inside #ifdef ENABLE_LLVM
This should fix c30a3e46d2 failing to link properly with ld 2.22 and GCC 4.9.1, on Linux, with non-LLVM builds.

./.libs/libmini.a(libmini_la-mini.o): In function `llvm_init_inner':
mini.c:(.text+0x1182b): undefined reference to `mono_llvm_init'
/usr/bin/ld: .libs/libmonoboehm-2.0.so.1.0.0: hidden symbol `mono_llvm_init' isn't defined
/usr/bin/ld: final link failed: Bad value
2014-09-24 10:40:03 +01:00
Atsushi Eno db5275ca56 [xlinq] fix bug #23318 - XComment.ToString() accepts "invalid" values.
Before it passes the value to XmlWriter.WriteComment(), it replaces
invalid values to valid form.
2014-09-24 15:30:32 +08:00
Zoltan Varga da335abfba Merge pull request #1301 from Unity-Technologies/fix-isuserprotected
Fix Win32 call in IsUserProtected. Usage was incorrect and freeing the w...
2014-09-23 18:59:15 -04:00
Zoltan Varga 2b5078c306 [bcl] Fix the RenameTpThread test, renaming a tp thread should not fail. 2014-09-23 18:40:34 -04:00
Zoltan Varga a8185f3374 [jit] Fix LLVM support on amd64 which got broken by the epilog size changes. 2014-09-23 18:36:23 -04:00
Zoltan Varga c30a3e46d2 [aot] Fix running with a loadable llvm module in aot-cache mode. 2014-09-23 18:26:18 -04:00
Marcos Henrich feacff0185 Revert "Uri made from UNIX path and RelativeOrAbsolute is now relative."
This reverts commit 116f4d2749.
2014-09-23 22:30:24 +01:00
Rodrigo Kumpera 6fe521be5c Merge pull request #1302 from mono/revert-1300-unixrelativeorabsolute
Revert "Uri made from UNIX path and RelativeOrAbsolute is now relative."
2014-09-23 17:12:10 -04:00
Rodrigo Kumpera 7d3eaf50a8 Revert "Uri made from UNIX path and RelativeOrAbsolute is now relative." 2014-09-23 17:05:30 -04:00
Michael Hutchinson 18186487ee Environment.IsRunningOnWindows can be true on MOBILE 2014-09-23 15:03:09 -04:00
Sebastien Pouliot d127a1a911 [System.Data] Add new file to the mobile_* sources build (to fix XI build) 2014-09-23 14:23:12 -04:00
Zoltan Varga 42173889e7 [jit] Fix EH on amd64 which got broken by d5a18ba292. 2014-09-23 14:16:16 -04:00
Rodrigo Kumpera 7c7ae04f7f Merge pull request #1299 from esdrubal/uriuserinfo
UriParseComponents no longer decodes '@' in UserInfo.
2014-09-23 14:00:13 -04:00
Marcos Henrich 30ec69fd50 Allow stream reuse when InputStream has been disposed.
If InputStream is disposed FlushInput now sets it to null so a new one can be created.
2014-09-23 18:44:49 +01:00
Marcos Henrich 6a249a5611 Test connection reuse. 2014-09-23 18:44:49 +01:00
Marcos Henrich 116f4d2749 Uri made from UNIX path and RelativeOrAbsolute is now relative.
This was changed because the path might be a relative http path and should take precedence over an absolute UNIX path.
2014-09-23 18:01:38 +01:00
Jonathan Chambers d56a23750b Fix Win32 call in IsUserProtected. Usage was incorrect and freeing the wrong parameter causing a memory corruption. 2014-09-23 12:54:44 -04:00
Miguel de Icaza 0699e4da36 Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename test 2014-09-23 10:56:04 -04:00
Marcos Henrich b89b5c46d6 Test WebClient.UploadFileTaskAsync ContentType. Covers 19529. 2014-09-23 15:30:50 +01:00
Marek Safar 84ab6a7833 Merge pull request #1300 from esdrubal/unixrelativeorabsolute
Uri made from UNIX path and RelativeOrAbsolute is now relative.
2014-09-23 05:11:15 -09:00
Marcos Henrich b6874fa16b Uri made from UNIX path and RelativeOrAbsolute is now relative.
Fixes 22954.
2014-09-23 14:32:59 +01:00
Marcos Henrich f6f80d5e4d Test that Uri made from UNIX path and RelativeOrAbsolute is relative. 2014-09-23 14:27:35 +01:00
Marcos Henrich 2d52cec1ce Merge pull request #1203 from esdrubal/protect
KeyPairPresistence now tries to fix folder permissions.
2014-09-23 13:58:19 +01:00
Marcos Henrich e074772e92 UriParseComponents no longer decodes '@' in UserInfo. Fixes 23246. 2014-09-23 12:42:11 +01:00
Marcos Henrich b63c44670a Test Uri.UserInfo with percentage encoded '@'. 2014-09-23 12:42:10 +01:00
Marcos Henrich 2cf751f7f7 Fixed additional Uri.UserInfo char consumed after an escaped char. 2014-09-23 12:42:10 +01:00
Marcos Henrich ac52aece46 Test Uri.UserInfo with escaped 'a'. 2014-09-23 12:42:09 +01:00
Zoltan Varga 745a2b16ec [aot] Add an 'options' argument to the AOT cache configuration where additional --aot= options can be passed. 2014-09-22 21:11:03 -04:00
Zoltan Varga b0523c4ee8 [aot] Add more verbose aot cache logging, fix failure detection. 2014-09-22 20:52:53 -04:00
Zoltan Varga 627fc398ad [aot] Make --aot=llvm actually work by passing the flag down to the JIT. 2014-09-22 20:18:33 -04:00
Zoltan Varga 19619d925e [aot] Fix a regression introduced by 82c15fa592. 2014-09-22 20:11:22 -04:00
Zoltan Varga 82c15fa592 [aot] Add an 'llvm' aot option which does the same as --llvm. This allows running the AOT compiler with LLVM enabled in aot cache mode. 2014-09-22 20:03:48 -04:00
Zoltan Varga 40ca3ae249 [llvm] Fix support for unaligned offsets in the store_membase_imm opcodes. Fixes #23267. 2014-09-22 18:52:54 -04:00
Ludovic Henry 24013364b7 [sgen] Use memcpy to copy object
It is faster by around 5-6% on copy heavy gc stress tests.
2014-09-22 14:52:16 -07:00
Zoltan Varga 16d9d07821 [runtime] Allow renaming of threadpool threads. Fixes #23206. 2014-09-22 17:07:26 -04:00
Zoltan Varga 74b76bdc11 [runtime] Fix the lookup of nested types which have a namespace. Fixes #21653. 2014-09-22 16:20:25 -04:00
Marek Safar 0f36581baa [mcs] Populate inherited constraints member cache from types not only base types. Fixes #23017 2014-09-22 22:12:49 +02:00
Marek Safar b99e7ab957 Fixes commit ef94fbfd9c 2014-09-22 22:12:49 +02:00
Marius Ungureanu 32318db8cf Fixup to ef94fbfd9c
Thanks @ezavaleta
2014-09-22 21:16:13 +03:00
Marek Safar ef94fbfd9c [corlib] Update en-NZ designators. Fixes #22212 2014-09-22 17:30:35 +02:00
Marek Safar 5ad92e6b10 [mcs] declaration expression after ref/out argument 2014-09-22 17:30:34 +02:00
Miguel de Icaza fb3a6d1cd2 Merge pull request #1295 from nealef/master
Add SqlCredential support to SqlClient/Tds
2014-09-22 10:41:58 -04:00
Rodrigo Kumpera c47fab9285 Merge pull request #1296 from directhex/master
Add a tool which can sync the Mono cert store from an arbitrary cert bundle
2014-09-22 10:29:33 -04:00
Jo Shields 452073b91e Add a tool which can sync the Mono cert store from an arbitrary cert bundle (i.e. every trusted CA.pem in one big text file). This is a format used by most Linux distributions, so allows Mono packagers to automatically integrate the Mono cert store with the OS cert store. 2014-09-22 14:02:03 +01:00
Zoltan Varga 5f9c74f4c5 [runtime] Fix mono_sigctx_to_monoctx () on win32. 2014-09-22 01:16:00 -04:00
Zoltan Varga df43380ea6 [runtime] Fix the win32 build. 2014-09-22 01:01:11 -04:00
Zoltan Varga ab5dda7fba Fix warnings. 2014-09-22 06:46:23 +02:00
Zoltan Varga 12bceb1700 [jit] Fix the handler block trampolines on windows. 2014-09-22 06:44:54 +02:00
Zoltan Varga f930824ea9 [runtime] Enable the fastpath in CEE_MONO_JIT_ATTACH on windows. 2014-09-22 06:44:54 +02:00
Zoltan Varga e0a408f702 [runtime] Treat the tls key as the tls offset on windows, since they are the same. 2014-09-22 06:44:53 +02:00
Zoltan Varga 12dc660454 [runtime] Enable fp elimination on winx64. 2014-09-21 23:07:30 -04:00
Zoltan Varga ac2e2c7703 [runtime] Disable a few more tests on windows which hang on winx64. 2014-09-21 22:48:42 -04:00
Zoltan Varga d5a18ba292 [jit] Enable the pushless call code on windows too, get rid of the non-pushless code. 2014-09-21 22:21:41 -04:00
Zoltan Varga dfb8d2ac8e [jit] Implement the pushless call code on winx64. 2014-09-21 22:01:03 -04:00
Zoltan Varga ea77b1f9fb [jit] Enable monitor fast paths on win64. 2014-09-22 01:45:28 +02:00
Zoltan Varga 558750f053 [runtime] Fix the windows build. 2014-09-21 17:42:45 -04:00
Zoltan Varga e2e74c95e6 [runtime] Fix the unregistration of our exception handler on windows. Fixes #23221. 2014-09-21 14:54:24 -04:00
rjvdboon edca3467ce Added System.IdentityModel.Tokens.BootstrapContext including tests. 2014-09-20 22:44:34 +02:00
Zoltan Varga ca51c3b026 [runtime] Enable the new interrupt code on arm linux. 2014-09-20 02:43:47 -04:00
Zoltan Varga d4b4c2dbbc [runtime] Add wrappers around the wapi interrupt functions to mono-threads to reduce the amount of #ifdef WIN32 blocks in threads.c. 2014-09-19 17:51:14 -04:00
Sebastien Pouliot 23042a0aa3 Fix typo (and XI builds) 2014-09-19 16:48:37 -04:00
Sebastien Pouliot 64b8e0c063 [System.Numerics] Fix unit test to succeed on different culture (XI runs tests them on several cultures) 2014-09-19 16:30:16 -04:00
Neale Ferguson a83e9cf4aa Add SqlCredential support -
- Tds.cs: Use SecureString objects for passwords; Add method to retrieve string from SecureString
- Tds42.cs: Use SecureString for passwords
- Tds50.cs: Use SecureString for passwords
- Tds70.cs: Use SecureString for passwords
- TdsConnectionParameters.cs: Use SecureString for passwords; Initialize Password parameter as cleared string; Add indicator for when password is set
- SqlConnection.cs: Use SecureString for passwords; Add SqlConnect method that accepts an SqlCredential along with the Connection string; Perform checking of parameters to ensure user/password not specified in connection string if credentials have been specified or using credentials when domain login is specified.
- SqlCredential.cs: Add new class with support for credentials
- System.Data.dll.sources: Add SqlCredential.cs to the build list
2014-09-19 11:52:52 -04:00
Ludovic Henry 05d341392c [sgen] Fix wbarrier use if we define SGEN_HEAVY_BINARY_PROTOCOL, HEAVY_STATISTICS or XDOMAIN_CHECKS_IN_WBARRIER 2014-09-19 11:14:48 -04:00
Miguel de Icaza af429ecfd0 Merge pull request #1245 from StephenMcConnel/bug-22483
Fix scrolling in SWF.ListView.EnsureVisible(int index)
2014-09-19 10:17:09 -04:00
Miguel de Icaza d2c021407d Merge pull request #1287 from akoeplinger/fix-appconfig-performancecounters
[System] Add performanceCounters element to System.Diagnostics app.config configuration section
2014-09-19 10:15:05 -04:00
Miguel de Icaza 3461617bc2 Merge pull request #1290 from directhex/master
Put KeyPairPersistence load into a try{}catch{} block.
2014-09-19 10:13:55 -04:00
Miguel de Icaza 605c8771b8 Merge pull request #1273 from joelmartinez/docs-unified-fix
bugfix for mdoc update with --dropns feature
2014-09-19 10:11:01 -04:00
Ludovic Henry fcb9de513a [utils] Fix force inlining compilation error with gcc on linux
[02131]   CC       libmonoruntimesgen_la-sgen-marksweep.lo
[02131] In file included from sgen-major-copy-object.h:35:0,
[02131]                  from sgen-marksweep.c:1128:
[02131] sgen-copy-object.h:38:1: warning: always_inline function might not be inlinable [-Wattributes]
[02131]  par_copy_object_no_checks (char *destination, MonoVTable *vt, void *obj, mword objsize, SgenGrayQueue *queue)
[02131]  ^
[02131] sgen-marksweep.c: In function 'par_copy_object_no_checks':
[02131] sgen-copy-object.h:38:1: error: function 'par_copy_object_no_checks' can never be copied because it saves address of local label in a static variable
[02131] make[3]: *** [libmonoruntimesgen_la-sgen-marksweep.lo] Error 1
[02131] make[3]: Leaving directory `/root/rpmbuild/BUILD/mono-3.10.1/mono/metadata'
[02131] make[2]: *** [all-recursive] Error 1
[02131] make[2]: Leaving directory `/root/rpmbuild/BUILD/mono-3.10.1/mono'
[02131] make[1]: *** [all-recursive] Error 1
[02131] make[1]: Leaving directory `/root/rpmbuild/BUILD/mono-3.10.1'
[02131] make: *** [all] Error 2
[02131] error: Bad exit status from /var/tmp/rpm-tmp.YxcUOE (%build)
2014-09-19 09:46:09 -04:00
Marek Safar 7ad366c25a [mcs] Improve scoring of failed overload resolution. Fixes #22989 2014-09-19 00:09:35 +02:00
Ludovic Henry d1ffd5a794 [utils] Use MONO_ALWAYS_INLINE + Add MONO_NEVER_INLINE 2014-09-18 16:42:00 -04:00
Jo Shields 3552179bda Put KeyPairPersistence load into a try{}catch{} block.
Kpp.Load() will throw an unhandled exception if _filename (a folder to use as the key store) does not exist and it cannot be created.

This is an entirely valid thing to have happen - cert importing into the machine store (mozroots --import --machine --sync) as root will create a /usr/share/.mono/certs/ folder, but will not create /usr/share/.mono/keypairs - and since the root user owns /usr/share/.mono/, if the user tries to enumerate the certificates in /usr/share/.mono/certs/, they get 0 certificates returned due to the unhandled exception dropping each loaded certificate on the floor.

Closes: Xamarin bug 23015
2014-09-18 17:32:06 +01:00
Marek Safar eb6781f3cd [mcs] Fix output type inference when parameters after first one depend on fixed first set. Fixes #23024 2014-09-18 14:47:19 +02:00
Marek Safar 548dca4730 [mcs] Better check for parameterless constructor overload 2014-09-18 10:10:46 +02:00
Zoltan Varga a4024ba4ae [sdb] Use new style interrupt on win32 if available. 2014-09-17 22:49:02 -04:00
Zoltan Varga 8ed233ef06 [runtime] Use the windows CONTEXT<->MonoContext conversion code to mono-context.c, simplify some code. 2014-09-17 22:37:18 -04:00
Zoltan Varga 4fc8068d2a [runtime] Implement the new suspend infrastructure on windows. 2014-09-17 18:25:00 -04:00
Zoltan Varga 28179361ec [sdb] Implement support for win64. 2014-09-17 15:21:11 -04:00
Marek Safar d62679a4a4 [xbuild] Workaround for issues with CreateItem task where metadata are not generated due to up-to-data inputs. Fixes #23022 2014-09-17 20:22:36 +02:00
Zoltan Varga e2f24086a8 Merge pull request #1288 from ylatuya/patch-2
[mkbundle] Fix check for dos2unix
2014-09-17 14:03:43 -04:00
Jonathan Pryor 818b81ef40 [runtime] Use statfs(2) on Android.
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=23077

Reverts commit 53ce92470.

Commit 53ce92470 disabled use of statfs(2) on Android, for unspecified
reasons. (My *suspicion* is that the Android version mono was
originally ported to didn't have statfs(2), but I can neither confirm
nor deny that guess.)

Android has supported statfs(2) since API-4 Android v1.6 (in that
statfs(2) is in the header files); what's missing is MNT_RDONLY. What
IS present is MS_RDONLY, which appears to serve the same purpose.

Re-enable use of statfs(2) and use MS_RDONLY when building against the
Android NDK.
2014-09-17 12:56:44 -04:00
Andoni Morales Alastruey 753f233a31 [mkbundle] Fix check for dos2unix
This fixes the command to check for dos2unix and makes mkbundle usable again with mingw.
We need first to redirect the standard input, otherwise the check always fails with an InvalidOperationException and set CreateNoWindow=false to avoid spawning a new window.
2014-09-17 16:17:33 +02:00
Marek Safar 4f719f9ce9 [xbuild] Fix few crashes when task loading fails 2014-09-17 11:19:57 +02:00
Zoltan Varga 5dbf97e660 [jit] Make calls from gshared to gsharedvt sharable methods indirect since otherwise at runtime we might find an instantiation and we cannot patch the call, leading to performance problems. Fixes #23021. 2014-09-16 23:17:54 -04:00
Michael Hutchinson 2804d6af37 Fix mobile and mobile_static profiles
And bring them to parity with monodroid and monotouch
2014-09-16 19:14:20 -04:00
Martin Baulig 87622fc711 [WCF]: Update to my last fix for bug #22129.
The problem already starts when creating the OperationDescription; we need
to also look at the End* method here to correctly parse the reply parameters.

Then ClientRuntimeChannel.Process needs to distinguish between sync/async
and copy the out/byref parameters when needed.
2014-09-16 21:34:20 +02:00
Zoltan Varga 4e1e37519a [runtime] Make stack walks done by the sampling profiler async safe. 2014-09-16 15:07:55 -04:00
Marek Safar 9aed010782 [mcs] struct parameterless instance constructors 2014-09-16 19:19:32 +02:00
Zoltan Varga 80b14d356f [runtime] Disable VS warnings C4273 (inconsistent dll linkage), and C4005 (macro redefinition). The former occurs becase we mark exported function declarations using MONO_API, but not the definitions. The latter occurs because we define _WINSOCKAPI_. 2014-09-15 23:30:40 -04:00
Zoltan Varga 557390ee46 [runtime] Fix the my_g_bit_nth_msf () function for win64. 2014-09-15 22:10:23 -04:00
Zoltan Varga 02f48039b1 [runtime] Add support for setting the thread name on windows. On windows, this will only work when running under a debugger. 2014-09-15 19:14:09 -04:00
Zoltan Varga ae030203e7 [arm64] Increase some opcode sizes. Fixes #23026. 2014-09-15 18:09:43 -04:00
Zoltan Varga fad438976c [runtime] Fix an assert in w32_dlerror () on winx64. 2014-09-15 17:35:05 -04:00
Marek Safar 240cf239a2 [xbuild] More tweaks to tool path setup 2014-09-15 22:25:11 +02:00
Zoltan Varga 64f6eb2d1d [aot] Use gsharedvt for collection types instantiated with generic structs as well. 2014-09-15 15:31:38 -04:00
Marcos Henrich 1531798bbe Added missing files to projects csproj files. 2014-09-15 19:14:48 +01:00
Marek Safar 2320d0dc40 [mcs] Revert usage of closed delegates for compiler generated anonymous method 2014-09-15 18:34:20 +02:00
Rodrigo Kumpera 6ea08668a2 Merge pull request #1280 from nealef/master
Maximum large object size should be limited by SSIZE_MAX not SIZE_MAX.
2014-09-15 12:31:16 -04:00
Martin Baulig 8b10d9bb0b [WCF]: Copy out/ref parameters on async call; bug #22129. 2014-09-15 18:25:54 +02:00
Marek Safar b7fb736254 Merge pull request #1286 from esdrubal/xmlnullablearrayitem
XmlSerializer nullable array items.
2014-09-15 07:20:02 -09:00
Marcos Henrich 5fc6ecd7c7 If not specified assume that array items are nullable. Fixes #19012. 2014-09-15 16:57:13 +01:00
Marcos Henrich 8790297c85 Test xml serialization of nullable array items. Covers #19012. 2014-09-15 16:55:31 +01:00
Marek Safar 1afc866f87 [xbuild] Workaround for null log service (which should never be null) 2014-09-15 17:37:49 +02:00
Marek Safar 52cdea5c0a Merge pull request #1257 from esdrubal/xmloptional
Added optional serialization based on ShouldSerialize{V}.
2014-09-15 03:44:30 -09:00
Marcos Henrich be02242f8b Ignore method ShouldSerialize if it is a generic. 2014-09-15 13:02:00 +01:00
Marcos Henrich 85650c7528 Test serialization wen class has method bool ShouldSerialize<T>().
.NET throws an exception but it should have no effect on the serialization.
2014-09-15 13:02:00 +01:00
Marcos Henrich 79de2b62f9 Added optional serialization based on ShouldSerialize{V}.
SerializationCodeGenerator and XmlSerializationWriterInterpreter will no longer serialize an attribute named {V} if its object has a method named ShouldSerialize{V}() that returns false.
{V}Specified now is also checked to be true before serializating the attribute even if it is a property that is not settable.
Fixes #1852.
2014-09-15 13:02:00 +01:00
Marcos Henrich 17ad50a165 Added test for optional {V}Specified and ShouldSerialize{V}.
{V}Specified is a property or field and ShouldSerialize{V} is a method that can be set to false if we do not want to serialize an attribute with name {V}.
2014-09-15 13:02:00 +01:00
Marcos Henrich 1ec4bd5c26 Fixed NullReferenceException. 2014-09-15 13:01:04 +01:00
Marek Safar 7439e997ac [xbuild] Use ToolPath when building ToolTask execution path. Fixes #22981 2014-09-15 13:38:40 +02:00
Robin Neatherway b50e4a8728 Allow CLR binaries to be passed to Process.Start
On *nix files are not executable by default where on Windows they
are. This causes problems if installing a NuGet package on *nix that
contains .exe files intended to be used by build tasks. On Windows the
build will invoke these without complaining whereas on *nix the build
will fail with "Native error: cannot find file specified".

On mono, the action that will be taken is to pass the path to the .exe
file to mono as a command-line argument. If this was done in a shell it
would succeed whether or not the .exe file has the executable bit set,
so it seems that this should also succeed within a program.

With thanks to @akoeplinger for help designing the test.

I release this under the MIT license.
2014-09-14 18:44:02 +01:00
Alexander Köplinger d77664ceb0 [System] Add performanceCounters element to System.Diagnostics app.config configuration section
See http://msdn.microsoft.com/en-us/library/ms229387(v=vs.110).aspx for details about the element.
The value that is set by the element isn't currently used in Mono, but applications using it in their app.config crash otherwise (e.g. http://stackoverflow.com/questions/25741651).
2014-09-14 07:45:11 +02:00
Marc-Andre Ferland 8b9c60075f Missing Args checks. 2014-09-14 00:28:33 -04:00
Marc-Andre Ferland 6354f74888 Missing setting disposed to true 2014-09-14 00:27:25 -04:00
Zoltan Varga 777f69153c [runtime] Remove an unused interpreter file. 2014-09-13 13:59:03 -04:00
Marek Safar 7f2825301e [mcs] nullable property pattern 2014-09-13 12:43:41 +02:00
Zoltan Varga a1f58d35be [runtime] Fix the windows build. Define _WINSOCKAPI_ to fix the compilation problems when windows.h is included before winsock2.h: http://stackoverflow.com/questions/1372480/c-redefinition-header-files. 2014-09-12 20:07:05 -04:00
Joel Martinez 6c1bf0d17e [mdoc] consolidated dropns and dropns-assemblies into a single parameter.
Based on pull request feedback, this is a simpler usage, and meets our required use-case. A sample version of this parameter would be: `--dropns MyUnifiedAssembly=MyDroppedPrefix`
2014-09-12 17:22:06 -04:00
Rodrigo Kumpera a8392ba567 [runtime] Improve thread dumping reliability by doing it while holding the fat locks.
We take the loader and the root domain locks before doing a thread dump. This reduces the odds
of us suspending a thread that holds either of them and deadlocking, for example, while decoding
AOT JIs.
2014-09-12 14:18:39 -04:00
Neale Ferguson f065a289f6 Maximum large object size should be limited by SSIZE_MAX not SIZE_MAX.
The latter appears to be a hangover from 32-bit systems.
2014-09-12 11:37:52 -04:00
Neale Ferguson 3f740f3d94 Fixes 19752 -
Users have been complaining about strange errors arising when using the OracleClient classes.
I have tracked it down to the OciDefineHandle and OciDefineByPos calls, and OracleParameter
handling of amanged objects by unmanaged code. Currently two of the parameters passed to the
above OCI  call are short variables. They are passed as "ref" fields as Oracle uses their
address to put size and indicator data once the data is fetched. However, being defined as
short means that they are eligible for being moved during garbage collection. Thus if that
field is moved between the OciDefineByPos call and the fetch of the data then what Oracle is
pointing to may no longer be variable. I'm thinking it may be better to define these fields as
IntPtr and allocate them and retrieve their values via Marshal.ReadInt16. As for OracleParameter,
it uses a managed object "indicator" that is also used in a similar way. This reference is replaced
by a IntPtr and a get/set method to access the contents.
2014-09-12 11:25:57 -04:00
Marek Safar 300876b229 [mcs] Don't use `1 naming for compiler generated second level and deeper nested types. Fixes #22893 2014-09-12 15:20:26 +02:00
Zoltan Varga 7f6a46403d Merge pull request #1276 from Therzok/master
Add concurrent hashtable test to gitignore.
2014-09-11 20:58:12 -04:00
Zoltan Varga f0d2ee46f8 Merge pull request #1275 from ranma42/fix-lib64
Fix build with lib64 folder for arch-specific libraries
2014-09-11 20:57:48 -04:00
Sebastien Pouliot 90bb9c6d00 [System] Fix building unit tests under the mobile profile 2014-09-11 20:43:21 -04:00
Zoltan Varga 41339d95c6 [jit] Always pass the imt arg to interface calls in gsharedvt methods. Fixes #22624. 2014-09-11 17:57:11 -04:00
Joel Martinez c842249d72 [mdoc] Formatting feedback from pull #1273 2014-09-11 15:43:28 -04:00
Marek Safar 9fd3c7ac4b [mcs] property pattern 2014-09-11 19:40:51 +02:00
Rolf Bjarne Kvinge 550d314e51 Don't throw TimeZoneNotFoundExceptions when iOS gives us invalid data.
iOS 8 GM lists "Asia/Chita" among its time zones, but when requesting
the time zone data for that time zone, no data is returned.

With this change we ignore time zones without any data when fetching
all the timezones on the system.
2014-09-11 19:04:00 +02:00
Marek Safar 0083728e19 Merge pull request #1278 from esdrubal/datetimegmt
GMT DateTimeOffset is now properly parsed.
2014-09-11 05:29:27 -09:00
Marcos Henrich e73499b337 GMT DateTimeOffset is now properly parsed. Fixes #22851.
GMT date formats set useutc to true, so now useutc is checked to init DateTimeOffset with a zero offset.
2014-09-11 15:12:36 +01:00
Marcos Henrich b818408b16 Test that offset is zero when date ends with GMT. Covers #22851. 2014-09-11 15:11:42 +01:00
Marek Safar b946785022 Merge pull request #1277 from esdrubal/calendarsdaysinyear
Improved CalendricalCalculations fixed_from_dmy methods.
2014-09-11 03:17:52 -09:00
Marcos Henrich 468160e712 Improved CalendricalCalculations fixed_from_dmy methods. Fixes #21930.
In some cases fixed_from_dmy is used with the month parameter greater than the number of months of that year.
Year is now incremented until month parameter is valid.
2014-09-11 12:54:36 +01:00
Marcos Henrich da04211894 Test Calendar.DaysInYear. Covers #21930. 2014-09-11 12:53:25 +01:00
Ungureanu Marius 924a954d1f Add concurrent hashtable test to gitignore. 2014-09-11 13:39:57 +03:00
Marek Safar 1242b4b82c [corlib] Enumerate all subdirectories including the first one. Fixes #22857 2014-09-11 11:20:44 +02:00
Marek Safar 1eb9ba45c4 [system] Fixes failing test 2014-09-11 10:31:26 +02:00
Andrea Canciani d2f391c80c Do not hardcode lib path
The changes from 3408b8e5f1 cause
regressions in distros which do not use lib as folder for
arch-specific libraries, like Fedora x86_64.

Instead, reloc_libdir should be used (as in data/mono.pc.in).

This change is released under the MIT/X11 license.
2014-09-11 08:50:47 +02:00
Zoltan Varga 2c11b2ea4a [aot] Avoid a stack overflow if profiler enter-leave events are requested in the full-aot mode. 2014-09-10 19:14:57 -04:00
Zoltan Varga 7912295bc9 [runtime] Fix the RESOLTION_SCOPE->RESOLUTION_SCOPE typo. 2014-09-10 19:07:04 -04:00
Joel Martinez 582b370761 [mdoc] added -dropns-assemblies parameter.
Will now only replace the namespace when the type or member is in a listed assembly
2014-09-10 16:54:54 -04:00
Zoltan Varga d3624fa257 [runtime] Redirect runtime logging to asl_log only on ios, not when running the cross compiler. 2014-09-10 14:24:11 -04:00
Marek Safar 1d63659429 Merge pull request #1271 from akoeplinger/fix-switch-ctor
[System] Fixed Diagnostics.Switch ctor behavior for null parameters
2014-09-10 08:19:20 -09:00
Alexander Köplinger 29abf6790d [System] Fixed Diagnostics.Switch ctor behavior for null parameters
Passing null to the displayName or description ctor parameter on MS.NET makes them equal to an empty string.
Fixed the Mono behavior to match .NET.
2014-09-10 19:09:34 +02:00
Marek Safar 6d07ad8e7a [system.net.http] Encode ContentDisposition name. Fixes #18422 2014-09-10 19:09:27 +02:00
Marek Safar 9050d9cba1 [mcs] Remove value type constrained type parameter instantiation optimization to handle parameterless struct constructors 2014-09-10 19:09:27 +02:00
Marek Safar 156c7cf97a Merge pull request #1270 from esdrubal/xmlimplicit
When needed serialized objects are now implicitly converted.
2014-09-10 08:08:26 -09:00
Marcos Henrich f8ff518ebe When needed serialized objects are now implicitly converted.
Fixes #20403.
2014-09-10 17:25:44 +01:00
Marcos Henrich 5fdbad2444 Changed method ImplicitConvert to internal static. 2014-09-10 17:24:38 +01:00
Marcos Henrich 0804720aaa ImplicitConvert was using method with wrong parameter and return type. 2014-09-10 17:23:44 +01:00
Marcos Henrich f008d4afb6 Test XmlSerialization of element that requires implicit conversion.
Covers #20403.
2014-09-10 16:30:03 +01:00
Martin Baulig bbbcc73bde [websocket]: Fix ClientWebSocket.ReceiveAsync() with small buffer; bug #22704.
When calling ClientWebSocket.ReceiveAsync() with a buffer that's smaller than
the received chunk, we need to cache the header until next call.
2014-09-10 17:09:43 +02:00
Alexander Köplinger 0537cb3c2a Fix the build 2014-09-10 14:26:36 +02:00
Marek Safar 95b09a1a79 Merge pull request #1269 from Therzok/refactorSwitches
[SourceSwitch] Refactor a piece of code.
2014-09-10 02:01:15 -09:00
Marius Ungureanu 6e5e8d7915 Fix build failure caused by #1267. 2014-09-10 13:59:49 +03:00
Marius Ungureanu 462c6b08e9 [SourceSwitch] Refactor a piece of code. 2014-09-10 13:04:10 +03:00
Marek Safar ebe2a3df1d [system.net.http] Handle Content-Disposition in textual form as well. 2014-09-10 09:48:26 +02:00
Marek Safar 5846c52247 Merge pull request #1267 from ramtinkermani/master
The ShouldTrace method's conditions are fixed to correctly trace the events based...
2014-09-09 20:40:10 -09:00
ramtin 6cb9a04fca Unit Tests for SourceSwitch. Counting the number of events traced based on the Trace Level 2014-09-09 15:07:14 -07:00
Marek Safar 5e9eba8ffb [system.net.http] Tokenize dash only in range values. Fixes #22764 2014-09-09 23:41:49 +02:00
Rodrigo Kumpera 65f17c2c26 [jit] Fix error handling in a few places in the jit. 2014-09-09 16:34:55 -04:00
Rodrigo Kumpera 00f631312f [runtime] Fix error handling in mono_metadata_parse_mh_full. 2014-09-09 16:34:54 -04:00
Rodrigo Kumpera 666ea5f867 [runtime] Update reflection.c to use mono_class_get_checked. 2014-09-09 16:34:54 -04:00
Rodrigo Kumpera 3bbedfebb7 [runtime] Update marshal.c to use mono_class_get_checked. 2014-09-09 16:34:54 -04:00
Rodrigo Kumpera a17da53c37 [runtime] Cleanup usage of mono_class_get to object.c 2014-09-09 16:34:54 -04:00
Rodrigo Kumpera 6382fd247d [runtime] Cleanup usage of mono_class_get in loader.c 2014-09-09 16:34:54 -04:00
Rodrigo Kumpera a94aa47cd8 [runtime] Make icall use mono_class_get_checked. 2014-09-09 16:34:53 -04:00
Rodrigo Kumpera ec7be0fd36 [utils] Add mono_error_convert_to_exception. 2014-09-09 16:34:53 -04:00
Rodrigo Kumpera 4b726a17b8 Introduce mono_class_from_name_case_checked 2014-09-09 16:34:53 -04:00
Rodrigo Kumpera 7dd6476b8e [runtime] Use MonoError in exception.c 2014-09-09 16:34:53 -04:00
Rodrigo Kumpera 2ed68d65e8 [runtime] Change mono_type_get_full to use MonoError properly. 2014-09-09 16:34:53 -04:00
Rodrigo Kumpera 3968beaced [runtime] Introduce MonoError to mono_type_create_from_typespec. 2014-09-09 16:34:52 -04:00
Rodrigo Kumpera 5fa8e1abe7 [runtime] Plug MonoError into another function. 2014-09-09 16:34:52 -04:00
Rodrigo Kumpera 6d60ff581c [runtime] Introduce MonoError to mono_class_get_full.
Introduce MonoError into callers of mono_class_get_full.

Make mono_class_get not abort on failure until all callers are fixed.
2014-09-09 16:34:52 -04:00
Rodrigo Kumpera 5c8ab13f0c Add mono_class_get_checked to mono_class_create_from_typedef. 2014-09-09 16:34:52 -04:00
Rodrigo Kumpera 32e2bb7c39 [runtime] Change mono_type_get_full to use mono_class_get_checked. 2014-09-09 16:34:52 -04:00
Rodrigo Kumpera a824dde30f [runtime] Change do_mono_metadata_parse_type to use mono_class_get_checked 2014-09-09 16:34:51 -04:00
Rodrigo Kumpera 3ee5d36ec7 [runtime] Introduce mono_class_get_checked. 2014-09-09 16:34:51 -04:00
Rodrigo Kumpera 57cce937d8 [runtime] Introduce mono_class_from_typeref_checked and replace usage of the old one with it.
This is another step into wiring up MonoError into the typeloading codebase. This is
one more function that needs it.
2014-09-09 16:34:51 -04:00
Rodrigo Kumpera efa5a5ad17 [utils] Add mono_error_set_assembly_load_simple to ease producing an error message for ref only assemblies. 2014-09-09 16:34:51 -04:00
Rodrigo Kumpera 82c38c4409 [metadata] Replace mono_class_get_full with a saner pair of mono_class_get and mono_class_inflate_generic_class_checked. 2014-09-09 16:34:51 -04:00
Rodrigo Kumpera d3da468965 [runtime] Expose mono_class_inflate_generic_class_checked to the internal API. 2014-09-09 16:34:50 -04:00
Rodrigo Kumpera 2006bf3f44 Add deprecation notice for mono_class_get_full. 2014-09-09 16:34:50 -04:00
ramtin 59be7ba9c5 The ShouldTrace conditions are fixed to correctly trace the events based on the Level 2014-09-09 11:50:06 -07:00
Marcos Henrich bb296086c0 TimeFormat "zzz" is only valid after a date. 2014-09-09 17:44:00 +01:00
Marek Safar ccbd0b1a0d Merge pull request #1266 from esdrubal/datetimenewformat
Added time format with only offset.
2014-09-09 05:29:34 -09:00
Rodrigo Kumpera a27d7ee86d Merge pull request #1248 from kumpera/kill_the_interpreter
[runtime] Remove the interpreter.
2014-09-09 09:15:01 -04:00
Rodrigo Kumpera 8602eed8f7 [cleanup] Remove more old files. 2014-09-09 09:14:37 -04:00
Marcos Henrich a27a42b99b Added time format with only offset. Fixes #22558. 2014-09-09 12:49:00 +01:00
Marcos Henrich cf7319008b Test DateTimeOffset.Parse with format yyyy-dd-MMzzz. Covers #22558. 2014-09-09 12:41:27 +01:00
Jo Shields 4f8114aabd Fix "make dist" error
ad8236ebb8 broke "make dist", by removing Makefile.am.in whilst leaving it in EXTRA_DIST
2014-09-09 11:30:52 +01:00
Ludovic Henry 749171e917 [sgen] Tweak internal class allocator sizes to add highly used on
We observed on multiples benchmarks that most internal allocations are for 8, 16, 296 (32bits), 328 (64bits), 504 (32bits) and 1016 (64bits) bytes of memory. To minimize waste, we added these memory sizes to the default allocator sizes.
2014-09-09 11:16:09 +02:00
Atsushi Eno 2b72c6bdf2 [aspnet/ajax] fix bug #6512 (by Mikkel Kruse Johnsen) - don't deserialize GET parameters. 2014-09-09 15:09:27 +08:00
Zoltan Varga c8e73660db Merge pull request #1263 from madewokherd/begindecls
Use G_BEGIN_DECLS instead of __BEGIN_DECLS.
2014-09-08 22:40:43 -04:00
Joel Martinez dc17504d3f [mdoc] New make test, reproduces issue with --dropns when run with a secondary assembly that doesn't drop the specified namespace 2014-09-08 20:45:16 -04:00
Zoltan Varga 4373bd213a [aot] Really fix the aot-cache logging. Rework how mscorlib is handled in the aot cache. 2014-09-08 20:25:49 -04:00
Zoltan Varga f574898b09 [aot] Fix a crash in the aot cache code if MONO_LOG_LEVEL is set. 2014-09-08 20:01:21 -04:00
Zoltan Varga ceb74f4118 Merge pull request #1264 from madewokherd/vasprintf
Avoid use of vasprintf.
2014-09-08 18:49:55 -04:00
Joel Martinez 41c28a59bb [mdoc] New make test for the --dropns functionality 2014-09-08 17:54:05 -04:00
Vincent Povirk 83924ebb2c Avoid use of vasprintf.
This is not available on mingw-w64, and the extra allocation is unnecessary.

This commit licensed as MIT/X11.
2014-09-08 15:48:20 -05:00
Vincent Povirk 3c920be3e5 Use G_BEGIN_DECLS instead of __BEGIN_DECLS.
__BEGIN_DECLS isn't available in mingw-w64.

This commit licensed as MIT/X11.
2014-09-08 13:54:48 -05:00
Marek Safar 27b3636cef Merge pull request #1262 from esdrubal/uriserializationinfo
Added support for UriComponents.SerializationInfoString.
2014-09-08 05:40:33 -09:00
Marcos Henrich ea6b8960d0 Added support for UriComponents.SerializationInfoString. Fixes #21571. 2014-09-08 22:21:02 +08:00
Marcos Henrich d2d338fe26 Test UriComponents.SerializationInfoString. Covers #21571. 2014-09-08 22:09:52 +08:00
Marek Safar 4bd9820eaa Merge pull request #1253 from esdrubal/datetimeiso8601
DateTime.Parse now handles unlimited number of fractional digits.
2014-09-08 03:52:54 -09:00
Marek Safar 14f56f6aea [system.numerics] Unify handling of default ctor and zero. Fixes #22591 2014-09-08 14:50:39 +02:00
Marek Safar 88bc5cee97 [mcs] switch statement with recursive pattern matching 2014-09-08 11:48:52 +02:00
Marek Safar 92ff3c372d [system.net.http] Make SendAsync state free to handle recursive calls. Fixes #22724 2014-09-08 11:48:51 +02:00
Rodrigo Kumpera 128f297b84 Merge pull request #1260 from khellang/patch-2
Added less media type
2014-09-07 12:26:57 -04:00
Rodrigo Kumpera 247bf1f21c Merge pull request #1259 from khellang/patch-1
Updated WOFF to official media type
2014-09-07 12:26:37 -04:00
Kristian Hellang d595c66bbd Added less media type 2014-09-07 17:24:37 +02:00
Kristian Hellang 788c95a0e0 Updated WOFF to official media type
See http://www.w3.org/TR/WOFF/#appendix-b for the media type registration
2014-09-07 17:19:42 +02:00
Marek Safar e207bf76ab Merge pull request #1258 from akoeplinger/unify-test-namespaces
Cleanup namespace names of class lib tests to follow convention
2014-09-06 21:25:38 -09:00
Zoltan Varga f8365f7900 [gsharedvt] Allow the SIZEOF opcode in gsharedvt code if it doesn't reference a gsharedvt type. Fixes #22711. 2014-09-06 00:38:38 -04:00
Marcos Henrich 1852905c44 Test that wrong ISO8601 dates throw FormatException. 2014-09-05 21:31:53 +08:00
Alexander Köplinger ddcfc42070 Cleanup namespace names of class lib tests to follow convention
A couple of the test suites didn't follow the MonoTests.<namespace of class under test> naming convention for the namespace.
2014-09-04 18:55:58 +02:00
Marcos Henrich db57c23c29 DateTime.Parse now handles unlimited number of fractional digits.
This change was made because .NET can parse ISO8601 format with an unlimited number of fractional digits.
Fixes #22417.
2014-09-03 18:29:58 +08:00
Marcos Henrich 17972cec4f Added test ISO8601FractionalDigits.
Covers #22417.
2014-09-03 18:27:28 +08:00
Rodrigo Kumpera 6bee6a7b18 [runtime] Remove the interpreter. 2014-09-01 13:27:03 -04:00
Stephen McConnel 44acb717d8 Fix scrolling in SWF.ListView.EnsureVisible(int index)
This fixes https://bugzilla.xamarin.com/show_bug.cgi?id=22483
2014-08-29 12:25:48 -05:00
Marcos Henrich 8e9da60e99 KeyPairPresistence now tries to fix folder permissions.
An exception is no longer thrown if the folder permissions can be fixed.
Fixes bug 19274.
2014-08-12 19:08:37 +01:00
Fritz Elfert ce9db9db3f Fixed Bug #21135 - Deadlock in WebConnectionStream 2014-07-11 19:20:11 +02:00
Reuben Bond eeac252404 Test ClientWebSocket.SendAsync EndOfMessage 2014-06-21 14:57:56 +10:00
Reuben Bond bbbe1e52d3 ClientWebSocket: SendAsync endOfMessage inverted.
endOfMessage should indicate whether or not additional message parts will follow the current one. Currently, the meaning in ClientWebSocket.cs is inverted: !endOfMessage indicates that no more parts will follow the current one.

See the WebSockets RFC, 'frame-fin' at the top of http://tools.ietf.org/html/rfc6455#page-31.
Also see the MSDN docs for SendAsync: http://msdn.microsoft.com/en-us/library/system.net.websockets.websocket.sendasync(v=vs.110).aspx
2014-06-20 16:48:36 +10:00
MarkS 707051b342 [MWF] Partially implement Help.ShowHelp 2014-03-17 12:30:16 +01:00
Eberhard Beilharz 2d420bfb7a Set ErrorInfo in Marshal.GetHRForException
Marshal.GetHRForException had a MonoTODO because it needs to set
the errorinfo object so that exceptions get properly passed to
unmanaged code. Since not all managed exceptions have a corresponding
HR value but we might need to get to the original thrown exception
we implement a ManagedErrorInfo helper class that implements the
IErrorInfo interface but also stores the exception.

In GetExceptionForHR we check if the errorinfo we get is a
ManagedErrorInfo. If it is we return the exception stored in there
(if it converts to the same error code), otherwise we construct a new
exception.
2014-03-13 18:55:39 +01:00
Eberhard Beilharz 554d6abf4c Properly convert COM error codes to C# exceptions
Also use additional information provided by IErrorInfo to fill in
exception details.

To make use of IErrorInfo on Linux a suitable implementation has to be
provided, e.g. by including libcom plus adding a mapping from
oleauth32.dll to the shared library that provides the implementation.

This completes mono bug 496138
(https://bugzilla.novell.com/show_bug.cgi?id=496138)
2014-03-13 18:53:57 +01:00
7945 changed files with 85220 additions and 538386 deletions

No files matched your search

+5
View File
@@ -69,6 +69,7 @@ config.status
config.sub
configure
configure.scan
cygconfig.h
depcomp
install-sh
libtool
@@ -108,6 +109,10 @@ GRTAGS
GSYMS
GTAGS
# Doxygen
docs/doxygen*
docs/perlmod*
##############################################################################
# Mono-specific patterns
+8 -3
View File
@@ -10,12 +10,10 @@
[submodule "external/debian-snapshot"]
path = external/debian-snapshot
url = git://github.com/directhex/mono-snapshot.git
[submodule "external/entityframework"]
path = external/entityframework
url = git://github.com/mono/entityframework.git
[submodule "external/rx"]
path = external/rx
url = git://github.com/mono/rx.git
branch = rx-oss-v2.2
[submodule "external/ikvm"]
path = external/ikvm
url = git://github.com/mono/ikvm-fork.git
@@ -25,3 +23,10 @@
[submodule "external/ikdasm"]
path = external/ikdasm
url = git://github.com/mono/ikdasm.git
[submodule "external/referencesource"]
path = external/referencesource
url = git://github.com/mono/referencesource
branch = mono-4.0.0-branch
[submodule "external/reference-assemblies"]
path = external/binary-reference-assemblies
url = git://github.com/mono/reference-assemblies.git
+2 -2
View File
@@ -5,7 +5,7 @@ When contributing to the Mono project, please follow the [Mono Coding
Guidelines][1]. We have been using a coding style for many years,
please make your patches conform to these guidelines.
[1] http://www.mono-project.com/Coding_Guidelines
[1]: http://www.mono-project.com/community/contributing/coding-guidelines/
Etiquette
=========
@@ -68,7 +68,7 @@ status of your pull request. If it succeeded and we like the changes,
a maintainer will likely merge it. Otherwise, you can amend your pull
request to fix build breakage and Jenkins will test it again.
[2] http://monojenkins.cloudapp.net
[2]: http://jenkins.mono-project.com/
# Inactivity
+3 -3
View File
@@ -8,7 +8,7 @@ if CROSS_COMPILING
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
else
if ONLY_MONOTOUCH
SUBDIRS = $(MONOTOUCH_SUBDIRS) runtime
@@ -19,7 +19,7 @@ else
SUBDIRS = po $(libgc_dir) eglib mono $(ikvm_native_dir) support data runtime scripts man samples msvc $(docs_dir)
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
DIST_SUBDIRS = m4 po $(libgc_dir) eglib mono ikvm-native support data runtime scripts man samples tools msvc docs
endif
endif
endif
@@ -52,7 +52,7 @@ dist-hook:
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
rm -rf `find $(top_distdir)/external -path '*\.git'`
rm -f `find $(top_distdir)/external -path '*\.exe'`
rm -f `find $(top_distdir)/external -path '*\.dll'`
rm -f `find $(top_distdir)/external -path '*\.dll' -not -path '*/binary-reference-assemblies/*'`
cp mcs/class/lib/basic/System.Configuration.dll mcs/class/lib/monolite/
cp mcs/class/lib/basic/System.Security.dll mcs/class/lib/monolite/
# Disable this for now because it is very slow and causes wrench to timeout:
+133 -247
View File
@@ -1,152 +1,72 @@
Mono is a software platform designed to allow developers to easily create cross platform applications.
Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
It is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
[![Build Status](http://jenkins.mono-project.com/job/test-mono-mainline/badge/icon/)](http://jenkins.mono-project.com/job/test-mono-mainline/)
1. [Installation](#compilation-and-installation)
1. [Compilation and Installation](#compilation-and-installation)
2. [Using Mono](#using-mono)
3. [Directory Roadmap](#directory-roadmap)
4. [Contributing to Mono] (#contributing-to-mono)
5. [Git submodules maintenance](#git-submodules-maintenance)
6. [Reporting bugs](#reporting-bugs)
4. [Contributing to Mono](#contributing-to-mono)
5. [Reporting bugs](#reporting-bugs)
6. [Configuration Options](#configuration-options)
**Build Status**
| debian-amd64 | debian-i386 | debian-ppc64el | centos-s390x | windows-amd64 |
|:-----------------------:|:----------------------:|:-------------------------:|:-----------------------:|:-------------------------:|
| [![debian-amd64][1]][2] | [![debian-i386][3]][4] | [![debian-ppc64el][5]][6] | [![centos-s390x][7]][8] | [![windows-amd64][9]][10] |
[1]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-amd64/badge/icon
[2]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-amd64/
[3]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-i386/badge/icon
[4]: http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-i386/
[5]: http://jenkins.mono-project.com/job/test-mono-mainline-communityarchitectures/label=debian-ppc64el/badge/icon
[6]: http://jenkins.mono-project.com/job/test-mono-mainline-communityarchitectures/label=debian-ppc64el/
[7]: http://jenkins.mono-project.com/job/test-mono-mainline-communityarchitectures/label=centos-s390x/badge/icon
[8]: http://jenkins.mono-project.com/job/test-mono-mainline-communityarchitectures/label=centos-s390x/
[9]: https://ci.appveyor.com/api/projects/status/1e61ebdfpbiei58v/branch/master?svg=true
[10]: https://ci.appveyor.com/project/ajlennon/mono-817/branch/master
Compilation and Installation
============================
a. Build Requirements
Building the Software
---------------------
* On Itanium, you must obtain libunwind: http://www.hpl.hp.com/research/linux/libunwind/download.php4
Please see our guides for building Mono on
[Mac OS X](http://www.mono-project.com/docs/compiling-mono/mac/),
[Linux](http://www.mono-project.com/docs/compiling-mono/linux/) and
[Windows](http://www.mono-project.com/docs/compiling-mono/windows/).
* On Solaris
1. Make sure that you used GNU tar to unpack this package, as
Solaris tar will not unpack this correctly, and you will get strange errors.
2. Make sure that you use the GNU toolchain to build the software.
3. Optional dependencies
* libgdiplus - Required for System.Drawing. This library in turn requires glib and pkg-config
* pkg-config - Available at: http://www.freedesktop.org/Software/pkgconfig
* glib 2.4 - Available at: http://www.gtk.org/
* libzlib - This library and the development headers are required for compression
file support in the 2.0 profile.
4. Mono is required to build Mono. Use a system package or monolite (explained further below)
5. If you have a system Mono (not monolite), you will need to read this: http://mono-project.com/Parallel_Mono_Environments#Setting_up_a_Build_Environment
b. Building the Software
------------------------
If you obtained this package as an officially released tarball,
this is very simple, use configure and make:
`./configure --prefix=/usr/local ; make ; make install`
Mono supports a JIT engine on x86, SPARC, SPARCv9, S/390,
S/390x, AMD64, ARM and PowerPC systems.
If you obtained this as a snapshot, you will need an existing
Mono installation. To upgrade your installation, unpack both
mono and mcs:
tar xzf mcs-XXXX.tar.gz
tar xzf mono-XXXX.tar.gz
mv mono-XXX mono
mv mcs-XXX mcs
cd mono
./autogen.sh --prefix=/usr/local
make
The Mono build system is silent for most compilation commands.
To enable a more verbose compile (for example, to pinpoint
problems in your makefiles or your system) pass the V=1 flag to make, like this:
` make V=1`
c. Building the software from GIT
---------------------------------
If you are building the software from GIT, make sure that you
have up-to-date mcs and mono sources:
* If you are an anonymous user: `git clone git://github.com/mono/mono.git`
* If you are a Mono contributor with read/write privileges: `git clone [email protected]:mono/mono.git`
Then, go into the mono directory, and configure:
cd mono
./autogen.sh --prefix=/usr/local
make
For people with non-standard installations of the auto* utils and of
pkg-config (common on misconfigured OSX and windows boxes), you could get
an error like this:
./configure: line 19176: syntax error near unexpected token 'PKG_CHECK_MODULES(BASE_DEPENDENCIES,' ...
This means that you need to set the ACLOCAL_FLAGS environment variable
when invoking autogen.sh, like this:
ACLOCAL_FLAGS="-I $acprefix/share/aclocal" ./autogen.sh --prefix=/usr/local
where $acprefix is the prefix where aclocal has been installed.
This will automatically go into the mcs/ tree and build the
binaries there.
This assumes that you have a working mono installation, and that
there's a C# compiler named 'mcs', and a corresponding IL
runtime called 'mono'. You can use two make variables
EXTERNAL_MCS and EXTERNAL_RUNTIME to override these. e.g., you
can say:
make EXTERNAL_MCS=/foo/bar/mcs EXTERNAL_RUNTIME=/somewhere/else/mono
Note that building from Git assumes that you already have Mono installed,
so please download and [install the latest Mono release](http://www.mono-project.com/download/)
before trying to build from Git. This is required because the Mono build
relies on a working Mono C# compiler to compile itself
(also known as [bootstrapping](http://en.wikipedia.org/wiki/Bootstrapping_(compilers))).
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, an obvious choice
is to install the latest released packages of 'mono' for your
distribution and running `autogen.sh; make; make install` in the
mono module directory.
If you don't have a working Mono installation, you can try a slightly
more risky approach: getting the latest version of the 'monolite' distribution,
which contains just enough to run the 'mcs' compiler. You do this with:
You can also try a slightly more risky approach: this may not work,
so start from the released tarball as detailed above.
# Run the following line after ./autogen.sh
make get-monolite-latest
This works by first getting the latest version of the 'monolite'
distribution, which contains just enough to run the 'mcs'
compiler. You do this with:
This will download and place the files appropriately so that you can then
just run:
# Run the following line after ./autogen.sh
make get-monolite-latest
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/basic.exe
This will download and automatically gunzip and untar the
tarball, and place the files appropriately so that you can then
just run: `make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe`
That will use the files downloaded by 'make get-monolite-latest.
The build will then use the files downloaded by `make get-monolite-latest`.
Testing and Installation
------------------------
You can run *(part of)* the mono and mcs test suites with the command: `make check`.
All tests should pass.
If you want more *extensive* tests, including those that test the
class libraries, you need to re-run 'configure' with the
'--enable-nunit-tests' flag, and try: `make -k check`
You can run the mono and mcs test suites with the command: `make check`.
Expect to find a few test suite failures. As a sanity check, you
can compare the failures you got with
https://wrench.mono-project.com/Wrench/
can compare the failures you got with [https://wrench.mono-project.com/Wrench/](https://wrench.mono-project.com/Wrench/)
and [http://jenkins.mono-project.com/](http://jenkins.mono-project.com/).
You can now install mono with: `make install`
@@ -154,8 +74,86 @@ You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.
d. Configuration Options
------------------------
Using Mono
==========
Once you have installed the software, you can run a few programs:
* `mono program.exe` runtime engine
* `mcs program.cs` C# compiler
* `monodis program.exe` CIL Disassembler
See the man pages for mono(1), mcs(1) and monodis(1) for further details.
Directory Roadmap
=================
* `data/` - Configuration files installed as part of the Mono runtime.
* `docs/` - Technical documents about the Mono runtime.
* `external/` - Git submodules for external libraries (Newtonsoft.Json, ikvm, etc).
* `man/` - Manual pages for the various Mono commands and programs.
* `mcs/` - The class libraries, compiler and tools
* `class/` - The class libraries (like System.*, Microsoft.Build, etc.)
* `mcs/` - The Mono C# compiler written in C#
* `tools/` - Tools like gacutil, ikdasm, mdoc, etc.
* `mono/` - The core of the Mono Runtime.
* `arch/` - Architecture specific portions.
* `cil/` - Common Intermediate Representation, XML
definition of the CIL bytecodes.
* `dis/` - CIL executable Disassembler
* `io-layer/` - The I/O layer and system abstraction for
emulating the .NET IO model.
* `metadata/` - The object system and metadata reader.
* `mini/` - The Just in Time Compiler.
* `runtime/` - A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
* `samples/` -Some simple sample programs on uses of the Mono
runtime as an embedded library.
* `scripts/` - Scripts used to invoke Mono and the corresponding program.
* `../olive/` - Incubation code from [Olive](https://github.com/mono/olive).
* If the directory ../olive is present (as an
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
Contributing to Mono
====================
Before submitting changes to Mono, please review the [contribution guidelines](http://www.mono-project.com/community/contributing/).
Please pay particular attention to the [Important Rules](http://www.mono-project.com/community/contributing/#important-rules) section.
Reporting bugs
==============
To submit bug reports, please use [Xamarin's Bugzilla](https://bugzilla.xamarin.com/)
Please use the search facility to ensure the same bug hasn't already
been submitted and follow our [guidelines](http://www.mono-project.com/community/bugs/make-a-good-bug-report/)
on how to make a good bug report.
Configuration Options
=====================
The following are the configuration options that someone
building Mono might want to use:
@@ -164,17 +162,16 @@ building Mono might want to use:
compilation of a Mono runtime with the SGen garbage collector.
* On platforms that support it, after building Mono, you will have
both a mono binary and a mono-sgen binary. Mono uses Boehm, while
mono-sgen uses the Simple Generational GC.
both a `mono` binary and a `mono-sgen` binary. `mono` uses Boehm, while
`mono-sgen` uses the Simple Generational GC.
* `--with-gc=[boehm, included, sgen, none]` - Selects the default Boehm garbage
* `--with-gc=[included, boehm, none]` - Selects the default Boehm garbage
collector engine to use.
* *included*: (*slighty modified Boehm GC*)
This is the default value, and its
the most feature complete, it will allow Mono
to use typed allocations and support the
debugger.
This is the default value for the Boehm GC, and it's
the most feature complete, it will allow Mono
to use typed allocations and support the debugger.
* *boehm*:
This is used to use a system-install Boehm GC,
@@ -267,30 +264,6 @@ and runtime.
* This defaults to `yes`.
* `--with-moonlight=yes,no`
* Whether you want to generate the Silverlight/Moonlight
libraries and toolchain in addition to the default
(1.1 and 2.0 APIs).
* This will produce the `smcs` compiler which will reference
the Silverlight modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
* `--with-moon-gc=boehm,sgen` - Select the GC to use for Moonlight.
* *boehm*:
Selects the Boehm Garbage Collector, with the same flags
as the regular Mono build. This is the default.
* *sgen*:
Selects the new SGen Garbage Collector, which provides
Generational GC support, using the same flags as the
mono-sgen build.
* This defaults to `boehm`.
* `--with-libgdiplus=installed,sibling,<path>` - Configure where Mono
searches for libgdiplus when running System.Drawing tests.
@@ -298,7 +271,7 @@ searches for libgdiplus when running System.Drawing tests.
library is available to Mono through the regular
system setup.
* `sibling' can be used to specify that a libgdiplus
* `sibling` can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
@@ -405,13 +378,13 @@ for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
* See the http://www.mono-project.com/Mono_LLVM for the
* See http://www.mono-project.com/docs/advanced/mono-llvm/ for the
full details and up-to-date information on this feature.
* You will need to have an LLVM built that Mono can link
against.
* The --enable-loadedllvm variant will make the LLVM backend
* The `--enable-loadedllvm` variant will make the LLVM backend
into a runtime-loadable module instead of linking it directly
into the main mono binary.
@@ -445,7 +418,6 @@ not done much testing with Mono.
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
* `--disable-dev-random`
* Mono uses /dev/random to obtain good random data for
@@ -464,89 +436,3 @@ http://code.google.com/p/nativeclient/
* Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
Using Mono
==========
Once you have installed the software, you can run a few programs:
* `mono program.exe` runtime engine
* `mcs program.cs` C# compiler
* `monodis program.exe` CIL Disassembler
See the man pages for mono(1), mint(1), monodis(1) and mcs(2)
for further details.
Directory Roadmap
=================
* `docs/` - Technical documents about the Mono runtime.
* `data/` - Configuration files installed as part of the Mono runtime.
* `mono/` - The core of the Mono Runtime.
* `metadata/` - The object system and metadata reader.
* `mini/` - The Just in Time Compiler.
* `dis/` - CIL executable Disassembler
* `cli/` - Common code for the JIT and the interpreter.
* `io-layer/` - The I/O layer and system abstraction for
emulating the .NET IO model.
* `cil/` - Common Intermediate Representation, XML
definition of the CIL bytecodes.
* `interp/` - Interpreter for CLI executables (obsolete).
* `arch/` - Architecture specific portions.
* `man/` - Manual pages for the various Mono commands and programs.
* `samples/` -Some simple sample programs on uses of the Mono
runtime as an embedded library.
* `scripts/` - Scripts used to invoke Mono and the corresponding program.
* `runtime/` - A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
* `../olive/`
* If the directory ../olive is present (as an
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
Contributing to Mono
====================
Before submitting changes to Mono, please review the contribution guidelines at http://mono-project.com/Contributing. Please pay particular attention to the [Important Rules](http://mono-project.com/Contributing#Important_Rules) section.
Git submodules maintenance
==========================
Read documentation at http://mono-project.com/Git_Submodule_Maintenance
Maintainer
==========
Mono is maintained by miguel@xamarin.com
Reporting bugs
==============
To submit bug reports, please use Xamarin's Bugzilla:
https://bugzilla.xamarin.com/
Please use the search facility to ensure the same bug hasn't already
been submitted and follow our guidelines on how to make a good bug
report:
http://mono-project.com/Bugs#How_to_make_a_good_bug_report
+1 -1
View File
@@ -26,7 +26,7 @@ i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-li
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
?86-pc-cygwin*|i?86-pc-cygwin*|i?86-pc-mingw32*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*|arm-apple-darwin*)
+105
View File
@@ -0,0 +1,105 @@
#
# Appveyor configuration file for CI build of Mono on Windows (under Cygwin)
#
# For further details see http://www.appveyor.com
#
# Use 'unstable' Appveyor build worker image as Appveyor have added Cygwin to this for us
os: Unstable
#
# Custom environment variables
#
environment:
global:
CYG_ROOT: C:/cygwin
CYG_MIRROR: http://cygwin.mirror.constant.com
CYG_CACHE: C:/cygwin/var/cache/setup
NSIS_ROOT: C:\nsis
#
# Initialisation prior to pulling the Mono repository
#
init:
- 'echo Building Mono for Windows'
- 'echo System architecture: %PLATFORM%'
- 'echo Repo build branch is: %APPVEYOR_REPO_BRANCH%'
- 'echo Build folder is: %APPVEYOR_BUILD_FOLDER%'
# Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
- 'git config --global core.autocrlf input'
#
# Install needed build dependencies
#
install:
# NOTE: Already installed on current Appveyor unstable image
# - 'echo Retrieving Cygwin'
# - 'appveyor DownloadFile http://cygwin.com/setup-x86.exe -FileName %CYGROOT%/setup-x86.exe'
- 'echo Setting up Cygwin dependencies'
- '%CYG_ROOT%\setup-x86.exe -qnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P autoconf -P automake -P bison -P gcc-core -P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++ -P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl > NUL'
- 'echo Check Cygwin setup'
- '%CYG_ROOT%/bin/bash -lc "cygcheck -dc cygwin"'
- 'echo Done setting up Cygwin'
- 'echo Retrieving NSIS'
- 'appveyor DownloadFile "http://sunet.dl.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe'
- 'echo Setting up NSIS'
- 'nsissetup.exe /S /D=%NSIS_ROOT%'
- 'echo Done setting up NSIS'
#
# NOTE: msbuild doesn't work at present so use Cygwin to build
#
#build:
# project: C:\projects\mono\msvc\mono.sln
# verbosity: detailed
# Cygwin build script
#
# NOTES:
#
# The stdin/stdout file descriptor appears not to be valid for the Appveyor
# build which causes failures as certain functions attempt to redirect
# default file handles. Ensure a dummy file descriptor is opened with exec.
#
build_script:
- cmd: 'echo Cygwin root is: %CYG_ROOT%'
- cmd: 'echo Build folder is: %APPVEYOR_BUILD_FOLDER%'
- cmd: 'echo Repo build branch is: %APPVEYOR_REPO_BRANCH%'
- cmd: 'echo Repo build commit is: %APPVEYOR_REPO_COMMIT%'
- cmd: 'echo Autogen running...'
- cmd: '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; NOCONFIGURE=1 ./autogen.sh --prefix=/usr/local --with-preview=yes"'
- cmd: 'echo Configure running...'
- cmd: '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; ./configure --host=i686-pc-mingw32"'
- cmd: 'echo Pulling monolite latest...'
- cmd: '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make get-monolite-latest"'
- cmd: 'echo Make running...'
- cmd: '%CYG_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make"'
- cmd: 'echo Installing...'
- cmd: 'mkdir %APPVEYOR_BUILD_FOLDER%\install'
- cmd: '%CYG_ROOT%/bin/bash --login -lc "export CYGWIN=winsymlinks:native; mount \"$APPVEYOR_BUILD_FOLDER\install\" /usr/local; cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make install; umount /usr/local"'
# - cmd: 'echo Building package...'
# - cmd: 'cd %APPVEYOR_BUILD_FOLDER%'
# - cmd: '%NSIS_ROOT%\makensis /DMILESTONE=%APPVEYOR_REPO_BRANCH% /DSOURCE_INSTALL_DIR=%APPVEYOR_BUILD_FOLDER\install\*.* /DBUILDNUM=%APPVEYOR_BUILD_VERSION% monowiz.win32.nsi'
# - cmd: 'Building distribution...'
# - cmd: '%CYG_ROOT%/bin/bash -lc "export CYGWIN=winsymlinks:native; cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; make dist"'
#
# Disable tests for now
#
test: off
#
# Only build the master branch
#
branches:
only:
- master
#
# NOTE: Currently this is the Mono installation tree. In future we will create an installation package artifact.
# It has to be relative to the project path. Thus we have installed to within the build tree.
#
artifacts:
- path: install
name: mono-binaries
type: zip
+375 -107
View File
@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
#AC_PREREQ([2.62])
AC_INIT(mono, [3.10.1],
AC_INIT(mono, [4.0.1],
[http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono])
AC_CONFIG_SRCDIR([README.md])
@@ -115,9 +115,9 @@ case "$host" in
AC_DEFINE(MINGW_CROSS_COMPILE,1,[Cross-compiling using MinGW])
fi
HOST_CC="gcc"
# Windows 2000 is required that includes Internet Explorer 5.01
# Windows XP SP2 is required
CPPFLAGS="$CPPFLAGS -DWINVER=0x0502 -D_WIN32_WINNT=0x0502 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024"
LDFLAGS="$LDFLAGS -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32"
LDFLAGS="$LDFLAGS -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32 -liphlpapi"
libmono_cflags="-mms-bitfields -mwindows"
libmono_ldflags="-mms-bitfields -mwindows"
libdl=
@@ -306,7 +306,6 @@ case "$host" in
platform_darwin=yes
target_mach=yes
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP"
CPPFLAGS="$CPPFLAGS -DGetCurrentProcess=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEvent=MonoCreateEvent"
libmono_cflags="-D_THREAD_SAFE"
need_link_unlink=yes
AC_DEFINE(PTHREAD_POINTER_ID)
@@ -441,8 +440,8 @@ AM_ICONV()
AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h libproc.h)
AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h sys/inotify.h)
AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h sys/sysctl.h libproc.h)
AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h sys/inotify.h arpa/inet.h)
AC_CHECK_HEADERS([linux/netlink.h linux/rtnetlink.h],
[], [], [#include <stddef.h>
#include <sys/socket.h>
@@ -455,6 +454,8 @@ AC_CHECK_HEADERS(sys/user.h, [], [],
#endif
])
AC_CHECK_HEADERS(linux/serial.h)
AC_CHECK_HEADER(zlib.h, [have_zlib=yes], [have_zlib=no])
if test x$have_zlib = xyes; then
AC_TRY_COMPILE([#include <zlib.h>], [
@@ -527,26 +528,30 @@ AC_CACHE_CHECK([for clang],
[])
])
AC_ARG_ENABLE(visiblity-hidden,
[ --disable-visibility-hidden disable usage of -fvisiblity=hidden]
disable_visibility_hidden=no, disable_visibility_hidden=yes)
WARN=''
if test x"$GCC" = xyes; then
WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value'
# We require C99 with some GNU extensions, e.g. `linux` macro
CFLAGS="$CFLAGS -std=gnu99"
# The runtime code does not respect ANSI C strict aliasing rules
CFLAGS="$CFLAGS -fno-strict-aliasing"
# We rely on signed overflow to behave
CFLAGS="$CFLAGS -fwrapv"
ORIG_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc)
AC_TRY_COMPILE([],[
return 0;
], [
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
CFLAGS=$ORIG_CFLAGS
])
CFLAGS="$CFLAGS -DMONO_DLL_EXPORT"
if test x"$disable_visibility_hidden" = xno; then
# Don't export any symbols by default
SHARED_CFLAGS="-fvisibility=hidden"
CFLAGS_FOR_EGLIB="$CFLAGS_FOR_EGLIB -fvisibility=hidden"
CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
fi
ORIG_CFLAGS=$CFLAGS
# Check for the normal version, since gcc ignores unknown -Wno options
@@ -578,6 +583,7 @@ else
fi
CFLAGS="$CFLAGS -g $WARN"
CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -g"
CPPFLAGS="$CPPFLAGS -g $WARN"
# Where's the 'mcs' source tree?
if test -d $srcdir/mcs; then
@@ -677,6 +683,7 @@ if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AC_SUBST([WERROR_CFLAGS])
AC_SUBST([SHARED_CFLAGS])
ac_configure_args="$ac_configure_args \"CPPFLAGS_FOR_EGLIB=$EGLIB_CPPFLAGS\" \"CFLAGS_FOR_EGLIB=$CFLAGS_FOR_EGLIB\""
AC_CONFIG_SUBDIRS(eglib)
@@ -767,7 +774,7 @@ DISABLED_FEATURES=none
AC_ARG_ENABLE(minimal, [ --enable-minimal=LIST drop support for LIST subsystems.
LIST is a comma-separated list from: aot, profiler, decimal, pinvoke, debug, appdomains, verifier,
reflection_emit, reflection_emit_save, large_code, logging, com, ssa, generics, attach, jit, simd, soft_debug, perfcounters, normalization, assembly_remapping, shared_perfcounters, remoting,
security, sgen_remset, sgen_marksweep_par, sgen_marksweep_fixed, sgen_marksweep_fixed_par, sgen_copying.],
security, sgen_remset, sgen_marksweep_par, sgen_marksweep_fixed, sgen_marksweep_fixed_par, sgen_copying, shared_handles.],
[
for feature in `echo "$enable_minimal" | sed -e "s/,/ /g"`; do
eval "mono_feature_disable_$feature='yes'"
@@ -941,6 +948,11 @@ if test "x$mono_feature_disable_sgen_copying" = "xyes"; then
AC_MSG_NOTICE([Disabled major=copying support in SGEN.])
fi
if test "x$mono_feature_disable_shared_handles" = "xyes"; then
AC_DEFINE(DISABLE_SHARED_HANDLES, 1, [Disable inter-process shared handles])
AC_SUBST(DISABLE_SHARED_HANDLES)
fi
AC_ARG_ENABLE(executables, [ --disable-executables disable the build of the runtime executables], enable_executables=$enableval, enable_executables=yes)
AM_CONDITIONAL(DISABLE_EXECUTABLES, test x$enable_executables = xno)
@@ -1139,6 +1151,12 @@ AC_TRY_COMPILE([
AC_CHECK_HEADERS(nacl/nacl_dyncode.h)
dnl ***********************************
dnl *** Checks for signals
dnl ***********************************
AC_CHECK_HEADERS(signal.h)
AC_CHECK_FUNCS(sigaction)
if test x$target_win32 = xno; then
dnl hires monotonic clock support
@@ -1194,7 +1212,7 @@ if test x$target_win32 = xno; then
AC_CHECK_HEADERS(execinfo.h)
AC_CHECK_HEADERS(sys/auxv.h)
AC_CHECK_HEADERS(sys/auxv.h sys/resource.h)
AC_CHECK_FUNCS(getgrgid_r)
AC_CHECK_FUNCS(getgrnam_r)
@@ -1213,6 +1231,7 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(dl_iterate_phdr)
AC_CHECK_FUNCS(dladdr)
AC_CHECK_FUNCS(sysconf)
AC_CHECK_FUNCS(getrlimit)
AC_CHECK_FUNCS(sched_setaffinity)
AC_CHECK_FUNCS(sched_getcpu)
@@ -1512,11 +1531,32 @@ if test x$target_win32 = xno; then
])
])
dnl **********************************
dnl *** Check for getaddrinfo ***
dnl **********************************
AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_LINK([
#include <stdio.h>
#include <netdb.h>
], [
getaddrinfo(NULL,NULL,NULL,NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETADDRINFO, 1, [Have getaddrinfo])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for gethostbyname2_r ***
dnl **********************************
AC_MSG_CHECKING(for gethostbyname2_r)
AC_TRY_LINK([#include <netdb.h>], [
AC_TRY_LINK([
#include <stdio.h>
#include <netdb.h>
], [
gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
], [
# Yes, we have it...
@@ -1526,6 +1566,92 @@ if test x$target_win32 = xno; then
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for gethostbyname2 ***
dnl **********************************
AC_MSG_CHECKING(for gethostbyname2)
AC_TRY_LINK([
#include <stdio.h>
#include <netdb.h>
], [
gethostbyname2(NULL,0);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETHOSTBYNAME2, 1, [Have gethostbyname2])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for gethostbyname ***
dnl **********************************
AC_MSG_CHECKING(for gethostbyname)
AC_TRY_LINK([
#include <stdio.h>
#include <netdb.h>
], [
gethostbyname(NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETHOSTBYNAME, 1, [Have gethostbyname])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for getprotobyname ***
dnl **********************************
AC_MSG_CHECKING(for getprotobyname)
AC_TRY_LINK([
#include <stdio.h>
#include <netdb.h>
], [
getprotobyname(NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETPROTOBYNAME, 1, [Have getprotobyname])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for getnameinfo ***
dnl **********************************
AC_MSG_CHECKING(for getnameinfo)
AC_TRY_LINK([
#include <stdio.h>
#include <netdb.h>
], [
getnameinfo (NULL, 0, NULL, 0, NULL, 0, 0);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETNAMEINFO, 1, [Have getnameinfo])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for inet_ntop ***
dnl **********************************
AC_MSG_CHECKING(for inet_ntop)
AC_TRY_LINK([
#include <stdio.h>
#include <arpa/inet.h>
], [
inet_ntop (0, NULL, NULL, 0);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_INET_NTOP, 1, [Have inet_ntop])
], [
AC_MSG_RESULT(no)
])
dnl *****************************
dnl *** Checks for libnsl ***
dnl *****************************
@@ -1591,11 +1717,23 @@ if test x$target_win32 = xno; then
AC_CHECK_FUNCS(pthread_attr_getstack pthread_attr_getstacksize)
AC_CHECK_FUNCS(pthread_get_stacksize_np pthread_get_stackaddr_np)
dnl ***********************************
dnl *** Checks for signals
dnl ***********************************
AC_CHECK_HEADERS(signal.h)
AC_CHECK_FUNCS(sigaction)
dnl **********************************
dnl *** Check for mincore ***
dnl **********************************
AC_MSG_CHECKING(for mincore)
AC_TRY_LINK([
#include <stdio.h>
#include <sys/types.h>
#include <sys/mman.h>
], [
mincore(NULL, 0, NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_MINCORE, 1, [Have mincore])
], [
AC_MSG_RESULT(no)
])
dnl ***********************************
dnl *** Checks for working __thread ***
@@ -2149,6 +2287,97 @@ else
AC_MSG_RESULT(no)
])
])
dnl **********************************
dnl *** Check for getaddrinfo ***
dnl **********************************
AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_LINK([
#include <stdio.h>
#include <winsock2.h>
#include <ws2tcpip.h>
], [
getaddrinfo(NULL,NULL,NULL,NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETADDRINFO, 1, [Have getaddrinfo])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for gethostbyname ***
dnl **********************************
AC_MSG_CHECKING(for gethostbyname)
AC_TRY_LINK([
#include <stdio.h>
#include <winsock2.h>
#include <ws2tcpip.h>
], [
gethostbyname(NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETHOSTBYNAME, 1, [Have gethostbyname])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for getprotobyname ***
dnl **********************************
AC_MSG_CHECKING(for getprotobyname)
AC_TRY_LINK([
#include <stdio.h>
#include <winsock2.h>
#include <ws2tcpip.h>
], [
getprotobyname(NULL);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETPROTOBYNAME, 1, [Have getprotobyname])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for getnameinfo ***
dnl **********************************
AC_MSG_CHECKING(for getnameinfo)
AC_TRY_LINK([
#include <stdio.h>
#include <winsock2.h>
#include <ws2tcpip.h>
], [
getnameinfo (NULL, 0, NULL, 0, NULL, 0, 0);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_GETNAMEINFO, 1, [Have getnameinfo])
], [
AC_MSG_RESULT(no)
])
dnl **********************************
dnl *** Check for inet_ntop ***
dnl **********************************
AC_MSG_CHECKING(for inet_ntop)
AC_TRY_LINK([
#include <stdio.h>
#include <winsock2.h>
#include <ws2tcpip.h>
], [
inet_ntop (0, NULL, NULL, 0);
], [
# Yes, we have it...
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_INET_NTOP, 1, [Have inet_ntop])
], [
AC_MSG_RESULT(no)
])
AC_CHECK_DECLS(InterlockedExchange64, [], [], [[#include <windows.h>]])
AC_CHECK_DECLS(InterlockedCompareExchange64, [], [], [[#include <windows.h>]])
AC_CHECK_DECLS(InterlockedDecrement64, [], [], [[#include <windows.h>]])
@@ -2282,6 +2511,7 @@ if test "x$ac_cv_have_dev_random" = "xno" \
fi
AC_MSG_CHECKING([if inter-process shared handles are requested])
# Same as --enable-minimal=shared_handles
AC_ARG_ENABLE(shared-handles, [ --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
AC_MSG_RESULT($try_shared_handles)
if test "x$try_shared_handles" != "xyes"; then
@@ -2291,8 +2521,11 @@ fi
AC_ARG_ENABLE(bcl-opt, [ --disable-bcl-opt BCL is compiled with no optimizations (allows accurate BCL debugging)], test_bcl_opt=$enableval, test_bcl_opt=yes)
AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
AC_ARG_ENABLE(perf-events, [ --enable-perf-events Enable using `perf` for profiling on Linux], test_perf_events=$enableval, test_perf_events=no)
if test "x$test_perf_events" == "xyes"; then
AC_DEFINE(ENABLE_PERF_EVENTS, 1, [Enable using `perf` for profiling on Linux])
AC_SUBST(ENABLE_PERF_EVENTS)
fi
AC_MSG_CHECKING([if big-arrays are to be enabled])
AC_ARG_ENABLE(big-arrays, [ --enable-big-arrays Enable the allocation and indexing of arrays greater than Int32.MaxValue], enable_big_arrays=$enableval, enable_big_arrays=no)
@@ -2415,6 +2648,9 @@ AC_ARG_WITH(llvm, [ --with-llvm=<llvm prefix> Enable the LLVM back-end], ena
if test "x$enable_llvm" = "xyes"; then
if test "x$with_llvm" != "x"; then
LLVM_CONFIG=$with_llvm/bin/llvm-config
if test x$target_win32 = xyes; then
LLVM_CONFIG=$LLVM_CONFIG.exe
fi
if test ! -x $LLVM_CONFIG; then
AC_MSG_ERROR([LLVM executable $LLVM_CONFIG not found.])
fi
@@ -2432,6 +2668,8 @@ if test "x$enable_llvm" = "xyes"; then
;;
esac
if test "x$target_win32" = "xno"; then
# The output of --cflags seems to include optimizations flags too
LLVM_CFLAGS=`$LLVM_CONFIG --cflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'`
# LLVM is compiled with -fno-rtti, so we need this too, since our classes inherit
@@ -2452,8 +2690,6 @@ if test "x$enable_llvm" = "xyes"; then
# Should be something like '2.6' or '2.7svn'
llvm_version=`$LLVM_CONFIG --version`
major_version=`echo $llvm_version | cut -c 1`
minor_version=`echo $llvm_version | cut -c 3`
llvm_api_version=`$LLVM_CONFIG --mono-api-version 2>/dev/null`
AC_MSG_CHECKING(LLVM version)
AC_MSG_RESULT($llvm_version)
@@ -2463,24 +2699,40 @@ if test "x$enable_llvm" = "xyes"; then
AC_MSG_ERROR([Expected llvm version $expected_llvm_version, but llvm-config --version returned $llvm_version"])
fi
fi
if test "x$llvm_api_version" = "x"; then
LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_API_VERSION=0"
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_API_VERSION=0"
else
LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_API_VERSION=$llvm_api_version"
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_API_VERSION=$llvm_api_version"
fi
else
AC_MSG_ERROR([Compiling with stock LLVM is not supported, please use the Mono LLVM repo at https://github.com/mono/llvm, with the GIT branch which matches this version of mono, i.e. 'mono-2-10' for Mono 2.10.])
fi
AC_DEFINE_UNQUOTED(LLVM_MAJOR_VERSION, $major_version, [Major version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_MINOR_VERSION, $minor_version, [Minor version of LLVM libraries])
AC_DEFINE_UNQUOTED(LLVM_VERSION, "$llvm_version", [Full version of LLVM libraties])
else
LLVM_CFLAGS="-I$with_llvm/include -DNDEBUG -D__NO_CTYPE_INLINE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
LLVM_CXXFLAGS="$LLVM_CFLAGS -std=gnu++11 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -Woverloaded-virtual -Wcast-qual"
LLVM_LDFLAGS="-L$with_llvm/lib"
LLVM_SYSTEM_LIBS="-lshell32 -lpsapi -limagehlp -ldbghelp -lm"
LLVM_LIBS="-lLLVMLTO -lLLVMObjCARCOpts -lLLVMLinker -lLLVMipo -lLLVMVectorize -lLLVMBitWriter \
-lLLVMARMDisassembler -lLLVMARMCodeGen -lLLVMARMAsmParser -lLLVMARMDesc -lLLVMARMInfo \
-lLLVMARMAsmPrinter -lLLVMTableGen -lLLVMDebugInfo -lLLVMOption -lLLVMX86Disassembler \
-lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc \
-lLLVMMCDisassembler -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT \
-lLLVMIRReader -lLLVMAsmParser -lLLVMLineEditor -lLLVMMCAnalysis -lLLVMInstrumentation \
-lLLVMInterpreter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils \
-lLLVMipa -lLLVMAnalysis -lLLVMProfileData -lLLVMMCJIT -lLLVMTarget -lLLVMRuntimeDyld \
-lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMExecutionEngine -lLLVMMC -lLLVMCore \
-lLLVMSupport -lstdc++"
LLVM_LIBS="$LLVM_LIBS $LLVM_SYSTEM_LIBS"
# Have to pass these on the command line since mini-llvm-cpp.h already includes
# llvm's config.h
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MAJOR_VERSION=$major_version -DLLVM_MINOR_VERSION=$minor_version"
llvm_config_path=$with_llvm/include/llvm/Config/llvm-config.h
llvm_api_version=`awk '/MONO_API_VERSION/ { print $3 }' $llvm_config_path`
fi
if test "x$llvm_api_version" = "x"; then
LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_API_VERSION=0"
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_API_VERSION=0"
else
LLVM_CFLAGS="$LLVM_CFLAGS -DLLVM_API_VERSION=$llvm_api_version"
LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_API_VERSION=$llvm_api_version"
fi
AC_DEFINE_UNQUOTED(LLVM_VERSION, "$llvm_version", [Full version of LLVM libraties])
AC_SUBST(LLVM_CFLAGS)
AC_SUBST(LLVM_CXXFLAGS)
@@ -2498,8 +2750,6 @@ AM_CONDITIONAL(LOADED_LLVM, [test x$enable_loadedllvm = xyes])
TARGET="unknown"
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=no
INTERP_SUPPORTED=no
LIBC="libc.so.6"
INTL="libc.so.6"
SQLITE="libsqlite.so.0"
@@ -2512,7 +2762,6 @@ XINERAMA="libXinerama.so.1"
sizeof_register="SIZEOF_VOID_P"
jit_wanted=true
interp_wanted=false
sgen_supported=false
boehm_supported=true
case "$host" in
@@ -2521,7 +2770,6 @@ case "$host" in
arch_target=mips;
sgen_supported=true
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
AC_MSG_CHECKING(for mips n32)
AC_TRY_COMPILE([],[
@@ -2539,7 +2787,6 @@ case "$host" in
i*86-*-*)
TARGET=X86;
arch_target=x86;
JIT_SUPPORTED=yes
case $host_os in
solaris*)
LIBC="libc.so"
@@ -2585,7 +2832,6 @@ case "$host" in
x86_64-*-* | amd64-*-*)
TARGET=AMD64;
arch_target=amd64;
JIT_SUPPORTED=yes
if test "x$ac_cv_sizeof_void_p" = "x4"; then
AC_DEFINE(__mono_ilp32__, 1, [64 bit mode with 4 byte longs and pointers])
sizeof_register=8
@@ -2617,7 +2863,6 @@ case "$host" in
TARGET=IA64
arch_target=ia64
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
LIBC="libc.so.6.1"
INTL="libc.so.6.1"
AC_CHECK_LIB(unwind, _U_dyn_register, [], [AC_MSG_ERROR(library libunwind not found)])
@@ -2630,7 +2875,6 @@ case "$host" in
TARGET=SPARC
fi
arch_target=sparc;
JIT_SUPPORTED=yes
ACCESS_UNALIGNED="no"
case $host_os in
linux*) ;;
@@ -2663,7 +2907,6 @@ case "$host" in
CPPFLAGS="$CPPFLAGS -D__mono_ppc__"
fi
arch_target=ppc;
JIT_SUPPORTED=yes
case $host_os in
linux*|darwin*)
sgen_supported=true
@@ -2674,7 +2917,6 @@ case "$host" in
TARGET=ARM;
arch_target=arm;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
sgen_supported=true
;;
@@ -2682,7 +2924,6 @@ case "$host" in
TARGET=ARM;
arch_target=arm;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
sgen_supported=true
AOT_SUPPORTED="yes"
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
@@ -2692,7 +2933,6 @@ case "$host" in
# TARGET=ARM;
# arch_target=arm;
# ACCESS_UNALIGNED="no"
# JIT_SUPPORTED=yes
# sgen_supported=true
# AOT_SUPPORTED="no"
# ;;
@@ -2700,7 +2940,6 @@ case "$host" in
# https://lkml.org/lkml/2012/7/15/133
TARGET=ARM64
arch_target=arm64
JIT_SUPPORTED=yes
sgen_supported=true
boehm_supported=false
;;
@@ -2708,7 +2947,6 @@ case "$host" in
TARGET=S390X;
arch_target=s390x;
ACCESS_UNALIGNED="yes"
JIT_SUPPORTED=yes
sgen_supported=true
CFLAGS="$CFLAGS -mbackchain -D__USE_STRING_INLINES"
;;
@@ -2724,9 +2962,7 @@ if test "x$host" != "x$target"; then
TARGET=ARM;
arch_target=arm;
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
jit_wanted=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
@@ -2764,7 +3000,6 @@ if test "x$host" != "x$target"; then
# arch_target=arm
# AC_DEFINE(TARGET_ARM, 1, [...])
# ACCESS_UNALIGNED="no"
# JIT_SUPPORTED=yes
# sizeof_register=4
# CPPFLAGS="$CPPFLAGS \
# -D__ARM_EABI__ \
@@ -2774,7 +3009,6 @@ if test "x$host" != "x$target"; then
# -DDISABLE_SOCKETS \
# -DDISABLE_ATTACH \
# -DUSE_NEWLIB"
# jit_wanted=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
# with_tls=pthread
@@ -2791,9 +3025,7 @@ if test "x$host" != "x$target"; then
AC_DEFINE(TARGET_ARM, 1, [...])
AC_DEFINE(TARGET_ANDROID, 1, [...])
ACCESS_UNALIGNED="no"
JIT_SUPPORTED=yes
CPPFLAGS="$CPPFLAGS -D__ARM_EABI__"
jit_wanted=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
@@ -2808,10 +3040,43 @@ if test "x$host" != "x$target"; then
;;
esac
;;
i686*-linux-*)
TARGET=X86;
arch_target=x86;
AC_DEFINE(TARGET_X86, 1, [...])
AC_DEFINE(TARGET_ANDROID, 1, [...])
CPPFLAGS="$CPPFLAGS"
sgen_supported=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
target_mach=no
;;
x86_64*-linux-*)
TARGET=AMD64;
arch_target=amd64;
AC_DEFINE(TARGET_AMD64, 1, [...])
AC_DEFINE(TARGET_ANDROID, 1, [...])
CPPFLAGS="$CPPFLAGS"
sgen_supported=true
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
target_mach=no
;;
aarch64*-linux-*)
TARGET=ARM64;
arch_target=arm64;
AC_DEFINE(TARGET_ARM64, 1, [...])
AC_DEFINE(TARGET_ANDROID, 1, [...])
CPPFLAGS="$CPPFLAGS"
# Can't use tls, since it depends on the runtime detection of tls offsets
# in mono-compiler.h
with_tls=pthread
target_mach=no
;;
aarch64-*)
TARGET=ARM64
JIT_SUPPORTED=yes
jit_wanted=true
;;
*)
AC_MSG_ERROR([Cross compiling is not supported for target $target])
@@ -2855,6 +3120,46 @@ SPARC64)
;;
esac
dnl *************
dnl *** VTUNE ***
dnl *************
AC_ARG_ENABLE(vtune,[ --enable-vtune Enable the VTUNE back-end], enable_vtune=$enableval, enable_vtune=no)
AC_ARG_WITH(vtune, [ --with-vtune=<vtune prefix> Enable jit vtune profiling], enable_vtune=yes,)
AM_CONDITIONAL(HAVE_VTUNE, test x$enable_vtune = xyes)
if test "x$enable_vtune" = "xyes"; then
if test "x$with_vtune" = "x"; then
VTUNE_PATH=/opt/intel/vtune_amplifier_xe
else
VTUNE_PATH=$with_vtune
fi
VTUNE_INCLUDE=$VTUNE_PATH/include
case "$TARGET" in
X86)
VTUNE_LIB=$VTUNE_PATH/lib32
;;
AMD64)
VTUNE_LIB=$VTUNE_PATH/lib64
;;
*)
AC_MSG_ERROR([Unsupported target $TARGET for VTUNE.])
;;
esac
if test ! -f $VTUNE_INCLUDE/jitprofiling.h; then
AC_MSG_ERROR([VTUNE $VTUNE_INCLUDE/jitprofiling.h not found.])
fi
if test ! -f $VTUNE_LIB/libjitprofiling.a; then
AC_MSG_ERROR([VTUNE $VTUNE_LIB/libjitprofiling.a not found.])
fi
VTUNE_CFLAGS=-I$VTUNE_INCLUDE
VTUNE_LIBS="-L/$VTUNE_LIB/ -ljitprofiling"
AC_SUBST(VTUNE_LIBS)
AC_SUBST(VTUNE_CFLAGS)
fi
dnl Use GCC atomic ops if they work on the target.
if test x$GCC = "xyes"; then
case $TARGET in
@@ -2934,27 +3239,7 @@ fi
AC_SUBST(SGEN_DEFINES)
AM_CONDITIONAL(SUPPORT_SGEN, test x$buildsgen = xyes)
USEJIT=false
if test x$JIT_SUPPORTED = xyes; then
if $jit_wanted; then
USEJIT=true
jit_status="Building and using the JIT"
else
if $interp_wanted; then
jit_status="Building the JIT, defaulting to the interpreter"
else
AC_ERROR(No JIT or interpreter support available or selected.)
fi
fi
else
if test x$interp_wanted = xtrue; then
jit_status="interpreter"
else
AC_ERROR(No JIT or interpreter support available or selected.)
fi
fi
AM_CONDITIONAL(USE_JIT, test x$USEJIT = xtrue)
jit_status="Building and using the JIT"
libsuffix=".so"
@@ -3229,8 +3514,6 @@ case "x$libgc" in
;;
esac
AC_ARG_WITH(profile2, [ --with-profile2=yes,no If you want to install the 2.0/3.5 FX (defaults to yes)], [], [with_profile2=yes])
AC_ARG_WITH(profile4, [ --with-profile4=yes,no If you want to install the 4.0 FX (defaults to yes)], [], [with_profile4=yes])
AC_ARG_WITH(profile4_5,[ --with-profile4_5=yes,no If you want to install the 4.5 FX (defaults to yes)], [], [with_profile4_5=yes])
AC_ARG_WITH(monodroid, [ --with-monodroid=yes,no If you want to build the MonoDroid assemblies (defaults to no)], [], [with_monodroid=no])
AC_ARG_WITH(monotouch, [ --with-monotouch=yes,no,only If you want to build the MonoTouch assemblies (defaults to no)], [], [with_monotouch=no])
@@ -3265,7 +3548,7 @@ AC_ARG_WITH(mcs_docs,[ --with-mcs-docs=yes,no If you want to build the
DISABLE_MCS_DOCS=yes
fi
])
if test x$with_profile4 != xyes; then
if test x$with_profile4_5 != xyes; then
DISABLE_MCS_DOCS=yes
fi
@@ -3305,8 +3588,6 @@ dnl Consistency settings
dnl
if test x$cross_compiling = xyes -o x$enable_mcs_build = xno; then
DISABLE_MCS_DOCS=yes
with_profile2=no
with_profile4=no
with_profile4_5=no
with_monodroid=no
with_monotouch=no
@@ -3329,8 +3610,6 @@ AC_SUBST(OPROFILE_LIBS)
libmono_ldflags="$libmono_ldflags $LIBS"
AM_CONDITIONAL(INSTALL_2_0, [test "x$with_profile2" = xyes])
AM_CONDITIONAL(INSTALL_4_0, [test "x$with_profile4" = xyes])
AM_CONDITIONAL(INSTALL_4_5, [test "x$with_profile4_5" = xyes])
AM_CONDITIONAL(INSTALL_MONODROID, [test "x$with_monodroid" != "xno"])
AM_CONDITIONAL(INSTALL_MONOTOUCH, [test "x$with_monotouch" != "xno"])
@@ -3357,8 +3636,6 @@ AM_CONDITIONAL(HOST_ARM, test x$HOST = xARM)
AM_CONDITIONAL(HOST_ARM64, test x$HOST = xARM64)
AM_CONDITIONAL(CROSS_COMPILE, test "x$host" != "x$target")
AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
AM_CONDITIONAL(INTERP_SUPPORTED, test x$interp_wanted = xtrue)
AM_CONDITIONAL(INCLUDED_LIBGC, test x$libgc = xincluded)
AC_SUBST(LIBC)
@@ -3378,11 +3655,7 @@ AC_SUBST(LDFLAGS)
mono_build_root=`pwd`
AC_SUBST(mono_build_root)
if test x$USEJIT = xtrue; then
mono_runtime=mono/mini/mono
else
mono_runtime=mono/interpreter/mint
fi
mono_runtime=mono/mini/mono
AC_SUBST(mono_runtime)
mono_cfg_root=$mono_build_root/runtime
@@ -3557,6 +3830,7 @@ AC_CONFIG_COMMANDS([runtime/etc/mono/4.5/web.config],
],[LN_S='$LN_S'])
AC_CONFIG_COMMANDS([quiet-libtool], [sed -e 's/echo "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool; sed -e 's/$ECHO "copying selected/# "copying selected/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
AC_CONFIG_COMMANDS([nolock-libtool], [sed -e 's/lock_old_archive_extraction=yes/lock_old_archive_extraction=no/g' < libtool > libtool.tmp && mv libtool.tmp libtool && chmod a+x libtool])
AC_OUTPUT([
Makefile
@@ -3579,7 +3853,6 @@ mono/arch/arm/Makefile
mono/arch/arm64/Makefile
mono/arch/ia64/Makefile
mono/arch/mips/Makefile
mono/interpreter/Makefile
mono/tests/Makefile
mono/tests/tests-config
mono/tests/assemblyresolve/Makefile
@@ -3592,7 +3865,6 @@ mono/tests/cas/threads/Makefile
mono/tests/gc-descriptors/Makefile
mono/unit-tests/Makefile
mono/benchmark/Makefile
mono/monograph/Makefile
mono/io-layer/Makefile
mono/mini/Makefile
mono/profiler/Makefile
@@ -3634,6 +3906,7 @@ data/config
tools/Makefile
tools/locale-builder/Makefile
tools/sgen/Makefile
tools/monograph/Makefile
runtime/Makefile
msvc/Makefile
po/Makefile
@@ -3720,10 +3993,7 @@ fi
echo "EXTENSION_MODULE = 1" >> $srcdir/$mcsdir/build/config.make
fi
default_profile=net_2_0
if test -z "$INSTALL_4_0_TRUE"; then :
default_profile=net_4_0
fi
default_profile=net_4_5
if test -z "$INSTALL_MONODROID_TRUE"; then :
default_profile=monodroid
fi
@@ -3781,8 +4051,6 @@ echo "
LLVM Back End: $enable_llvm (dynamically loaded: $enable_loadedllvm)
Libraries:
.NET 2.0/3.5: $with_profile2
.NET 4.0: $with_profile4
.NET 4.5: $with_profile4_5
MonoDroid: $with_monodroid
MonoTouch: $with_monotouch
+5 -15
View File
@@ -1,10 +1,7 @@
SUBDIRS = net_2_0
if INSTALL_4_0
SUBDIRS += net_4_0 net_4_5
endif
SUBDIRS = net_2_0 net_4_0 net_4_5
monodir = $(sysconfdir)/mono
monolldbdir = $(libdir)/mono/lldb
EXTRA_DIST = \
config.in \
@@ -16,7 +13,8 @@ EXTRA_DIST = \
reactive.pc.in xbuild12.pc \
net_1_1/machine.config \
gdb/mono-gdb.py \
gdb/gdb-python.diff
gdb/gdb-python.diff \
lldb/mono.py
pkgconfigdir = $(libdir)/pkgconfig
@@ -26,17 +24,8 @@ else
SGENPCFILE=
endif
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mono-2.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc xbuild12.pc $(SGENPCFILE)
else
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc xbuild12.pc $(SGENPCFILE)
endif
else
pkgconfig_DATA= mint.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc
endif
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nunit.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE) mono-sgen-gdb.py
@@ -44,6 +33,7 @@ DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-nuni
mono_DATA = config \
browscap.ini
monolldb_DATA = lldb/mono.py
gdbdir = $(bindir)
mono-sgen-gdb.py: gdb/mono-gdb.py
+1 -1
View File
@@ -10,7 +10,7 @@
<dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
<dllmap dll="oci" target="libclntsh@libsuffix@" os="!windows"/>
<dllmap dll="db2cli" target="libdb2_36@libsuffix@" os="!windows"/>
<dllmap dll="MonoPosixHelper" target="@prefix@/lib/libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="MonoPosixHelper" target="@prefix@/@reloc_libdir@/libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="i:msvcrt" target="@LIBC@" os="!windows"/>
<dllmap dll="i:msvcrt.dll" target="@LIBC@" os="!windows"/>
<dllmap dll="sqlite" target="@SQLITE@" os="!windows"/>
+174
View File
@@ -0,0 +1,174 @@
#
# Author: Zoltan Varga ([email protected])
# License: MIT/X11
#
#
# This is a mono support mode for lldb
#
# Comments about the lldb python api:
# - there are no accessors, i.e. valobj["name"]
# - http://lldb.llvm.org/python_reference/index.html seems to be outdated
# - there is no autoload support, i.e. can't load this file automatically
# when 'mono' is the debugger target.
import lldb
# FIXME: Generate enums from runtime enums
MONO_TYPE_END = 0x00
MONO_TYPE_VOID = 0x01
MONO_TYPE_BOOLEAN = 0x02
MONO_TYPE_CHAR = 0x03
MONO_TYPE_I1 = 0x04
MONO_TYPE_U1 = 0x05
MONO_TYPE_I2 = 0x06
MONO_TYPE_U2 = 0x07
MONO_TYPE_I4 = 0x08
MONO_TYPE_U4 = 0x09
MONO_TYPE_I8 = 0x0a
MONO_TYPE_U8 = 0x0b
MONO_TYPE_R4 = 0x0c
MONO_TYPE_R8 = 0x0d
MONO_TYPE_STRING = 0x0e
MONO_TYPE_PTR = 0x0f
MONO_TYPE_BYREF = 0x10
MONO_TYPE_VALUETYPE = 0x11
MONO_TYPE_CLASS = 0x12
MONO_TYPE_VAR = 0x13
MONO_TYPE_ARRAY = 0x14
MONO_TYPE_GENERICINST= 0x15
MONO_TYPE_TYPEDBYREF = 0x16
MONO_TYPE_I = 0x18
MONO_TYPE_U = 0x19
MONO_TYPE_FNPTR = 0x1b
MONO_TYPE_OBJECT = 0x1c
MONO_TYPE_SZARRAY = 0x1d
MONO_TYPE_MVAR = 0x1e
primitive_type_names = {
MONO_TYPE_BOOLEAN : "bool",
MONO_TYPE_CHAR : "char",
MONO_TYPE_I1 : "sbyte",
MONO_TYPE_U1 : "byte",
MONO_TYPE_I2 : "short",
MONO_TYPE_U2 : "ushort",
MONO_TYPE_I4 : "int",
MONO_TYPE_U4 : "uint",
MONO_TYPE_I8 : "long",
MONO_TYPE_U8 : "ulong",
MONO_TYPE_R4 : "float",
MONO_TYPE_R8 : "double",
MONO_TYPE_STRING : "string"
}
#
# Helper functions for working with the lldb python api
#
def member(val, member_name):
return val.GetChildMemberWithName (member_name)
def string_member(val, member_name):
return val.GetChildMemberWithName (member_name).GetSummary ()[1:-1]
def isnull(val):
return val.deref.addr.GetOffset () == 0
def stringify_class_name(ns, name):
if ns == "System":
if name == "Byte":
return "byte"
if name == "String":
return "string"
if ns == "":
return name
else:
return "{0}.{1}".format (ns, name)
#
# Pretty printers for mono runtime types
#
def stringify_type (type):
"Print a MonoType structure"
ttype = member(type, "type").GetValueAsUnsigned()
if primitive_type_names.has_key (ttype):
return primitive_type_names [ttype]
else:
return "<MonoTypeEnum 0x{0:x}>".format (ttype)
def stringify_ginst (ginst):
"Print a MonoGenericInst structure"
len = int(member(ginst, "type_argc").GetValue())
argv = member(ginst, "type_argv")
res=""
for i in range(len):
t = argv.GetChildAtIndex(i, False, True)
if i > 0:
res += ", "
res += stringify_type(t)
return res
def print_type(valobj, internal_dict):
type = valobj
if isnull (type):
return ""
return stringify_type (type)
def print_class (valobj, internal_dict):
klass = valobj
if isnull (klass):
return ""
aname = member (member (member (klass, "image"), "assembly"), "aname")
basename = "[{0}]{1}".format (string_member (aname, "name"), (stringify_class_name (string_member (klass, "name_space"), string_member (klass, "name"))))
gclass = member (klass, "generic_class")
if not isnull (gclass):
ginst = member (member (gclass, "context"), "class_inst")
return "{0}<{1}>".format (basename, stringify_ginst (ginst))
return basename
def print_method (valobj, internal_dict):
method = valobj
if isnull (method):
return ""
klass = member (method, "klass")
return "{0}:{1}()".format (print_class (klass, None), string_member (valobj, "name"))
def print_domain(valobj, internal_dict):
domain = valobj
if isnull (domain):
return ""
target = domain.target
root = target.FindFirstGlobalVariable("mono_root_domain")
name = string_member (domain, "friendly_name")
if root.IsValid () and root.deref.addr.GetOffset () == root.deref.addr.GetOffset ():
return "[root]"
else:
return "[{0}]".format (name)
def print_object(valobj, internal_dict):
obj = valobj
if isnull (obj):
return ""
domain = member (member (obj, "vtable"), "domain")
klass = member (member (obj, "vtable"), "klass")
return print_domain (domain, None) + print_class (klass, None)
# Register pretty printers
# FIXME: This cannot pick up the methods define in this module, leading to warnings
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_method MonoMethod")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_class MonoClass")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_type MonoType")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_domain MonoDomain")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_object MonoObject")
lldb.debugger.HandleCommand ("type category enable mono")
# Helper commands for runtime debugging
# These resume the target
# Print the method at the current ip
lldb.debugger.HandleCommand ("command alias pip p mono_print_method_from_ip((void*)$pc)")
# Print the method at the provided ip
lldb.debugger.HandleCommand ("command regex pmip 's/^$/p mono_print_method_from_ip((void*)$pc)/' 's/(.+)/p mono_print_method_from_ip((void*)(%1))/'")
print "Mono support mode loaded."
+2
View File
@@ -143,6 +143,8 @@ public enum Lock {
IcallLock,
AssemblyBindingLock,
MarshalLock,
ClassesLock,
LoaderGlobalDataLock
}
public class SimLock
+3 -3
View File
@@ -99,14 +99,14 @@ mono-file-formats.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/depl
deploy/.stamp: convert.exe Makefile.am
$(mkdir_p) html
runtimedir=`cd ../runtime && pwd`; export runtimedir; \
MONO_PATH=../mcs/class/lib/net_2_0 perl $(srcdir)/exdoc -h $(srcdir) -t . $(srcdir)/../mono/*/*.c
MONO_PATH=../mcs/class/lib/net_4_5 perl $(srcdir)/exdoc -h $(srcdir) -t . $(srcdir)/../mono/*/*.c
touch $@
extract: deploy/.stamp
convert.exe: convert.cs AgilityPack.dll
$(TOOL_MAKE) PROFILE=net_2_0 convert.exe
$(TOOL_MAKE) PROFILE=net_4_5 convert.exe
AgilityPack.dll:
$(TOOL_MAKE) PROFILE=net_2_0 AgilityPack.dll
$(TOOL_MAKE) PROFILE=net_4_5 AgilityPack.dll
+1 -1
View File
@@ -26,7 +26,7 @@ i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-li
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
?86-pc-cygwin*|i?86-pc-cygwin*|i?86-pc-mingw32*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*|arm-apple-darwin*)
+2 -1
View File
@@ -135,6 +135,7 @@ AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf)
AC_CHECK_FUNCS(getrlimit)
#
# Mono currently supports 10.6, but strndup is not available prior to 10.7; avoiding
@@ -179,7 +180,7 @@ if test "x$have_iso_varargs" = "xyes"; then
fi
AC_SUBST(G_HAVE_ISO_VARARGS)
AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h)
AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h sys/wait.h pwd.h langinfo.h iconv.h localcharset.h sys/types.h sys/resource.h)
AC_CHECK_HEADER(alloca.h, [HAVE_ALLOCA_H=1], [HAVE_ALLOCA_H=0])
AC_SUBST(HAVE_ALLOCA_H)
+1 -1
View File
@@ -58,7 +58,7 @@ int mkstemp (char *tmp_template)
utf16_template = _wmktemp( utf16_template);
if (utf16_template && *utf16_template) {
/* FIXME: _O_TEMPORARY causes file to disappear on close causing a test to fail */
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_EXCL, _S_IREAD | _S_IWRITE);
fd = _wopen( utf16_template, _O_BINARY | _O_CREAT /*| _O_TEMPORARY*/ | _O_RDWR | _O_EXCL, _S_IREAD | _S_IWRITE);
}
/* FIXME: this will crash if utf16_template == NULL */
+1 -1
View File
@@ -176,7 +176,6 @@ typedef struct _GMemChunk GMemChunk;
/*
* Misc.
*/
#define g_atexit(func) ((void) atexit (func))
const gchar * g_getenv(const gchar *variable);
gboolean g_setenv(const gchar *variable, const gchar *value, gboolean overwrite);
@@ -815,6 +814,7 @@ gboolean g_spawn_command_line_sync (const gchar *command_line, gchar **standard_
gboolean g_spawn_async_with_pipes (const gchar *working_directory, gchar **argv, gchar **envp, GSpawnFlags flags, GSpawnChildSetupFunc child_setup,
gpointer user_data, GPid *child_pid, gint *standard_input, gint *standard_output, gint *standard_error, GError **error);
int eg_getdtablesize (void);
/*
* Timer
+2 -1
View File
@@ -132,6 +132,7 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
exit (0);
}
@@ -176,7 +177,7 @@ default_stderr_handler (const gchar *message)
}
#elif MONOTOUCH
#elif defined(HOST_IOS)
#include <asl.h>
static int
+30 -3
View File
@@ -53,6 +53,10 @@
#include <sys/wait.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
#ifdef G_OS_WIN32
#include <io.h>
#include <winsock2.h>
@@ -70,7 +74,7 @@
#define NO_INTR(var,cmd) do { (var) = (cmd); } while ((var) == -1 && errno == EINTR)
#define CLOSE_PIPE(p) do { close (p [0]); close (p [1]); } while (0)
#if defined(__APPLE__) && !defined (__arm__)
#if defined(__APPLE__) && !defined (__arm__) && !defined (__aarch64__)
/* Apple defines this in crt_externs.h but doesn't provide that header for
* arm-apple-darwin9. We'll manually define the symbol on Apple as it does
* in fact exist on all implementations (so far)
@@ -213,6 +217,29 @@ write_all (int fd, const void *vbuf, size_t n)
return nwritten;
}
#ifndef G_OS_WIN32
int
eg_getdtablesize (void)
{
#ifdef HAVE_GETRLIMIT
struct rlimit limit;
int res;
res = getrlimit (RLIMIT_NOFILE, &limit);
g_assert (res == 0);
return limit.rlim_cur;
#else
return getdtablesize ();
#endif
}
#else
int
eg_getdtablesize (void)
{
g_error ("Should not be called");
}
#endif
gboolean
g_spawn_command_line_sync (const gchar *command_line,
gchar **standard_output,
@@ -256,7 +283,7 @@ g_spawn_command_line_sync (const gchar *command_line,
close (stderr_pipe [0]);
dup2 (stderr_pipe [1], STDERR_FILENO);
}
for (i = getdtablesize () - 1; i >= 3; i--)
for (i = eg_getdtablesize () - 1; i >= 3; i--)
close (i);
/* G_SPAWN_SEARCH_PATH is always enabled for g_spawn_command_line_sync */
@@ -417,7 +444,7 @@ g_spawn_async_with_pipes (const gchar *working_directory,
}
if ((flags & G_SPAWN_LEAVE_DESCRIPTORS_OPEN) != 0) {
for (i = getdtablesize () - 1; i >= 3; i--)
for (i = eg_getdtablesize () - 1; i >= 3; i--)
close (i);
}
+5
View File
@@ -1,6 +1,10 @@
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
#ifndef _MSC_VER
#include "cygconfig.h"
#else
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
@@ -74,3 +78,4 @@
#define VERSION "0.1"
#define HAVE_STRTOK_R 1
#endif
+1 -1
+1 -1
Vendored Submodule
+1
Submodule external/referencesource added at 679deadc4e.
Vendored
+1 -1
Submodule external/rx updated: 00c1aadf14...b29a4b0fda.
+1 -1
View File
@@ -26,7 +26,7 @@ i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-li
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*)
?86-pc-cygwin*|i?86-pc-cygwin*|i?86-pc-mingw32*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*|arm-apple-darwin*)
+1 -1
View File
@@ -32,7 +32,7 @@
# define GC_LINUX_THREADS
#endif
#if defined(WIN32_THREADS)
# define GC_WIN32_THREADS
# define GC_WIN32_THREADS 1
#endif
#if defined(USE_LD_WRAP)
# define GC_USE_LD_WRAP
+4 -4
View File
@@ -358,9 +358,9 @@ gmcs(1), mcs(1), mdb(1), mono(1), pkg-config(1)
.SH BUGS
To report bugs in the compiler, you must file them on our bug tracking
system, at:
http://www.mono-project.com/Bugs
http://www.mono-project.com/community/bugs/
.SH MAILING LIST
The Mono Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
The Mono Mailing lists are listed at http://www.mono-project.com/community/help/mailing-lists/
.SH MORE INFORMATION
The Mono C# compiler was developed by Novell, Inc
(http://www.novell.com, http) and is based on the
@@ -368,5 +368,5 @@ ECMA C# language standard available here:
http://www.ecma.ch/ecma1/STAND/ecma-334.htm
.PP
The home page for the Mono C# compiler is at
http://www.mono-project.com/CSharp_Compiler information about the
interactive mode for C# is available in http://mono-project.com/CsharpRepl
http://www.mono-project.com/docs/about-mono/languages/csharp/ information about the
interactive mode for C# is available in http://mono-project.com/docs/tools+libraries/tools/repl/
+2 -2
View File
@@ -54,7 +54,7 @@ httpcfg -add -port 8081 -pvk myfile.pvk -cert MyCert
For more details on creating the certificate file and the private key,
see the following web page:
.PP
http://www.mono-project.com/UsingClientCertificatesWithXSP
http://www.mono-project.com/docs/web/using-clientcertificates-with-xsp/
.SH FILES
The certificates are stored in the ~/.mono/httplistener directory
.SH AUTHOR
@@ -72,4 +72,4 @@ Visit http://www.mono-project.com for details
The private key format:
.nf
http://www.drh-consultancy.demon.co.uk/pvk.html
.fi
.fi
+1 -1
View File
@@ -78,7 +78,7 @@ version and publickeytoken.
.SH MAILING LISTS
Mailing lists are listed at the
http://www.mono-project.com/Mailing_Lists
http://www.mono-project.com/community/help/mailing-lists/
.SH WEB SITE
http://www.mono-project.com
.SH SEE ALSO
+3 -3
View File
@@ -538,13 +538,13 @@ csharp(1), mdb(1), mono(1), mopen(1), pkg-config(1), sn(1)
.SH BUGS
To report bugs in the compiler, you must file them on our bug tracking
system, at:
http://www.mono-project.com/Bugs
http://www.mono-project.com/community/bugs/
.SH MAILING LIST
The Mono Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
The Mono Mailing lists are listed at http://www.mono-project.com/community/help/mailing-lists/
.SH MORE INFORMATION
The Mono C# compiler was developed by Novell, Inc
(http://www.novell.com) and Xamarin Inc (http://www.xamarin.com) is based on the
ECMA C# language standard available here:
http://www.ecma.ch/ecma1/STAND/ecma-334.htm
.PP
The home page for the Mono C# compiler is at http://www.mono-project.com/CSharp_Compiler
The home page for the Mono C# compiler is at http://www.mono-project.com/docs/about-mono/languages/csharp/
+2 -2
View File
@@ -198,7 +198,7 @@ file for a list of PATH values
.I //node/@name
values).
.sp
See also: http://www.mono-project.com/Generating_Documentation
See also: http://www.mono-project.com/docs/tools+libraries/tools/monodoc/generating-documentation/
.TP
.I Create your documentation
See also the
@@ -256,4 +256,4 @@ Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
See also: http://www.mono-project.com
and
http://www.mono-project.com/Assembler
http://www.mono-project.com/docs/tools+libraries/tools/mdassembler/
+1 -1
View File
@@ -207,4 +207,4 @@ file and looks for referenced documents to create the help source.
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
See also: http://www.mono-project.com/mdoc
See also: http://www.mono-project.com/docs/tools+libraries/tools/mdoc/
+1 -1
View File
@@ -148,4 +148,4 @@ See the \fICREF FORMAT\fR section of \fBmdoc\fR(5) for more information.
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
Visit http://www.mono-project.com/docs/tools+libraries/tools/mdoc/ for details
+1 -1
View File
@@ -34,4 +34,4 @@ Display a help message and exit.
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
Visit http://www.mono-project.com/docs/tools+libraries/tools/mdoc/ for details
+1 -1
View File
@@ -51,4 +51,4 @@ documentation within that directory, recursively), use:
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
Visit http://www.mono-project.com/docs/tools+libraries/tools/mdoc/ for details
+1 -1
View File
@@ -195,4 +195,4 @@ mdoc-validate(1)
.TP
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.
.SH WEB SITE
Visit http://www.mono-project.com/mdoc for details
Visit http://www.mono-project.com/docs/tools+libraries/tools/mdoc/ for details
+1 -1
View File
@@ -11,7 +11,7 @@ longer necessary, but the metadata still is.
.SH COPYRIGHT
Copyright (C) 2008 Novell, Inc (http://www.novell.com)
.SH MAILING LISTS
Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
Mailing lists are listed at http://www.mono-project.com/community/help/mailing-lists/
.SH LICENSE
mono-cil-strip is licensed under the MIT/X11 license. Please read the accompayning
MIT.X11 file for details.
+1 -1
View File
@@ -78,7 +78,7 @@ specified it reads the standard input. If
is not specified, the output is sent to the standard output.
.SH MAILING LISTS
Mailing lists are listed at the
http://www.mono-project.com/Mailing_Lists
http://www.mono-project.com/community/help/mailing-lists/
.SH WEB SITE
http://www.mono-project.com
.SH SEE ALSO
+52 -20
View File
@@ -119,6 +119,7 @@ If specified, forces the generated AOT files to be bound to the
runtime version of the compiling Mono. This will prevent the AOT
files from being consumed by a different Mono runtime.
.I full
.Sp
This is currently an experimental feature as it is not complete.
This instructs Mono to precompile code that has historically not been
precompiled with AOT.
@@ -221,7 +222,7 @@ example, --tool=prefix=arm-linux-gnueabi- will make the AOT compiler run
.I write-symbols
Instructs the AOT compiler to emit debug symbol information.
.PP
For more information about AOT, see: http://www.mono-project.com/AOT
For more information about AOT, see: http://www.mono-project.com/docs/advanced/aot/
.RE
.TP
\fB--attach=[options]\fR
@@ -317,7 +318,7 @@ If the Mono runtime has been compiled with LLVM support (not available
in all configurations), Mono will use the LLVM optimization and code
generation engine to JIT or AOT compile.
.Sp
For more information, consult: http://www.mono-project.com/Mono_LLVM
For more information, consult: http://www.mono-project.com/docs/advanced/mono-llvm/
.TP
\fB--nollvm\fR
When using a Mono that has been compiled with LLVM support, it forces
@@ -400,7 +401,7 @@ e.g. execution of Code Access Security (CAS) or non-CAS demands.
.I core-clr
Enables the core-clr security system, typically used for
Moonlight/Silverlight applications. It provides a much simpler
security system than CAS, see http://www.mono-project.com/Moonlight
security system than CAS, see http://www.mono-project.com/docs/web/moonlight/
for more details and links to the descriptions of this new system.
.TP
.I validil
@@ -736,7 +737,7 @@ shared library `mono-profiler-custom.so'. This profiler module must
be on your dynamic linker library path.
.PP
A list of other third party profilers is available from Mono's web
site (www.mono-project.com/Performance_Tips)
site (www.mono-project.com/docs/advanced/performance-tips/)
.PP
Custom profiles are written as shared libraries. The shared library
must be called `mono-profiler-NAME.so' where `NAME' is the name of
@@ -853,6 +854,27 @@ The following is a common use to track down problems with P/Invoke:
.fi
.PP
.SH DEBUGGING WITH LLDB
If you are using LLDB, you can use the
.B mono.py
script to print some internal data structures with it. To use this,
add this to your
.B $HOME/.lldbinit
file:
.nf
command script import $PREFIX/lib/mono/lldb/mono.py
.fi
.PP
Where $PREFIX is the prefix value that you used when you configured
Mono (typically /usr).
.PP
Once this is done, then you can inspect some Mono Runtime data structures,
for example:
.nf
(lldb) p method
(MonoMethod *) $0 = 0x05026ac0 [mscorlib]System.OutOfMemoryException:.ctor()
.fi
.SH SERIALIZATION
Mono's XML serialization engine by default will use a reflection-based
approach to serialize which might be slow for continuous processing
@@ -948,6 +970,10 @@ where V is the architecture number 4, 5, 6, 7 and the options can be currently b
.fi
.TP
\fBMONO_ARM_FORCE_SOFT_FLOAT\fR
When Mono is built with a soft float fallback on ARM and this variable is set to
"1", Mono will always emit soft float code, even if a VFP unit is detected.
.TP
\fBMONO_DISABLE_AIO\fR
If set, tells mono NOT to attempt using native asynchronous I/O services. In
that case, a default select/poll implementation is used. Currently only epoll()
@@ -1075,19 +1101,10 @@ first generation (of two). A larger nursery will usually speed up the
program but will obviously use more memory. The default nursery size
4 MB.
.TP
\fBmajor=\fIcollector\fR
Specifies which major collector to use. Options are `marksweep' for
the Mark&Sweep collector, `marksweep-conc' for concurrent Mark&Sweep,
`marksweep-par' for parallel Mark&Sweep, `marksweep-fixed' for
Mark&Sweep with a fixed heap, and `marksweep-fixed-par' for parallel
Mark&Sweep with a fixed heap. The Mark&Sweep collector is the default.
.TP
\fBmajor-heap-size=\fIsize\fR
Sets the size of the major heap (not including the large object space)
for the fixed-heap Mark&Sweep collector (i.e. `marksweep-fixed' and
`marksweep-fixed-par'). The size is in bytes, with optional suffixes
`k', `m' and `g' to specify kilo-, mega- and gigabytes, respectively.
The default is 512 megabytes.
\fBmajor=\fIcollector\fR Specifies which major collector to use.
Options are `marksweep' for the Mark&Sweep collector, and
`marksweep-conc' for concurrent Mark&Sweep. The non-concurrent
Mark&Sweep collector is the default.
.TP
\fBsoft-heap-limit=\fIsize\fR
Once the heap size gets larger than this size, ignore what the default
@@ -1266,6 +1283,21 @@ work, Mono needs to be compiled with the BINARY_PROTOCOL define on
sgen-gc.c. You can then use this command to explore the output
.nf
sgen-grep-binprot 0x1234 0x5678 < file
.TP
\fBnursery-canaries\fR
If set, objects allocated in the nursery are suffixed with a canary (guard)
word, which is checked on each minor collection. Can be used to detect/debug
heap corruption issues.
.fi
.ne
.RE
.TP
\fBdo-not-finalize\fR
If enabled, finalizers will not be run. Everything else will be
unaffected: finalizable objects will still be put into the
finalization queue where they survive until they're scheduled to
finalize. Once they're not in the queue anymore they will be
collected regularly.
.fi
.ne
.RE
@@ -1375,7 +1407,7 @@ libraries side-by-side with the main executable.
.Sp
For a complete description of recommended practices for application
deployment, see
http://www.mono-project.com/Guidelines:Application_Deployment
http://www.mono-project.com/docs/getting-started/application-deployment/
.TP
\fBMONO_RTC\fR
Experimental RTC support in the statistical profiler: if the user has
@@ -1759,7 +1791,7 @@ on this subject see the http://www.mono-project.com/Config_system.web
page.
.SH MAILING LISTS
Mailing lists are listed at the
http://www.mono-project.com/Mailing_Lists
http://www.mono-project.com/community/help/mailing-lists/
.SH WEB SITE
http://www.mono-project.com
.SH SEE ALSO
@@ -1768,6 +1800,6 @@ certmgr(1), csharp(1), mcs(1), mdb(1), monocov(1), monodis(1),
mono-config(5), mozroots(1), mprof-report(1), pdb2mdb(1), xsp(1), mod_mono(8).
.PP
For more information on AOT:
http://www.mono-project.com/AOT
http://www.mono-project.com/docs/advanced/aot/
.PP
For ASP.NET-related documentation, see the xsp(1) manual page
+3 -3
View File
@@ -202,13 +202,13 @@ Specify a parameter for a custom step.
.SH COPYRIGHT
Copyright (C) 2007 Novell, Inc (http://www.novell.com)
.SH BUGS
Bugs report are welcome at http://bugzilla.ximian.com
Bugs report are welcome at http://bugzilla.xamarin.com
.PP
Product Mono Tools, Component linker.
.SH MAILING LISTS
Mailing lists are listed at http://www.mono-project.com/Mailing_Lists
Mailing lists are listed at http://www.mono-project.com/community/help/mailing-lists/
.SH WEB SITE
http://www.mono-project.com/Linker
http://www.mono-project.com/docs/tools+libraries/tools/linker/
.SH AUTHORS
The linker has been written by Jb Evain, and have been partially founded by
the Google Summer of Code.
+8
View File
@@ -30,6 +30,14 @@ Show private members.
.TP
.I \-\-runtime\-version
Print runtime version.
.TP
.I \-xa
Sets the lookup path to the Xamarin.Android directory. This will
load both the mscorlib from there, and search assemblies in that directory.
.TP
.I \-xi
Sets the lookup path to the Xamarin.iOS directory. This will
load both the mscorlib from there, and search assemblies in that directory.
.PP
.SH DESCRIPTION
Monop is a tool that allows you to view the outline of a class. You can see the
+1 -1
View File
@@ -170,7 +170,7 @@ manual page for more information on managing certificate stores.
Copyright (C) 2005 Novell.
.SH MAILING LISTS
Mailing lists are listed at the
http://www.mono-project.com/Mailing_Lists
http://www.mono-project.com/community/help/mailing-lists/
.SH WEB SITE
http://www.mono-project.com
.SH SEE ALSO
+1 -1
View File
@@ -536,7 +536,7 @@ information, you could use it like this:
.PP
\f[B]output=|mprof-report\ --reports=monitor\ --traces\ -\f[]
.SH WEB SITE
http://www.mono-project.com/Profiler
http://www.mono-project.com/docs/debug+profile/profile/profiler/
.SH SEE ALSO
.PP
mono(1)
+1 -1
View File
@@ -518,7 +518,7 @@ licenses are available from Novell or Daniel Morgan.
To report bugs in the compiler, you can use `bug-buddy', or you can
file bug reports in our bug tracking system:
.nf
http://bugzilla.ximian.com.
http://bugzilla.xamarin.com.
.fi
.PP
.SH MAILING LISTS
+7 -63
View File
@@ -6,72 +6,16 @@ SUBDIRS := build jay mcs class nunit24 ilasm tools tests errors docs
basic_SUBDIRS := build jay mcs class
build_SUBDIRS := build class mcs class/aot-compiler tools
net_2_0_SUBDIRS := build class nunit24 ilasm tools tests errors docs
monodroid_SUBDIRS := build class
monotouch_SUBDIRS := build class
monotouch_runtime_SUBDIRS := build class
xammac_SUBDIRS := build class
mobile_SUBDIRS := build class
net_3_5_SUBDIRS := build class tools/xbuild
net_4_0_SUBDIRS := build class
mobile_static_SUBDIRS := build class
binary_reference_assemblies_SUBDIRS := build class
net_4_5_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
xbuild_12_SUBDIRS := build class tools/xbuild
# List of test subdirs that should pass 100%
centum_tests := \
class/corlib \
class/System \
class/System.XML \
class/Commons.Xml.Relaxng \
class/Cscompmgd \
class/Mono.Posix \
class/Mono.Security \
class/System.Design \
class/System.DirectoryServices \
class/System.Drawing \
class/System.Runtime.Remoting \
class/System.Runtime.Serialization.Formatters.Soap \
class/System.Security \
class/System.ServiceProcess \
class/System.Web \
class/System.Web.Services \
tests \
errors
default_centum_tests := \
$(centum_tests) \
class/System.Data
net_2_0_centum_tests := \
$(centum_tests) \
class/System.Core \
class/System.Configuration \
class/System.Data.DataSetExtensions \
class/System.Xml.Linq \
class/System.Transactions \
class/Microsoft.Build.Framework \
class/Microsoft.Build.Utilities \
class/Microsoft.Build.Engine \
class/System.Runtime.Serialization \
class/System.IdentityModel \
class/System.ServiceModel \
class/System.ServiceModel.Web \
class/Mono.C5
# class/System.Web.Extensions
# class/Microsoft.Build.Tasks
# note that System.Xml.Linq is here to prevent this from being empty
net_3_5_centum_tests := \
class/System.Xml.Linq
ifdef ONLY_CENTUM_TESTS
TEST_SUBDIRS := $($(PROFILE)_centum_tests)
endif
ifdef TEST_SUBDIRS
$(PROFILE)_SUBDIRS := $(TEST_SUBDIRS)
endif
xbuild_14_SUBDIRS := build class tools/xbuild
include build/rules.make
@@ -86,7 +30,7 @@ dir-check:
# fun specialty targets
PROFILES = net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12
PROFILES = net_4_5 binary_reference_assemblies xbuild_12 xbuild_14
.PHONY: all-profiles $(STD_TARGETS:=-profiles)
all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
@@ -105,16 +49,16 @@ profiles-do--run-test:
# Orchestrate the bootstrap here.
_boot_ = all clean install
$(_boot_:%=profile-do--xbuild_14--%): profile-do--xbuild_14--%: profile-do--net_4_5--%
$(_boot_:%=profile-do--xbuild_12--%): profile-do--xbuild_12--%: profile-do--net_4_5--%
$(_boot_:%=profile-do--binary_reference_assemblies--%): profile-do--binary_reference_assemblies--%: profile-do--build--%
$(_boot_:%=profile-do--net_4_5--%): profile-do--net_4_5--%: profile-do--build--%
$(_boot_:%=profile-do--net_4_0--%): profile-do--net_4_0--%: profile-do--build--%
$(_boot_:%=profile-do--net_3_5--%): profile-do--net_3_5--%: profile-do--net_2_0--%
$(_boot_:%=profile-do--monodroid--%): profile-do--monodroid--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch--%): profile-do--monotouch--%: profile-do--build--%
$(_boot_:%=profile-do--monotouch_runtime--%): profile-do--monotouch_runtime--%: profile-do--build--%
$(_boot_:%=profile-do--xammac--%): profile-do--xammac--%: profile-do--build--%
$(_boot_:%=profile-do--mobile--%): profile-do--mobile--%: profile-do--build--%
$(_boot_:%=profile-do--net_2_0--%): profile-do--net_2_0--%: profile-do--build--%
$(_boot_:%=profile-do--mobile_static--%): profile-do--mobile_static--%: profile-do--build--%
$(_boot_:%=profile-do--build--%): profile-do--build--%: profile-do--basic--%
testcorlib:
+5 -5
View File
@@ -18,17 +18,17 @@ PLATFORMS = darwin linux win32
PROFILES = \
basic \
build \
net_2_0 \
net_3_5 \
net_4_0 \
binary_reference_assemblies \
net_4_5 \
xbuild_12
xbuild_12 \
xbuild_14
COMMON_SRCS = \
Consts.cs.in \
Locale.cs \
MonoTODOAttribute.cs \
basic-profile-check.cs
basic-profile-check.cs \
SR.cs
DISTFILES = \
README.makefiles \
+4 -21
View File
@@ -52,28 +52,13 @@ static class Consts
public const string VsVersion = "0.0.0.0"; // Useless ?
public const string VsFileVersion = "11.0.0.0"; // TODO:
#elif NET_4_0
public const string FxVersion = "4.0.0.0";
public const string FxFileVersion = "4.0.30319.1";
public const string VsVersion = "0.0.0.0"; // Useless ?
public const string VsFileVersion = "10.0.0.0"; // TODO:
#error Profile NET_4_0 is not supported.
#elif NET_3_5
// Versions of .NET Framework 3.5 RTM
public const string FxVersion = "3.5.0.0";
public const string FxFileVersion = "3.5.21022.8";
public const string VsVersion = "0.0.0.0"; // Useless ?
#error Profile NET_3_5 is not supported.
#elif NET_3_0
public const string FxVersion = "3.0.0.0";
public const string VsVersion = "8.0.0.0";
public const string FxFileVersion = "3.0.4506.648";
public const string VsFileVersion = "6.0.6001.17014";
#error Profile NET_3_0 is not supported.
#elif NET_2_0
// Versions of .NET Framework 2.0 RTM
public const string FxVersion = "2.0.0.0";
public const string VsVersion = "8.0.0.0";
public const string FxFileVersion = "2.0.50727.1433";
public const string VsFileVersion = "8.0.50727.1433";
#error Profile NET_2_0 is not supported.
#elif NET_1_1
#error Profile NET_1_1 is not supported.
#elif NET_1_0
@@ -124,7 +109,5 @@ static class Consts
public const string AssemblySystemServiceModel_3_0 = "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
#elif NET_2_1
public const string AssemblySystem_Core = "System.Core, Version=" + FxVersion + ", Culture=neutral, PublicKeyToken=b77a5c561934e089";
#elif NET_2_0
public const string AssemblySystem_Core = "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
#endif
}
+47
View File
@@ -0,0 +1,47 @@
using System.Globalization;
static class AssemblyRef
{
// FIXME
internal const string SystemConfiguration = "System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
internal const string System = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";
public const string EcmaPublicKey = "b77a5c561934e089";
public const string MicrosoftPublicKey = "b03f5f7f11d50a3a";
public const string MicrosoftVSDesigner = Consts.AssemblyMicrosoft_VSDesigner;
public const string SystemDesign = Consts.AssemblySystem_Design;
public const string SystemDrawing = Consts.AssemblySystem_Drawing;
public const string SystemWeb = Consts.AssemblySystem_Web;
public const string SystemWebExtensions = "System.Web.Extensions, Version=" + Consts.FxVersion + ", Culture=neutral, PublicKeyToken=31bf3856ad364e35";
public const string SystemWindowsForms = Consts.AssemblySystem_Windows_Forms;
}
static partial class SR
{
internal static string GetString(string name, params object[] args)
{
return GetString (CultureInfo.InvariantCulture, name, args);
}
internal static string GetString(CultureInfo culture, string name, params object[] args)
{
return string.Format (culture, name, args);
}
internal static string GetString(string name)
{
return name;
}
internal static string GetString(CultureInfo culture, string name)
{
return name;
}
}
namespace System.Runtime.CompilerServices
{
class FriendAccessAllowedAttribute : Attribute
{ }
}
+23
View File
@@ -1,3 +1,5 @@
using System;
class X {
// Check installed compiler
static void Generic<T> ()
@@ -20,6 +22,27 @@ class X {
if (o == null)
return 1;
var consts = o.GetType ().Assembly.GetType ("Consts");
if (consts == null) {
// We could be bootraping on cygwin using .net runtime
var assembly = o.GetType ().Assembly;
if (assembly.GetName ().Version >= new Version (4, 0) && assembly.Location.Contains ("Microsoft.NET"))
return 0;
return 2;
}
var field = consts.GetField ("MonoVersion");
if (field == null)
return 3;
Version version;
if (!Version.TryParse (field.GetValue (null) as string, out version))
return 4;
if (version < new Version (3, 8))
return 5;
return 0;
}
}
+7 -13
View File
@@ -66,6 +66,12 @@ else
the_libdir_base = $(topdir)/class/$(lib_dir)/$(PROFILE)/
endif
ifdef RESOURCE_STRINGS
ifdef BOOTSTRAP_PROFILE
MCS_FLAGS_INTERNAL += $(RESOURCE_STRINGS:%=--getresourcestrings:%)
endif
endif
#
# The bare directory contains the plain versions of System and System.Xml
#
@@ -79,15 +85,11 @@ secxml_libdir = $(the_libdir_base)secxml
the_libdir = $(the_libdir_base)$(intermediate)
ifdef LIBRARY_NEEDS_POSTPROCESSING
build_libdir = fixup/$(PROFILE)/
else
ifdef LIBRARY_USE_INTERMEDIATE_FILE
build_libdir = $(the_libdir)tmp/
else
build_libdir = $(the_libdir)
endif
endif
the_lib = $(the_libdir)$(LIBRARY_NAME)
build_lib = $(build_libdir)$(LIBRARY_NAME)
@@ -243,13 +245,6 @@ dist-local: dist-default
for d in . $$subs ; do \
case $$d in .) : ;; *) test ! -f $$d/ChangeLog || cp -p $$d/ChangeLog $(distdir)/$$d ;; esac ; done
ifdef LIBRARY_NEEDS_POSTPROCESSING
dist-local: dist-fixup
FIXUP_PROFILES = default net_2_0
dist-fixup:
$(MKINSTALLDIRS) $(distdir)/fixup $(FIXUP_PROFILES:%=$(distdir)/fixup/%)
endif
ifndef LIBRARY_COMPILE
LIBRARY_COMPILE = $(CSCOMPILE)
endif
@@ -340,9 +335,8 @@ $(makefrag) $(test_response) $(test_makefrag) $(btest_response) $(btest_makefrag
## Documentation stuff
Q_MDOC_UP=$(if $(V),,@echo "MDOC-UP [$(PROFILE)] $(notdir $(@))";)
# net_2_0 is needed because monodoc is only compiled in that profile
MDOC_UP =$(Q_MDOC_UP) \
MONO_PATH="$(topdir)/class/lib/$(DEFAULT_PROFILE)$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/class/lib/$(DEFAULT_PROFILE)/mdoc.exe \
MONO_PATH="$(topdir)/class/lib/$(DEFAULT_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/class/lib/$(DEFAULT_PROFILE)/mdoc.exe \
update --delete -o Documentation/en $(the_lib)
doc-update-local: $(the_libdir)/.doc-stamp
+1 -1
View File
@@ -9,7 +9,7 @@ PLATFORM_RUNTIME = $(RUNTIME)
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES = NotOnMac,
EXTERNAL_MCS = gmcs
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = mbas
EXTERNAL_RUNTIME = mono
#ILDISASM = monodis
+1 -1
View File
@@ -9,7 +9,7 @@ PLATFORM_RUNTIME = $(RUNTIME)
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES =
EXTERNAL_MCS = gmcs
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = mbas
EXTERNAL_RUNTIME = mono
#ILDISASM = monodis
+1 -1
View File
@@ -9,7 +9,7 @@ PLATFORM_RUNTIME =
PLATFORM_CORLIB = mscorlib.dll
PLATFORM_TEST_HARNESS_EXCLUDES =
EXTERNAL_MCS = gmcs
EXTERNAL_MCS = mcs
EXTERNAL_MBAS = vbc.exe
EXTERNAL_RUNTIME =
+4 -3
View File
@@ -18,11 +18,11 @@ endif
MCS = $(with_mono_path) $(INTERNAL_GMCS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:BOOTSTRAP_BASIC -nowarn:1699
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:BOOTSTRAP_BASIC -nowarn:1699 -d:DISABLE_CAS_USE -lib:$(topdir)/class/lib/$(PROFILE)
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
NO_INSTALL = yes
FRAMEWORK_VERSION = 2.0
FRAMEWORK_VERSION = 4.0
# Compiler all using same bootstrap compiler
LIBRARY_COMPILE = $(BOOT_COMPILE)
@@ -65,8 +65,9 @@ do-profile-check: $(depsdir)/.stamp
$(MAKE) -s do-profile-check-monolite ; \
else \
echo "*** The compiler '$(BOOTSTRAP_MCS)' doesn't appear to be usable." 1>&2; \
echo "*** You need Mono version 2.10 or better installed to build MCS" 1>&2 ; \
echo "*** You need Mono version 3.8 or better installed to build MCS" 1>&2 ; \
echo "*** Check mono README for information on how to bootstrap a Mono installation." 1>&2 ; \
echo "*** The version of '$(BOOTSTRAP_MCS)' is: `$(BOOTSTRAP_MCS) --version`." 1>&2 ; \
exit 1; fi; fi
@@ -0,0 +1,7 @@
# -*- makefile -*-
profile-check:
@:
NO_BUILD = yes
NO_TEST = yes
+2 -2
View File
@@ -13,10 +13,10 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:DISABLE_CAS_USE -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
NO_INSTALL = yes
FRAMEWORK_VERSION = 4.0
FRAMEWORK_VERSION = 4.5
+18 -1
View File
@@ -12,7 +12,24 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:MOBILE -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
-d:NET_2_0 \
-d:NET_2_1 \
-d:MOBILE \
-d:MOBILE_DYNAMIC \
-d:NET_3_5 \
-d:NET_4_0 \
-d:NET_4_5 \
-d:MONO \
-d:DISABLE_CAS_USE \
-nowarn:1699 \
-nostdlib \
-lib:$(topdir)/class/lib/$(PROFILE) \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_INSTALL = yes
+20 -1
View File
@@ -12,7 +12,26 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:FULL_AOT_RUNTIME -d:DISABLE_REMOTING -d:DISABLE_COM -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
-d:NET_2_0 \
-d:NET_2_1 \
-d:NET_3_5 \
-d:NET_4_0 \
-d:NET_4_5 \
-d:MONO \
-d:DISABLE_CAS_USE \
-d:MOBILE \
-d:FULL_AOT_RUNTIME \
-d:DISABLE_REMOTING \
-d:DISABLE_COM \
-nowarn:1699 \
-nostdlib \
-lib:$(topdir)/class/lib/$(PROFILE) \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
+20 -1
View File
@@ -12,7 +12,26 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MOBILE_DYNAMIC -d:MONODROID -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
-d:NET_2_0 \
-d:NET_2_1 \
-d:NET_3_5 \
-d:NET_4_0 \
-d:NET_4_5 \
-d:MONO \
-d:DISABLE_CAS_USE \
-d:MOBILE \
-d:MOBILE_DYNAMIC \
-d:MONODROID \
-d:ANDROID \
-nowarn:1699 \
-nostdlib \
-lib:$(topdir)/class/lib/$(PROFILE) \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
+22 -2
View File
@@ -12,9 +12,29 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MONOTOUCH -d:DISABLE_REMOTING -d:DISABLE_COM -d:FULL_AOT_RUNTIME -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = \
-d:NET_1_1 \
-d:NET_2_0 \
-d:NET_2_1 \
-d:NET_3_5 \
-d:NET_4_0 \
-d:NET_4_5 \
-d:MOBILE \
-d:MONO \
-d:DISABLE_CAS_USE \
-d:MONOTOUCH \
-d:DISABLE_REMOTING \
-d:DISABLE_COM \
-d:FULL_AOT_RUNTIME \
-nowarn:1699 \
-nostdlib \
-lib:$(topdir)/class/lib/$(PROFILE) \
$(DEFAULT_REFERENCES) \
$(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
NO_TEST = yes
# the tuner takes care of the install
NO_INSTALL = yes
NO_INSTALL = yes
+1 -1
View File
@@ -14,7 +14,7 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MOBILE -d:MONOTOUCH -D:DISABLE_REMOTING -d:DISABLE_COM -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_2_1 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MONO -d:DISABLE_CAS_USE -d:MOBILE -d:MONOTOUCH -D:DISABLE_REMOTING -d:DISABLE_COM -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.1
-16
View File
@@ -1,16 +0,0 @@
# -*- makefile -*-
BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# nuttzing!
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 2.0
XBUILD_VERSION = 2.0
-20
View File
@@ -1,20 +0,0 @@
# -*- makefile -*-
BOOTSTRAP_PROFILE = build
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# nuttzing!
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) -lib:$(topdir)/class/lib/net_2_0 $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 3.5
XBUILD_VERSION = 3.5
TEST_HARNESS = $(topdir)/class/lib/net_2_0/nunit-console.exe
TEST_MONO_PATH = $(topdir)/class/lib/net_2_0
-22
View File
@@ -1,22 +0,0 @@
# -*- makefile -*-
BOOTSTRAP_PROFILE = build
BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# nuttzing!
profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES)
FRAMEWORK_VERSION = 4.0
XBUILD_VERSION = 4.0
LIBRARY_INSTALL_DIR = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
# Ignore tests on net_4_0 as the 4.0 IL code is never used for running (just for metadata), so it doesn't make sense to execute tests there
NO_TEST = yes
+1 -1
View File
@@ -11,7 +11,7 @@ profile-check:
@:
DEFAULT_REFERENCES = -r:mscorlib.dll
PROFILE_MCS_FLAGS = -d:NET_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
PROFILE_MCS_FLAGS = -d:NET_4_0 -d:NET_4_5 -d:MONO -d:DISABLE_CAS_USE -nowarn:1699 -nostdlib -lib:$(topdir)/class/lib/$(PROFILE) $(DEFAULT_REFERENCES) $(PLATFORM_DEBUG_FLAGS)
FRAMEWORK_VERSION = 4.5
XBUILD_VERSION = 4.0
+2
View File
@@ -18,6 +18,8 @@ PROFILE_MCS_FLAGS = \
-d:NET_3_5 \
-d:NET_4_0 \
-d:NET_4_5 \
-d:MONO \
-d:DISABLE_CAS_USE \
-d:MOBILE \
-d:MOBILE_DYNAMIC \
-d:XAMMAC \
+1 -1
View File
@@ -2,6 +2,6 @@
include $(topdir)/build/profiles/net_4_5.make
PROFILE_MCS_FLAGS := $(PROFILE_MCS_FLAGS) -d:XBUILD_12 -lib:$(topdir)/class/lib/net_4_5
PROFILE_MCS_FLAGS := $(PROFILE_MCS_FLAGS) -d:XBUILD_12 -d:MONO -d:DISABLE_CAS_USE -lib:$(topdir)/class/lib/net_4_5
XBUILD_VERSION = 12.0
+7
View File
@@ -0,0 +1,7 @@
# -*- makefile -*-
include $(topdir)/build/profiles/net_4_5.make
PROFILE_MCS_FLAGS := $(PROFILE_MCS_FLAGS) -d:XBUILD_12 -d:XBUILD_14 -d:MONO -d:DISABLE_CAS_USE -lib:$(topdir)/class/lib/net_4_5
XBUILD_VERSION = 14.0
+2 -3
View File
@@ -28,7 +28,7 @@ ifndef BUILD_TOOLS_PROFILE
BUILD_TOOLS_PROFILE = build
endif
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS)
USE_MCS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MCS_FLAGS) $(PLATFORM_MCS_FLAGS) $(PROFILE_MCS_FLAGS) $(MCS_FLAGS) $(MCS_FLAGS_INTERNAL)
USE_MBAS_FLAGS = /codepage:$(CODEPAGE) $(LOCAL_MBAS_FLAGS) $(PLATFORM_MBAS_FLAGS) $(PROFILE_MBAS_FLAGS) $(MBAS_FLAGS)
USE_CFLAGS = $(LOCAL_CFLAGS) $(CFLAGS) $(CPPFLAGS)
CSCOMPILE = $(Q_MCS) $(MCS) $(USE_MCS_FLAGS)
@@ -210,6 +210,5 @@ dist-default:
## Documentation stuff
Q_MDOC =$(if $(V),,@echo "MDOC [$(PROFILE)] $(notdir $(@))";)
# net_2_0 is needed because monodoc is only compiled in that profile
MDOC =$(Q_MDOC) MONO_PATH="$(topdir)/class/lib/$(DEFAULT_PROFILE)$(PLATFORM_PATH_SEPARATOR)$(topdir)/class/lib/net_2_0$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/class/lib/$(DEFAULT_PROFILE)/mdoc.exe
MDOC =$(Q_MDOC) MONO_PATH="$(topdir)/class/lib/$(DEFAULT_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(topdir)/class/lib/$(DEFAULT_PROFILE)/mdoc.exe
@@ -1,79 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{43A23ADA-35D9-4A48-BCE5-C21C081C6676}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -1,79 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0978E130-1E7B-4627-A9CC-7489DB17BFF1}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Accessibility</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{F42F5509-677F-4C93-A026-047AB6153801}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -25,7 +25,7 @@
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -33,7 +33,7 @@
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -41,7 +41,6 @@ namespace Commons.Xml.Nvdl
public override XmlReader CreateValidator (XmlReader reader,
XmlResolver resolver)
{
#if NET_2_0
XmlReaderSettings s = new XmlReaderSettings ();
s.ValidationType = ValidationType.Schema;
// do not allow inline schema and schemaLocation.
@@ -50,14 +49,6 @@ namespace Commons.Xml.Nvdl
foreach (XmlSchema schema in schemas)
s.Schemas.Add (schema);
return XmlReader.Create (reader, s);
#else
XmlValidatingReader xvr =
new XmlValidatingReader (reader);
xvr.XmlResolver = resolver;
foreach (XmlSchema schema in schemas)
xvr.Schemas.Add (schema);
return xvr;
#endif
}
public override bool AddOption (string name, string arg)
@@ -1,128 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{2B2412A6-4397-4DA7-94A6-D1AFEBCFA563}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{1F3B168C-A4D0-44AA-B116-792D8804971F}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_2_0-1.csproj">
<Project>{080698DE-8AF0-496E-9AD7-58B6C605328A}</Project>
<Name>System.XML\System.Xml-net_2_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -1,128 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4381A633-26BF-430E-B03B-A83DC8146BF9}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlBuiltInValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlCompileContext.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlConfig.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlException.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlFilteredXmlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlRelaxngSupport.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlSimplified.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlStructures.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidatingReader.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidationProvider.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlValidator.cs" />
<Compile Include="Commons.Xml.Nvdl\NvdlXsdSupport.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpContentType.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpNameClasses.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpObjects.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\RdpPatterns.cs" />
<Compile Include="Commons.Xml.Relaxng.Derivative\Util.cs" />
<Compile Include="Commons.Xml.Relaxng.Inference\RelaxngInference.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncTokenizer.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncWriter.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\XmlChar.cs" />
<Compile Include="Commons.Xml.Relaxng\Misc.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatype.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDatatypeProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngDefaultDatatypes.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngException.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngGrammar.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngMergedProvider.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngNameClass.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPattern.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngPatternType.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngReader.cs" />
<Compile Include="Commons.Xml.Relaxng\RelaxngValidatingReader.cs" />
<Compile Include="Commons.Xml.Relaxng\XsdDatatypeProvider.cs" />
<Compile Include="Commons.Xml\XmlDefaultReader.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{F42F5509-677F-4C93-A026-047AB6153801}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{3391D58D-26E9-48D2-9A76-4BC1A2F06BE9}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_0-1.csproj">
<Project>{3FFA80F7-ACB9-480C-828F-7C9BA7A17EE3}</Project>
<Name>System.XML\System.Xml-net_4_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -25,7 +25,7 @@
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -33,7 +33,7 @@
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -1,101 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0CCD9F77-53C4-4E1A-92C5-0A237C034C00}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-tests-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng_test_net_2_0</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="..\lib\net_2_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_2_0.csproj">
<Project>{2B2412A6-4397-4DA7-94A6-D1AFEBCFA563}</Project>
<Name>Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{1F3B168C-A4D0-44AA-B116-792D8804971F}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_2_0-1.csproj">
<Project>{080698DE-8AF0-496E-9AD7-58B6C605328A}</Project>
<Name>System.XML\System.Xml-net_2_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -1,101 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{75496501-CA6D-4C97-952E-95DC6F77C523}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>bin\Debug\Commons.Xml.Relaxng-tests-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Commons.Xml.Relaxng_test_net_4_0</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\NvdlValidatingReaderTests.cs" />
<Compile Include="Test\RdpPatternTests.cs" />
<Compile Include="Test\RelaxngDatatypeProviderTests.cs" />
<Compile Include="Test\RelaxngReaderTests.cs" />
<Compile Include="Test\RelaxngValidatingReaderTests.cs" />
<Compile Include="Test\RncTests.cs" />
<Compile Include="Test\XsdDatatypeTests.cs" />
<Compile Include="Commons.Xml.Relaxng.Rnc\RncParser.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="..\lib\net_4_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{F42F5509-677F-4C93-A026-047AB6153801}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_4_0.csproj">
<Project>{4381A633-26BF-430E-B03B-A83DC8146BF9}</Project>
<Name>Commons.Xml.Relaxng\Commons.Xml.Relaxng-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{3391D58D-26E9-48D2-9A76-4BC1A2F06BE9}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_0-1.csproj">
<Project>{3FFA80F7-ACB9-480C-828F-7C9BA7A17EE3}</Project>
<Name>System.XML\System.Xml-net_4_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="resources/relaxng.rng">
<LogicalName>relaxng.rng</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Project>
@@ -417,7 +417,6 @@ namespace Commons.Xml.Relaxng.Inference
private QName InferMergedType (string value, QName typeName)
{
#if NET_2_0
// examine value against specified type and
// if unacceptable, then return a relaxed type.
@@ -436,7 +435,6 @@ namespace Commons.Xml.Relaxng.Inference
typeName = st != null ? st.QualifiedName : QName.Empty;
}
} while (typeName != QName.Empty);
#endif
return QNameString;
}
@@ -107,7 +107,7 @@ namespace Commons.Xml.Relaxng.Rnc
public RelaxngPattern Parse (TextReader source, string baseUri, string defaultNamespace)
{
this.defaultNamespace = defaultNamespace;
this.defaultNamespace = defaultNamespace ?? string.Empty;
if (defaultNamespace != null && defaultNamespace.Length != 0)
nsmgr.AddNamespace (String.Empty, defaultNamespace);
try {
@@ -34,11 +34,7 @@ using System.IO;
using System.Xml;
using Commons.Xml.Relaxng;
#if NET_2_0
using NSResolver = System.Xml.IXmlNamespaceResolver;
#else
using NSResolver = System.Xml.XmlNamespaceManager;
#endif
namespace Commons.Xml.Relaxng.Rnc
{
@@ -217,11 +213,6 @@ namespace Commons.Xml.Relaxng.Rnc
{
string prefix = String.Empty;
if (ns != null && ns != String.Empty) {
#if NET_2_0
#else
// XmlNamespaceManager sucks.
ns = nss.NameTable.Add (ns);
#endif
prefix = nss.LookupPrefix (ns);
}
if (prefix == null)
@@ -278,12 +269,8 @@ namespace Commons.Xml.Relaxng.Rnc
defaultNamespace);
if (nsmgr != null) {
#if NET_2_0
foreach (string s in nsmgr.GetNamespacesInScope (
XmlNamespaceScope.All).Keys) {
#else
foreach (string s in nsmgr) {
#endif
switch (s) {
case "xml":
case "xmlns":
@@ -38,11 +38,7 @@ using System.Xml;
using Commons.Xml.Relaxng.Derivative;
using Commons.Xml.Relaxng.Rnc;
#if NET_2_0
using NSResolver = System.Xml.IXmlNamespaceResolver;
#else
using NSResolver = System.Xml.XmlNamespaceManager;
#endif
namespace Commons.Xml.Relaxng
{
@@ -13,7 +13,7 @@ using System.Xml;
using Commons.Xml.Nvdl;
using NUnit.Framework;
namespace MonoTests.Commons.Xml.Nvdl
namespace MonoTests.Commons.Xml.Relaxng
{
[TestFixture]
public class NvdlValidatingReaderTests
@@ -95,5 +95,19 @@ start = mine";
r.Close ();
}
}
[Test]
public void SimpleDefaultNamespace ()
{
var g = RncParser.ParseRnc (new StringReader ("element e { empty }"));
var x = XmlReader.Create (new StringReader ("<e/>"));
var r = new RelaxngValidatingReader (x, g);
try {
while (!r.EOF)
r.Read ();
} finally {
r.Close ();
}
}
}
}
@@ -8,7 +8,7 @@ TEST_ARCHIVE = testSuite.zip
RNCTESTS = test/RNCTest.xml
RNCTEST_ARCHIVE = anglia-test-suite.zip
all : relaxngtest.exe anglia-test-runner.exe
all : relaxngtest.exe #anglia-test-runner.exe
relaxngtest.exe : relaxngtest.cs $(TESTS)
$(MCS_RUNTIME) $(MCS) -debug+ relaxngtest.cs -r:Commons.Xml.Relaxng.dll
@@ -1,121 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{8F572B12-CBD2-48F8-8234-41A876C57364}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/compat/net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>ICSharpCode.SharpZipLib</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include=".\ICSharpCode.SharpZipLib\AssemblyInfo.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2Constants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2InputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\BZip2\BZip2OutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Adler32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\Crc32.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\IChecksum.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Checksums\StrangeCrc.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\GZip\GZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\InvalidHeaderException.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarArchive.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Tar\TarOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Deflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterEngine.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterHuffman.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\DeflaterPending.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Inflater.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterDynHeader.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\InflaterHuffmanTree.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\PendingBuffer.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\DeflaterOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\InflaterInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\OutputWindow.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\Compression\Streams\StreamManipulator.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipConstants.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipEntry.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipFile.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipInputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\Zip\ZipOutputStream.cs" />
<Compile Include=".\ICSharpCode.SharpZipLib\ZipException.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{1F3B168C-A4D0-44AA-B116-792D8804971F}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_2_0-1.csproj">
<Project>{080698DE-8AF0-496E-9AD7-58B6C605328A}</Project>
<Name>System.XML\System.Xml-net_2_0-1</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -47,12 +47,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
#if NET_2_0
[assembly: AssemblyVersion("2.6.0.0")]
#else
// not worrying about the NET_1_0 profile for now.
[assembly: AssemblyVersion("0.6.0.0")]
#endif
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyKeyFile ("SharpZipLib.pub")]
@@ -33,9 +33,7 @@ using System.Reflection;
using System.Resources;
using System.Diagnostics;
using System.Runtime.CompilerServices;
#if NET_2_0
using System.Runtime.ConstrainedExecution;
#endif
using System.Runtime.InteropServices;
// General Information about the cscompmgd assembly
@@ -1,86 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C010783F-1EAC-480C-B1D4-A289426D3F8F}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{1F3B168C-A4D0-44AA-B116-792D8804971F}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -1,86 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B26893EC-D295-40B7-8AE6-60B3D0F5CBA6}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>cscompmgd</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="Microsoft.CSharp\Compiler.cs" />
<Compile Include="Microsoft.CSharp\CompilerError.cs" />
<Compile Include="Microsoft.CSharp\ErrorLevel.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{F42F5509-677F-4C93-A026-047AB6153801}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{3391D58D-26E9-48D2-9A76-4BC1A2F06BE9}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
+2 -2
View File
@@ -25,7 +25,7 @@
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -33,7 +33,7 @@
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5</DefineConstants>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -1,85 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B3E7EE0C-3AB6-4578-844E-FF72C5807953}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>bin\Debug\Cscompmgd-tests-net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Cscompmgd_test_net_2_0</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="..\lib\net_2_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\Cscompmgd\Cscompmgd-net_2_0.csproj">
<Project>{C010783F-1EAC-480C-B1D4-A289426D3F8F}</Project>
<Name>Cscompmgd\Cscompmgd-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{1F3B168C-A4D0-44AA-B116-792D8804971F}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -1,85 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0CD2EF3C-6E4A-4FC5-9D8C-B0CB5E4EE3BF}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699,618,219,169</NoWarn>
<OutputPath>bin\Debug\Cscompmgd-tests-net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>False</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>Cscompmgd_test_net_4_0</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699,618,219,169</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="Test\Microsoft.CSharp\CompilerTest.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="..\lib\net_4_0\nunit.framework.dll" />
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{F42F5509-677F-4C93-A026-047AB6153801}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\Cscompmgd\Cscompmgd-net_4_0.csproj">
<Project>{B26893EC-D295-40B7-8AE6-60B3D0F5CBA6}</Project>
<Name>Cscompmgd\Cscompmgd-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{3391D58D-26E9-48D2-9A76-4BC1A2F06BE9}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -36,9 +36,7 @@ using System.Text.RegularExpressions;
namespace Microsoft.CSharp {
#if NET_2_0
[System.Obsolete]
#endif
public class Compiler {
private Compiler()
@@ -32,9 +32,7 @@ using System.Text;
namespace Microsoft.CSharp {
#if NET_2_0
[System.Obsolete]
#endif
public class CompilerError {
public ErrorLevel ErrorLevel;
@@ -29,9 +29,7 @@
namespace Microsoft.CSharp {
#if NET_2_0
[System.Obsolete]
#endif
public enum ErrorLevel {
None,
Warning,
@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{81062FC0-B86A-4707-9BC3-F67FDFB47AF4}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_2_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_2_0.csproj">
<Project>{5A00133C-6D08-48F7-A164-8B796CE6DB83}</Project>
<Name>corlib\corlib-net_2_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_2_0-2.csproj">
<Project>{1F3B168C-A4D0-44AA-B116-792D8804971F}</Project>
<Name>System\System-net_2_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
@@ -1,87 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{73865D3C-DCFC-4C7A-8AB5-D8C3CA6DBB42}</ProjectGuid>
<OutputType>Library</OutputType>
<NoWarn>1699</NoWarn>
<OutputPath>./../../class/lib/net_4_0</OutputPath>
<NoStdLib>True</NoStdLib>
<NoConfig>True</NoConfig>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>
</RootNamespace>
<AssemblyName>CustomMarshalers</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE;NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<NoWarn>1699</NoWarn>
<Optimize>true</Optimize>
<DefineConstants>NET_1_1;NET_2_0;NET_3_0;NET_3_5;NET_4_0</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<!-- Set AddAdditionalExplicitAssemblyReferences to false, otherwise if targetting .NET4.0,
Microsoft.NETFramework.props will force a dependency on the assembly System.Core. This
is a problem to compile the Mono mscorlib.dll -->
<PropertyGroup>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="..\..\build\common\Consts.cs" />
<Compile Include="..\..\build\common\Locale.cs" />
<Compile Include="..\..\build\common\MonoTODOAttribute.cs" />
<Compile Include=".\Assembly\AssemblyInfo.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumerableToDispatchMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\EnumeratorToEnumVariantMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\ExpandoToDispatchExMarshaler.cs" />
<Compile Include=".\System.Runtime.InteropServices.CustomMarshalers\TypeToTypeInfoMarshaler.cs" />␍ </ItemGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
<PostBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_4_0.csproj">
<Project>{F42F5509-677F-4C93-A026-047AB6153801}</Project>
<Name>corlib\corlib-net_4_0</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_0-2.csproj">
<Project>{3391D58D-26E9-48D2-9A76-4BC1A2F06BE9}</Project>
<Name>System\System-net_4_0-2</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
Loaded 100 of 7945 files, more files were not shown because too many files have changed in this diff. Show more