Compare commits

...
2926 Commits
Author SHA1 Message Date
Zoltan Varga 974943dcf9 Merge pull request #1476 from DavidKarlas/ignoreHiddenSeqPoints
[Sdb] Ignore hidden sequence points
2015-01-04 12:55:25 -05:00
David Karlaš d4c52c0ae0 [Sdb] Ignore hidden sequence points 2014-12-23 16:24:08 +01:00
Zoltan Varga 8fe6c1d0d1 Merge pull request #1463 from DavidKarlas/seq-points
[Sdb] Debugger stepping like .Net
2014-12-18 16:41:46 -05:00
David Karlaš f131d0cf61 [Sdb] With better mimicking of .Net debugging experience stepping out of method returns to method call instead of next statement 2014-12-18 22:21:10 +01:00
David Karlaš 4538e3e0f2 [Sdb] Fixed bug with STEP_DEPTH_MIN+STEP_SIZE_MIN which stopped on NONEMPTY_STACK sequence point in same method as it begin stepping 2014-12-18 19:03:23 +01:00
David Karlaš 615fa21dcc [Sdb] Removed exclusion of CEE_POP and CEE_NOP sequence point creation 2014-12-18 19:02:52 +01:00
David Karlaš b389278fcb [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 2014-12-18 19:00:37 +01:00
Zoltan Varga 0690ce6405 [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. 2014-12-16 16:46:05 -05:00
Zoltan Varga e851dde346 [sdb] Avoid putting implicit seq points at nops followed by a sym seq point. 2014-12-15 19:10:53 -05:00
Zoltan Varga cbe8767979 [sdb] Put seq points at nop's following calls as well. 2014-12-15 17:57:08 -05:00
Zoltan Varga 8f1e376d7e [sdb] Emit an implicit sequence point after every call and newobj instruction. 2014-12-15 17:35:52 -05:00
Zoltan Varga db5eb9ff5a [sdb] Avoid using implicit sequence points for methods without debug info in images which have debug info, like auto generated property accessors. 2014-12-15 17:34:02 -05: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
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
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
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
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 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
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
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
Zoltan Varga 4b6a2c8f89 Fix a warning. 2014-09-05 20:07:13 -04:00
Zoltan Varga 729bbe4041 [jit] Store the epilog length in MonoArchEHJitInfo instead of encoding it in jinfo->unwind_desc, since the latter can overflow for methods with large epilogs. Fixes #22685. 2014-09-05 18:07:42 -04:00
Zoltan Varga 3795639a4a Fix the linux build. 2014-09-05 17:18:18 -04:00
Zoltan Varga c8c4bd9a78 [runtime] Fix the linux build. 2014-09-05 15:46:19 -04:00
Martin Baulig 24fbaedcd2 [WCF]: Actually fix #22179 to allow concurrent requests.
Pass the 'OperationContext' around in a parameter instead of storing it
in an instance field to make this thread-safe.
2014-09-05 18:59:21 +02:00
Marcos Henrich 1852905c44 Test that wrong ISO8601 dates throw FormatException. 2014-09-05 21:31:53 +08:00
Zoltan Varga 385f84f18c [aot] Emit aot logging information to a per-assembly file when using the AOT cache. Cache aot failures. 2014-09-04 23:31:50 -04:00
Zoltan Varga 4f916f178b [aot] Print error messages to the aot logfile as well, avoid exiting the process on failures. 2014-09-04 20:06:53 -04:00
Zoltan Varga 39c87f6f69 [aot] Allow the redirection of output messages from the AOT compiler to a logfile. 2014-09-04 19:11:30 -04:00
Zoltan Varga d84d1a94a0 Fix the build. 2014-09-04 17:38:16 -04:00
Zoltan Varga ad8236ebb8 [runtime] Get rid of the Makefile.am.in->Makefile.am change in metadata/, its not needed. 2014-09-04 17:34:36 -04: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
Marek Safar 2b88d02356 [mcs] recursive pattern with named arguments 2014-09-04 15:12:21 +02:00
Marek Safar 806b95d844 [mcs] recursive pattern matching 2014-09-04 10:37:50 +02:00
Marek Safar e83f4a2ab3 Merge pull request #1254 from vkargov/master
[corlib] Take daylight change info for the current year in TimeZoneTest.cs
2014-09-03 20:30:38 -09:00
Alexis Christoforides 5d80954463 Bump Mono version -> 3.10.1 2014-09-04 00:15:40 -04:00
Zoltan Varga c7b3d5c3ba Revert "[build] Include mono/utils into the extensions module."
This reverts commit b760456501.

Revert this as it is not needed.
2014-09-03 21:20:33 -04:00
Zoltan Varga f746fe8d1b Revert "[build] Deps tracking for mono/utils/Makefile.am when extension module is disabled."
This reverts commit a2e939a8a3.

Revert this as is not needed.
2014-09-03 21:20:11 -04:00
Zoltan Varga d2cee144fe [sgen] Use mono_thread_info_get_stack_bounds () on win32 as well, the stack bottom value returned by it is correct, only the stack top value is unusable, since windows dynamically extends the stack. 2014-09-03 18:15:15 -04:00
Rodrigo Kumpera 43177ef54b [utils] Add android extension point to threading. 2014-09-03 16:58:30 -04:00
Rodrigo Kumpera a2e939a8a3 [build] Deps tracking for mono/utils/Makefile.am when extension module is disabled. 2014-09-03 16:34:18 -04:00
Rodrigo Kumpera b760456501 [build] Include mono/utils into the extensions module. 2014-09-03 16:32:30 -04:00
Rodrigo Kumpera 748fefa1d7 [runtime] Cleanup the horrible ifdef hell that is the stack bounds discovery code.
This split a single chunk of intractable ifdef hell into a beautiful set of per-target
files.

This will allow us to actually figure out what's going on on each target.
2014-09-03 16:30:35 -04:00
Zoltan Varga 4c1155f40a Merge pull request #1252 from alesliehughes/master
Stop warning about winsock2.h being included before windows.h
2014-09-03 14:44:32 -04:00
Vladimir Kargov 59668db7f4 [corlib] In a TimeZone test, UtcOffset is taken for the current year, so take DaylightChanges for the current year as well. 2014-09-03 16:36:35 +04: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
Alistair Leslie-Hughes ec2b629fa9 Stop warning about winsock2.h being included before windows.h
This change is released under the MIT license.
2014-09-03 19:51:11 +10:00
Zoltan Varga f9b27e2e73 Fix a warning. 2014-09-02 21:10:11 -04:00
Zoltan Varga 541639c3bb [runtime] Load the runtime config file before initializing the runtime, so it can pick up the aot-cache configuration information. 2014-09-02 20:25:16 -04:00
Zoltan Varga 883f9399f4 [runtime] Add an 'app' attribute to the 'aotcache' config section to specify which apps should use the AOT cache. 2014-09-02 20:22:05 -04:00
Marek Safar b5fcd926f8 Merge pull request #1251 from esdrubal/utf8encoding
UTF8Encoding Fallback
2014-09-02 06:43:40 -09:00
Marcos Henrich f79c64942e Changed overlong byte to be processed again.
The byte is processed again because it can be the begin of a new multi-byte encoded character.
2014-09-02 23:14:09 +08:00
Marcos Henrich 91fa140dd0 Changed UTF8Encoding to call fallback with whole byte sequences.
Removed unnecessary parameters ref byte [] bufferArg.
This changes are required by UTF8EncodingTest.EncodingFallback that in some cases is expecting multibyte values..
2014-09-02 22:57:26 +08:00
Marcos Henrich 3d332ac26d Added UTF8EncodingTest.EncodingFallback.
EncodingFallback tests for multiple invalid inputs the unknownBytes that are given to the DecoderFallback.
2014-09-02 22:55:52 +08:00
Miguel de Icaza a7b779648b Bring fix for Cecil, includes fix for F#/Fody 2014-09-02 10:49:41 -04:00
Marcos Henrich 60aa49b35b Added class EncodingTester that can be used to test fallbacks.
EncodingTester is a testing helper class with a method TestDecoderFallback that makes DecoderFalback testing  easier.
2014-09-02 22:42:54 +08:00
Marek Habersack 10d4e76525 Do not specify key file when building for mobile, it should be passed on command line 2014-09-02 14:32:12 +02:00
Marcos Henrich 09bb2dc4bd Changed InternalGetCharCount to iterate the bytes as InternalGetChars. 2014-09-02 18:38:20 +08:00
Marek Safar fca9b48556 [mcs] more nonliteral constants pattern matching 2014-09-02 11:55:45 +02:00
Marek Habersack 38b25dc65a This method is internal in the mobile profile 2014-09-02 00:33:44 +02:00
Marek Habersack 14fba61b9d Added System.IO.InternalBufferOverflowException class to the mobile profile 2014-09-01 22:24:36 +02:00
Marek Habersack 58684cf2c4 Merge pull request #1249 from mattleibow/master
[system.data] DataRows with a NULL RowError incorrectly indicated HasError
2014-09-01 21:47:43 +02:00
Zoltan Varga eeb1227133 [runtime] Further reduce the usage of the loader lock in the metadata code by moving code out of locked regions and using the image lock instead. 2014-09-01 14:39:06 -04:00
Matthew Leibowitz a3c1bebc45 [system.data] DataRows with a NULL RowError incorrectly indicated HasError:
- MS.NET allows RowError to be set to NULL, but will convert it to string.Empty
2014-09-01 11:03:03 -07:00
Rodrigo Kumpera 6bee6a7b18 [runtime] Remove the interpreter. 2014-09-01 13:27:03 -04:00
Zoltan Varga bd8782b061 [runtime] Use a separate lock to protect global data structures in classes.c. 2014-09-01 13:05:25 -04:00
Zoltan Varga 03e4fe45d7 Disable a sys.data test which fails on wrench because of an old sqlite version. 2014-09-01 12:51:53 -04:00
Zoltan Varga f6ae9f133d Bump version to 3.10. 2014-09-01 11:47:11 -04:00
Zoltan Varga 00612b8049 [runtime] Factor out the nested types computation code from mono_class_get_nested_types () and reorganize it so most of the work is done outside the loader lock. 2014-09-01 11:40:56 -04:00
Zoltan Varga ea77a1201c [runtime] Use the image locks in many places instead of the loader lock. 2014-09-01 11:40:56 -04:00
Zoltan Varga 98ef62b1d1 [runtime] Remove a missed mono_loader_unlock () from mono_metadata_get_header (). 2014-09-01 11:40:55 -04:00
Zoltan Varga c73f87c669 [runtime] Reorganize mono_method_signature_checked () so most of the work is done outside the loader lock. 2014-09-01 11:40:55 -04:00
Zoltan Varga e043529add [runtime] Reorganize mono_method_get_header () so most of the work is done outside the loader lock. 2014-09-01 11:40:55 -04:00
Zoltan Varga 6730dfbf80 [runtime] Remove locking from the mono_get_method_constrained_... () functions, its not needed. 2014-09-01 11:40:55 -04:00
Zoltan Varga f5a0a351c2 [runtime] Reorganize mono_class_setup_interfaces () so most of the work is done outside the loader lock. 2014-09-01 11:40:54 -04:00
Zoltan Varga ff9b6836d2 [runtime] Move the initialization of class->has_finalize into mono_class_has_finalizer () in most cases. 2014-09-01 11:40:54 -04:00
Zoltan Varga e87e75fe3a [runtime] Reorganize mono_class_setup_methods () so most of the work is done outside the loader lock. 2014-09-01 11:40:54 -04:00
Zoltan Varga a3f28b43f7 [runtime] Reorganize mono_class_has_finalizer () so most of the work is done outside the loader lock. 2014-09-01 11:40:54 -04:00
Zoltan Varga 042114b194 [runtime] Reorganize mono_class_setup_events () so most of the work is done outside the loader lock. 2014-09-01 11:40:53 -04:00
Zoltan Varga 8dac2761fc [runtime] Reorganize mono_class_setup_properties () so most of the work is done outside the loader lock. 2014-09-01 11:40:53 -04:00
Zoltan Varga 7704a952f6 [runtime] Use the image lock in mono_type_from_typespec () instead of the loader lock. Also do most of the work outside the lock. 2014-09-01 11:40:53 -04:00
Rodrigo Kumpera 2c6b6ff553 Merge pull request #1246 from schani/feature-separate-pointer-queue
[sgen] Refactor pointer queue out of pinning code.
2014-09-01 10:13:41 -04:00
Marek Safar 79ea6ce4d0 Put back csharp project removed in 0450000dc4 2014-09-01 14:58:32 +02:00
Marek Safar 20c85188ab [mcs] Fix removing incomplete generic types from eval cache. Fixes #22393 2014-09-01 14:57:23 +02:00
Marek Safar 05feed5de7 [mcs] Parsing of ternary expressions whose then condition is a lambda. Fixes #22523 2014-09-01 13:26:48 +02:00
Marek Safar 11ac4dfb22 [mcs] Remove wrong test 2014-09-01 13:22:21 +02:00
Marek Safar 6e6ad378c0 Fixes c2ac44d3dd 2014-09-01 12:43:32 +02:00
Marek Safar c2ac44d3dd [system.data.linq] Delay reflection hit to actual execution point. Workarounds #22522 2014-09-01 11:22:57 +02:00
Marek Safar bcf33452dd [system.net.http] Update RequestMessage.RequestUri.AbsoluteUri after redirect. Fixes #22383 2014-09-01 10:10:30 +02:00
Zoltan Varga 5646004e39 [runtime] Fix the windows build. 2014-08-31 04:34:18 -04:00
Marek Safar 01bc7c1923 [mcs] Revert to broken native csc definite assignment for structs 2014-08-30 14:04:16 +02:00
Marek Safar c8b482d640 [mcs] nonliteral constants pattern matching 2014-08-30 14:04:16 +02:00
Marek Safar 723dc9ad6f [xbuild] Fix InstalledAssemblyTables signature 2014-08-30 14:04:15 +02:00
Marek Safar 8897b572c7 [mcs] simple constants pattern matching 2014-08-30 14:04:15 +02:00
Zoltan Varga 644ff6b019 [aot] Fix full-aot support when the AOT cache is enabled. 2014-08-29 23:47:33 -04:00
Zoltan Varga 567c08843d [jit] Avoid hardcoding tls offsets into the aot versions of the monitor enter/exit trampolines on amd64. 2014-08-29 23:47:01 -04:00
Zoltan Varga f8db51ecb4 [jit] Avoid uninitialized fields in the MonoDelegateTrampInfo structure. 2014-08-29 19:30:15 -04:00
Zoltan Varga 34df6ae34b [runtime] Fix reading past the end of a string when setting the native thread name. 2014-08-29 19:29:48 -04:00
Zoltan Varga 96b74d362a [runtime] Fix a problem introduced by 522663cdfa. 2014-08-29 17:42:37 -04:00
Zoltan Varga 522663cdfa [runtime] Add an adapter between the MonoPrintCallback and the eglib GPrintFunc types. 2014-08-29 17:03:23 -04:00
Mark Probst 2f126c13e8 [sgen] Refactor pointer queue out of pinning code. 2014-08-29 13:33:34 -07:00
Tom Hindle bb672ad95e Fix mono_marshal_free_ccw (). Fixes #22414. 2014-08-29 16:05:50 -04:00
Zoltan Varga bfc3336224 [bcl] Catch exceptions thrown by SerialPortStream.Dispose () when called from the finalizer. Fixes #15514. 2014-08-29 15:06:25 -04:00
Zoltan Varga abfd4b5732 [sdb] Fix the checking of the handshake message. 2014-08-29 15:04:40 -04:00
Zoltan Varga b8766a812d [runtime] Add functionality for AOTing assemblies on demand when they are first used. Configurable using a new "aotconfig" config element, i.e. <aotcache assemblies="mscorlib System"/>. 2014-08-29 15:02:52 -04:00
Zoltan Varga 8dea307fa4 [runtime] Add Steve Reid's public domain SHA1 code. 2014-08-29 15:01:26 -04:00
Rodrigo Kumpera 62b1e5a653 [eglib] Fix stderr output redirection. 2014-08-29 14:33:27 -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
Marek Safar 38c3874627 Merge pull request #1242 from esdrubal/xelement
Fixes XContainer attempt to create a XNode from a null value.
2014-08-29 01:16:24 -09:00
Marcos Henrich acb0cc0d7d Fixes XContainer attempt to create a XNode from a null value.
Fixes #20151.
2014-08-29 17:59:39 +08:00
Marcos Henrich 8308eb87e0 Test XElement constructed from array with null values as object.
Covers #20151.
2014-08-29 17:57:31 +08:00
Marek Safar b2d61a33a6 Merge pull request #1237 from esdrubal/xdocument
Changed XObject OnChanged and OnChanging to use Owner.
2014-08-28 21:05:14 -09:00
Marek Safar ba64d7a8eb Merge pull request #1241 from RyanMelenaNoesis/patch-1
Update X509CertificateValidationMode.cs
2014-08-28 21:03:44 -09:00
Ryan Melena 5b8dad3895 Update X509CertificateValidationMode.cs
Remove explicit enum values for sake of consistency with existing enum.
2014-08-28 20:26:08 -05:00
Alexis Christoforides c109e47433 Merge pull request #1240 from NoesisLabs/master
Correct duplicate X509CertificateValidationMode definition error
2014-08-28 20:21:58 -04:00
Ryan J. Melena b1446b1982 Correct duplicate X509CertificateValidationMode definition error caused by enum changing assemblies between .NET 4.0 and 4.5. 2014-08-28 19:01:48 -05:00
Zoltan Varga 03aee949f1 Merge pull request #1200 from akoeplinger/remove-jvm
[Cleanup] Remove TARGET_JVM
2014-08-28 19:17:43 -04:00
Rodrigo Kumpera 903c5e3aa6 Revert "Merge pull request #1219 from panzone/los_partial_marking"
This reverts commit 397176d701, reversing
changes made to 33c345a945.
2014-08-28 19:12:51 -04:00
Zoltan Varga 7ec9786a3f Merge pull request #1235 from directhex/master
Add g_Ctoc to list of acceptable g_* symbols in mono, for test-eglib-remap
2014-08-28 18:50:47 -04:00
Zoltan Varga fff41afa51 [runtime] Fix a crash in the logging profiler when enumerating elf images. 2014-08-28 16:44:55 -04:00
Rodrigo Kumpera dc75a4a86e Merge pull request #1238 from esdrubal/datetimeoffset
Fixed DateTime compiler errors.
2014-08-28 16:12:47 -04:00
Alexis Christoforides b27c2d690d Merge pull request #1236 from NoesisLabs/master
Support JWT functionality in System.IdentityModel.Tokens.Jwt
2014-08-28 16:08:46 -04:00
Marcos Henrich 4fa7c08306 Fixed DateTime compiler errors. 2014-08-29 03:58:03 +08:00
Marcos Henrich 8854761cc4 Changed XObject OnChanged and OnChanging to use Owner.
When XObject.Owner is not a XElement XObject.Parent returns null and the owner would not be notified of changing and changed events.
Fixes:#18772
2014-08-29 02:12:39 +08:00
Marcos Henrich 74afbbb110 Test XDocument.Changed event. Covers #18772. 2014-08-29 02:00:30 +08:00
Ryan J. Melena b7f40f6682 Add compiler pragmas for conditional .NET 4.5 compilation 2014-08-28 11:57:47 -05:00
Ryan J. Melena 7f0fc12f3a Add file comment headers. This change is released under the MIT license. 2014-08-28 11:57:46 -05:00
Ryan J. Melena ed1e4e2918 Fix VS changes to .csproj file. This change is released under the MIT license. 2014-08-28 11:57:45 -05:00
Ryan J. Melena 725b211d9f Minimal implementation of classes and methods necessary to support the JWT functionality in System.IdentityModel.Tokens.Jwt (https://github.com/MSOpenTech/azure-activedirectory-identitymodel-extensions-for-dotnet). This change is released under the MIT license. 2014-08-28 11:57:44 -05:00
Rodrigo Kumpera 397176d701 Merge pull request #1219 from panzone/los_partial_marking
[Sgen parallel collector] Los partial marking
2014-08-28 12:28:05 -04:00
Jo Shields 4b48ec236a Add g_Ctoc to list of acceptable g_* symbols in mono, for test-eglib-remap.
In theory, this test is used to verify that no unknown glib symbols exist
in eglib. However, it's tripping on g_Ctoc which is not a glib (or eglib)
symbol, instead it comes from the IO layer - and glib symbols never use
uppercase characters anyway
2014-08-28 17:26:31 +01:00
Marek Safar 33c345a945 Merge pull request #1234 from esdrubal/datetimeoffset
DateTime.CoreParseExact.
2014-08-28 07:06:30 -09:00
Marek Safar fee0db958c [xbuild] Allow metadata in skipped task output expressions 2014-08-28 17:44:42 +02:00
Marcos Henrich 5e86fba0b9 Removed unreachable code. 2014-08-28 23:43:10 +08:00
Marcos Henrich cb0d8221e0 Changed DateTimeOffset.ParseExact to use DateTime.CoreParseExact. 2014-08-28 23:39:03 +08:00
Marcos Henrich af977863fe Improved DateTime._DoParse offset logic. 2014-08-28 23:37:29 +08:00
Marcos Henrich 727b045f36 Removed line causing problems when 'K' was followed by something. 2014-08-28 23:35:48 +08:00
Marcos Henrich a95479875e Improved DateTime parsing of years.
Years with 5 or more digits and less than 1000 are now correctly parsed.
2014-08-28 23:31:19 +08:00
Marcos Henrich 8c9f47900c Created DateTime.CoreParseExact so to be used by DateTimeOffset. 2014-08-28 23:27:57 +08:00
Marek Safar 924d6216bf [mcs] Fixes failing error test 2014-08-28 16:35:59 +02:00
Marek Safar 121766abb9 [mcs] type pattern expression 2014-08-28 16:35:59 +02:00
Marcos Henrich 379be33c4e Changed DateTime._DoParser to support DateTimeOffset patterns. 2014-08-28 22:11:15 +08:00
Marek Safar 4b2ddc74cc Merge pull request #1233 from esdrubal/uriparserisbaseof
UriParser.IsBaseOf now explicitly throws ArgumentNullException.
2014-08-28 03:22:48 -09:00
Marcos Henrich 8c6e7faba3 UriParser.IsBaseOf now explicitly throws ArgumentNullException.
A change in Uri.Compare was making IsBaseOf to return false when arguments were null.
NullReferenceException is thrown by .NET, nonetheless the correct behavior is to throw a ArgumentNullException..
2014-08-28 19:46:35 +08:00
Marek Safar ed9291e086 Merge pull request #1232 from akoeplinger/fix-test
[MSBuild] Fixed a test that failed when the GAC wasn't available
2014-08-27 20:44:34 -09:00
Alexander Köplinger b45cd3f489 [MSBuild] Fixed a test that failed when the GAC wasn't available
PR #1229 added a test that relies on the GAC and fails when it isn't available, like when building on a clean machine with monolite.
Skip the test in that case.
2014-08-27 22:28:49 +02:00
Rodrigo Kumpera 88c3f0b7ec [runtime] Incorporate team feedback on the new logging APIs. 2014-08-27 15:47:43 -04:00
Alexander Köplinger 7152730bcd Fix badge URL in README.md, the previous one got cached by GitHub 2014-08-27 20:06:47 +02:00
Marek Safar 9330b9f221 [mcs] Add 6.0 to version error reporting 2014-08-27 17:56:17 +02:00
Marek Safar 5787f73a39 Merge pull request #1231 from esdrubal/gthreshold
Serializer were not generated if generationThreshold was changed.
2014-08-27 06:13:45 -09:00
Marcos Henrich baa495e78b Serializer were not generated if generationThreshold was changed. 2014-08-27 22:20:00 +08:00
Marek Safar 4866102820 Merge pull request #1230 from esdrubal/xslattribute
Process XslLiteralElements with only child attributes as empty ones.
2014-08-27 03:58:41 -09:00
Marcos Henrich af4dcd117d Process XslLiteralElements with only child attributes as empty ones.
Fixes #14751
2014-08-27 20:51:49 +08:00
Marcos Henrich d7f5c71baa Test xls transformation of single child node to an attribute. 2014-08-27 20:20:47 +08:00
Sebastien Pouliot 2332ba9a10 [eglib] Fix logging on iOS (asl_vlog != asl_log)
asl_vlog last parameter is a va_list and giving it a char* leads to crash
which calls our native unhandled exception handler, which also tries to
log what happens making the watchdog unhappy about the food quality

0x000000008badf00d
2014-08-26 21:54:30 -04:00
Alexis Christoforides 813d6610ec Resolve build issues on Windows. 2014-08-26 15:49:19 -04:00
Zoltan Varga 3ccd45f8f3 Fix the build. 2014-08-26 15:01:24 -04:00
Martin Baulig 37d2e36ca9 [WCF]: Fix #22179 - 'finally' protect ClientRuntimeChannel.Begin/EndProcess(). 2014-08-26 20:00:44 +02:00
Marek Safar 7f030179c4 Merge pull request #1229 from andreiagaita/master
[MSBuild] Make sure assembly references with extensions are located correctly
2014-08-26 08:07:09 -09:00
Marek Safar f0afe2f9c4 [mcs] Predefined attibutes can have unresolved parameter types. 2014-08-26 17:13:41 +02:00
Marek Safar c106cdc775 [mcs] Put back future lang version for easier migration path 2014-08-26 13:46:16 +02:00
Marek Safar a8994e23a7 [mcs] Don't report error when predefined InterlockedCompareExchange_T is not available. 2014-08-26 13:39:15 +02:00
Marek Safar f5b09d21a5 [mcs] Hide backing fields in default debugger display 2014-08-26 10:02:38 +02:00
Marek Safar e1d28db6fc [mcs] Replace future with experimental 2014-08-26 10:02:37 +02:00
Marek Safar d87c706981 [mcs] Better error message 2014-08-26 10:02:37 +02:00
Marek Safar 8c6593f8a8 [system] Add AcceptWebSocketAsync signatures 2014-08-26 10:02:37 +02:00
Zoltan Varga ef5549b572 Update the LLVM backend to work with llvm branch mono-2014-08-23-b401e6b9699423409a055dc873e4d3f361a908c0. 2014-08-26 00:33:05 -04:00
T.J. Purtell 5d07b77a67 [runtime] Don't call mono_arch_handle_exception() when chaining
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=18763#c12
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=18763#c14
Context: http://stackoverflow.com/a/1789879/83444

mono_set_crash_chaining() was added in 8ffc4070 in order to better
support Android crash logs.

Crash logging in Android is "weird" (something we didn't know at the
time of 8ffc4070); when a process crashes on Android, ideally:

 1. The Android signal handler is executed,
 2. Bionic will attempt to connect to /system/bin/debuggerd.
 3. debuggerd will try to connect to the crashing process, then
    retrieve "useful" information from the crashing process (stack
    trace, register values, etc.)

The problem with 8ffc4070 was that there is a "window" between steps
(1) and (3) during which the crashing process continues to execute but
debuggerd hasn't attached to the process. It is possible that the
crashing process can thus exit before debuggerd has had a chance to
attach, killing the purpose of the crash logs.

Case in point: consider mono_sigsegv_signal_handler(). In 8ffc4070,
if mono_do_crash_chaining is TRUE, then Mono will execute:

  mono_handle_native_sigsegv (SIGSEGV, ctx);
  mono_chain_signal (SIG_HANDLER_PARAMS);
  mono_arch_handle_exception (ctx, NULL);

Because mono_chain_signal() doesn't block, abort the process, or
otherwise do anything to prevent execution from continuing, execution
will hit mono_arch_handle_exception(), which will exit the process.
If you're unlucky, this will happen before debuggerd has had a chance
to attach to the process.

The obvious fix is to prevent mono_arch_handle_exception() from being
invoked. The question is, *how*? jonp suggested [0] that after
mono_chain_signal() returns then _exit(2) or a busy loop could be
invoked. Unfortunately, _exit(2) makes the process exit explicit, and
~reliably prevents debuggerd from doing anything.

A busy loop doesn't work because it just causes the process to hang
within signal handler context, and debuggerd is never able to log
anything about the crashed process.

It would seem that the signal handler itself must exit without causing
the process to exit so that debuggerd has a chance to do ANYTHING,
otherwise nothing will happen reliably.

Thanks to T.J. Purtell for investigating and providing the patch.

[0]: https://github.com/mono/mono/pull/1206#issuecomment-52357802

--- Original commit message [formatted] ---

re #18763: After the chained handler executes, it may return to allow
the crashed instruction to be restarted or it may have taken
corrective action so the instruction can be resumed successfully.

For example, bionic resets the signal handler for SIGSEGV to default
expecting that the kernel will restart the offending instruction and
cause the kernel to abort the process.  Don't do mono exception
handling after chaining to support these types of signal management.
2014-08-25 23:54:36 -04:00
Jonathan Pryor 9e7713121b [eglib] Fix compilation on PLATFORM_ANDROID.
Compilation of eglib/src/goutput.c was broken in commit 989165e1:

	mono/eglib/src/goutput.c: In function 'monoeg_log_default_handler':
	mono/eglib/src/goutput.c:159:75: error: 'args' undeclared (first use in this function)
	  __android_log_vprint (to_android_priority (log_level), log_domain, "%s", args);
	                                                                           ^
	mono/eglib/src/goutput.c:159:75: note: each undeclared identifier is reported only once for each function it appears in
	mono/eglib/src/goutput.c: In function 'default_stdout_handler':
	mono/eglib/src/goutput.c:168:2: error: incompatible type for argument 4 of '__android_log_vprint'
	  __android_log_vprint (ANDROID_LOG_ERROR, "mono", "%s", message);
	  ^
	mono/eglib/src/goutput.c:139:0:
	$ANDROID_NDK_PATH/platforms/android-4/arch-arm/usr/include/android/log.h:109:5: note: expected 'va_list' but argument is of type 'const gchar *'
	 int __android_log_vprint(int prio, const char *tag,
	     ^
	mono/eglib/src/goutput.c: In function 'default_stderr_handler':
	mono/eglib/src/goutput.c:175:2: error: incompatible type for argument 4 of '__android_log_vprint'
	  __android_log_vprint (ANDROID_LOG_ERROR, "mono", "%s", message);
	  ^

(The cause of the breakage is that __android_log_vprint() takes a
va_args parameter, which is no longer present in 989165e1.)

Use __android_log_write() instead of __android_log_vprint().

Note: __android_log_write() writes a "simple string" to `adb logcat`,
meaning there is no printf(3)-style formatting applied.
2014-08-25 22:58:30 -04:00
Sebastien Pouliot 28d400df31 [corlib] Update ClaimsPrincipalTest to avoid Is[Not]Empty as this is not part of NUnitLite 1.0 (and can't be run on XiOS) 2014-08-25 20:43:31 -04:00
Rodrigo Kumpera debdc1c127 [eglib] Restore previous defaults for some platforms. 2014-08-25 14:51:07 -04:00
Rodrigo Kumpera 97c8674bf4 [msvc] Fix release 64bits builds. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 1996d664b4 [jit] Ensure no threads are running when the JIT is asked to cleanup. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 8c36d76bd2 [utils] Add runtime API for output redirection, logging and aborting. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 0a08dede53 [eglib] g_assertion_message should not abort, g_logv will do it. 2014-08-25 14:42:22 -04:00
Rodrigo Kumpera 989165e12f [eglib] Add log/print redirection functions to eglib. 2014-08-25 14:42:22 -04:00
Martin Baulig 7d8798c15d [System]: WebClient.OpenWrite() must get the response on close; fixes #10163.
When the stream returned by WebClient.OpenWrite() / OpenWriteAsync() /
OpenWriteTaskAsync(), we need to call GetResponse() and read the full
response.

Unfortunately, there is no async API available for this, so this API should
not be used in async applications.
2014-08-25 18:15:49 +02:00
Martin Baulig d56c28373b [System]: Fix WebClient.UploadValuesTaskAsync(); bug #20359. 2014-08-25 18:15:48 +02:00
Marcos Henrich 5d2f303311 Test DateTimeOffest parsing of partial dates. 2014-08-25 23:51:37 +08:00
Marek Safar 60d9c66011 [msbuild] corcompare public API 2014-08-25 14:00:05 +02:00
Marek Safar 8c5488e79c [corlib] Fix ClaimsIdentity claim value comparison 2014-08-25 13:12:42 +02:00
Marek Safar 336382e2b1 [corlib] corcompare update 2014-08-25 13:12:42 +02:00
Marek Safar 4eb632730e Merge pull request #1224 from esdrubal/codecompiler
Changed mono_path profile replacement to be case insensitive.
2014-08-25 12:56:04 +02:00
Marek Safar 78b1cde8fc Merge pull request #1223 from esdrubal/xmlgenerator
Test SerializationCodeGenerator.
2014-08-25 12:55:33 +02:00
Marek Safar f2b5c86467 Merge pull request #1226 from mattleibow/TransactionScope-InvalidTimoutNotThrowingException
[system.transactions] Throw exception when an invalid TimeSpan is provided
2014-08-23 07:54:03 +02:00
Matthew Leibowitz 5b4172c8cc [system.transactions] Throw exception when an invalid TimeSpan is provided:
- MS.NET throws
 - prevent construction when an invalid (negative) timeout is provided
2014-08-23 00:38:15 +02:00
Alexis Christoforides 96b66b3867 Added mono_string_from_utf32() 2014-08-22 17:11:11 -04:00
Marek Safar 0661867309 [corlib] Improve System.Security.Claims. Fixes #22282 2014-08-22 22:09:11 +02:00
Marek Safar 289331a627 [mcs] Handle partial entry point method 2014-08-22 22:09:11 +02:00
Marek Safar 2712774292 Remove unused mdb icall 2014-08-22 22:09:10 +02:00
Zoltan Varga 0d839a1e09 [runtime] Add a mono_thread_detach_if_exiting () public api function which can be called by embedding code to detach the runtime if the code is running from a pthread dtor. Fixes part of #21164. 2014-08-22 11:37:14 -04:00
Marcos Henrich a6a4d75dda Changed mono_path profile replacement to be case insensitive. 2014-08-22 22:20:53 +08:00
Marcos Henrich 9d2ede6010 Fixed serialization of XmlNode field with attribute XmlAnyElement.
Fixes #3211.
2014-08-22 21:50:40 +08:00
Marcos Henrich 24bfa83876 Added missing XmlTypeMapping.IsAny logic.
This complements commit 05444c7c1c570db730f17b6d15dd66d3728b6.
2014-08-22 21:50:39 +08:00
Marcos Henrich 9f52a988cf Replaced incorrect bool.ToString() by GetLiteral(bool). 2014-08-22 21:50:39 +08:00
Marcos Henrich 1e5ce9cc4f Added GetTypeFullName, fixes wrong nullable valuetype names. 2014-08-22 21:50:38 +08:00
Marcos Henrich 526cbd5ced Changed UsageCount and generationThreshold to zero based. 2014-08-22 21:46:38 +08:00
Marek Safar 93e590439c [xbuild] Resolve output properties for skipped task to match task output when it's not skipped 2014-08-22 09:24:40 +02:00
Marcos Henrich 5df652e7d2 Test SerializationCodeGenerator.
XmlSerializerTests was mostly testing XmlSerializationReaderInterpreter and XmlSerializationWriterInterpreter.
XmlSerializerGeneratorTests forces the usage of SerializationCodeGenerator while running XmlSerializerTests.
2014-08-22 02:56:05 +08:00
Marcos Henrich dd6aca8621 Tests serialization of XmlNode field with attribute XmlAnyElement.
Covers #3211.
2014-08-22 02:42:19 +08:00
Andreia Gaita 5e8e4f3883 [MSBuild] Make sure assembly references with extensions are located correctly 2014-08-21 18:30:47 +01:00
Alex Rønne Petersen 8020aafc3b Update badge URL in README.md. 2014-08-21 18:30:17 +02:00
Alex Rønne Petersen 105c916504 Fix a warning in mono-conc-hashtable. 2014-08-21 18:23:06 +02:00
Alex Rønne Petersen 0d8ddc225a Remove unused/undefined function. 2014-08-21 18:23:06 +02:00
Marek Safar 8376abf928 Merge pull request #1221 from LogosBible/uri-compare
Fix NullReferenceException in Uri.Compare when only one of the Uris is null
2014-08-21 15:51:12 +02:00
Alex Rønne Petersen 0cdfb23e29 Merge pull request #1172 from roji/datarow_null
Fix DataRow error management
2014-08-21 14:59:28 +02:00
Martin Potter d990d904c4 Fix NullReferenceException in Uri.Compare when only one of the Uris is null 2014-08-21 05:52:38 -07:00
Marek Safar f070b646f6 [corlib] Handle String::Format with escaped closing }. Fixes #22114 2014-08-21 10:35:38 +02:00
Zoltan Varga bdeb6123fd [jit] Use mini_type_stack_size () instead of mono_type_size () in the stack slot allocation code, this aligns vtype size to a multiple of the pointer size, preventing problems when vtypes are returned in registers on some platforms like arm64. 2014-08-20 21:39:46 -04:00
Miguel de Icaza e9b93e2788 Merge pull request #1189 from joelmartinez/docs-64bit-squash
MDoc and monodoc.dll changes to support iOS 64Bit API
2014-08-20 16:56:57 -04:00
Zoltan Varga 776efa6920 [jit] Fix the switching of domains in native-to-managed wrappers, previously this only worked in some cases. 2014-08-20 13:55:28 -04:00
Marek Safar e57c1ed37d [mcs] Emit event fields even when compare-and-exchange is not available 2014-08-20 15:54:06 +02:00
Marek Safar 37e33ceb3e [mcs] Easy restrictions on enum base type epxression 2014-08-20 13:16:55 +02:00
Marek Safar ebcc2ee853 [corlib] Task never is CompletedSynchronously 2014-08-20 12:01:42 +02:00
Marek Safar 8aa250524c Fix wrong time test 2014-08-20 09:01:57 +02:00
Jo Shields 7178ce2c40 Switch to using jenkins.mono-project.com for DNS tests
This test requires a simple single mapping for Hostname<->IP with one IP and reverse DNS. Using EC2-hosted sites doesn't work as they don't have valid reverse DNS. Use the Jenkins subdomain, since that fits the criteria.
2014-08-20 07:20:41 +01:00
Marek Safar ca5e18f6a9 [mcs] Clean-up flow analysis for boolean expressions 2014-08-20 08:20:26 +02:00
Marek Safar 09f73f3070 [mcs] Null operator flow analysis 2014-08-20 08:20:26 +02:00
Mark Probst c69e743177 [sgen] Small simplification of sgen_pin_objects_in_section().
We only have one section, which is the nursery, so don't even pass it in.
Furthermore, it's only called locally, so make it static.
2014-08-19 12:17:50 -07:00
Mark Probst f35fa6adf5 [sgen] Simplify pin_objects_from_addresses() and fix potential performance issue.
In the case where more than one pointer pointed to the same empty region within
the nursery we would search through that empty region for each pointer instead of
just once.
2014-08-19 12:17:50 -07:00
Mark Probst 4564b54ded [sgen] Sanitize and fix pin_objects_from_addresses().
Assume we have an object at address 0x1000, with size 0xf0, then
a hole of size 0x10, and the next object starting at 0x1100, of
size 0x20.  In the pin queue we have the addresses 0x10f8 and
0x1100.

When we process the first pin queue entry, 0x10f8, we jump over
the object at 0x1000, to 0x10f0.  Then we skip the hole and end
up at 0x1100.  We set last_obj to that address.  Then we check
against the pin queue entry we're looking for and find that we've
overshot it, so we end our search and go to the next pin queue
entry, 0x1100.  There's an object at that address, but because of
this check we don't pin it:

	if (addr >= last_obj && (char*)addr < (char*)last_obj + last_obj_size) {

addr == 0x1100, last_obj == 0x1100, last_obj_size == 0x20
2014-08-19 12:17:50 -07:00
Mark Probst b4c9630073 [sgen] Make optimizations in new bridge turn-offable at compile-time.
This will help find bugs.
2014-08-19 12:09:34 -07:00
Mark Probst 8a56cba5b7 [sgen] Fix new bridge implementation. 2014-08-19 12:09:34 -07:00
Andrea Francesco Iuorio 24ef95ece8 [Sgen] Implement partial marking for big array of objects
This commit changed the gray stack to support work items. When a big
array of objects is marked, Sgen now create several work items. Every
work item rappresents a pieces of the array that must be scanned.
Since they are different pieces, the workers can now parallel scan
and mark the array, resulting in a better work distribution between
the workers.

I release this change under the MIT license.
2014-08-19 20:38:23 +02:00
Andrea Francesco Iuorio 30a627f9a8 [Sgen] Transport scan macros from sgen-descriptor.h to sgen-scan-object.h
This commit transport the scan macro from sgen-descritor.h to
sgen-scan-object.h. This is useful for modify at compile time
the scan macro according to the scan function.

I release this change under the MIT license.
2014-08-19 20:37:39 +02:00
Marek Safar 5c42807469 Merge pull request #1213 from fengari/system_timers_timer_opt
System.Timers.Timer optimization and small correction
2014-08-19 16:59:50 +02:00
Marek Safar 2c6797db48 [mcs] Add more error checks 2014-08-19 10:34:54 +02:00
fengari b3251b6248 Do not dispose the underlying Timer every time the Enabled is set to false, keep it around for as long as this Timer exists. Throw ObjectDisposedException on Enabled setter. ArgumentException throwing according to docs. Removed 'disposed' field. DueTime for underlying timer changes only if enabled (as per docs). Check for already disposed in Dispose(). Not firing Elapsed if disposed. Unit tests. 2014-08-19 11:21:52 +03:00
Marek Safar 74ad56cdfa [mcs] Complex binary logical expressions flowanalysis 2014-08-19 09:34:39 +02:00
Marek Safar a41a626dab [mcs] More warnings for lifted nullable operators working on value types 2014-08-19 09:26:25 +02:00
Marek Safar 9c46884097 Merge pull request #1216 from AndreyAkinshin/master
Removing excess line with debug Console.WriteLine
2014-08-19 09:00:58 +02:00
Andrey Akinshin 4be0d33040 Removing excess line with debug Console.WriteLine 2014-08-19 11:27:33 +07:00
Zoltan Varga 68e5cc395f [bcl] Add a missing check to TypeBuilder.CreateType (). Fixes #22059. 2014-08-18 21:38:50 -04:00
Zoltan Varga aa3e8cb211 Fix a warning. 2014-08-18 18:24:49 -04:00
Marek Safar 5809028135 Merge pull request #1214 from esdrubal/xmlbase
Xml Serialization of Base class w/o a parameterless constructor.
2014-08-18 16:57:43 +02:00
Marcos Henrich 8fa4a77948 Xml Serialization of Base class w/o a parameterless constructor.
Removed validation code that did not allowed serialization of base classes without a parameterless constructor.
Fixes #6913.
2014-08-18 15:27:53 +01:00
Rodrigo Kumpera b0a2135f5c [utils] Improve error message in case of thread suspend fails. 2014-08-18 09:18:37 -04:00
Marcos Henrich 2c5f30d7bd Added test BaseClassWithoutParameterlessConstructor.
Covers #6913
2014-08-18 14:08:02 +01:00
Marek Safar 24005444c7 Merge pull request #1212 from esdrubal/isany
Fixed XmlSerializer to handle attribute XmlSchemePrivider.IsAny.
2014-08-18 12:45:04 +02:00
Marcos Henrich 38d56909d9 Fixed XmlSerializer to handle attribute XmlSchemePrivider.IsAny.
XmlSerializer no longer outputs a root element with class name when the class has the attribute XmlSchemeProvider and IsAny is true.
Fixes #11916
2014-08-18 11:42:05 +01:00
Marcos Henrich 6c5ea03852 Test XmlSerialization of class with XmlSchemaProvider with IsAny.
Covers #11916.
2014-08-18 11:40:58 +01:00
Rodrigo Kumpera a8a518752e [runtime] Fix malloc backend for mempools. 2014-08-17 02:40:42 -04:00
Zoltan Varga 6986ed5c1c Merge pull request #1210 from Mailaender/mono-core-parallel-build
Fixed parallel build for MCS dir-check
2014-08-16 15:51:29 -04:00
Matthias Mailänder 7e267ff2fe fix parallel build 2014-08-16 16:48:01 +02:00
Zoltan Varga eaa343fcba Merge pull request #1208 from Mailaender/ppc-build-fixes
PowerPC Garbage Collector build fixes
2014-08-16 10:11:15 -04:00
Marek Safar 557ad88e3d [mcs] Extend missing type check to type lookups. Fixes #20933 2014-08-16 14:49:38 +02:00
Marek Safar 2c037b85c6 [mcs] Fix copy and paste error in constraints checker. Fixes #22131 2014-08-16 14:49:37 +02:00
Marek Safar 76efee0a49 Merge pull request #1207 from nlhepler/master
Fix buffer overflow for long paths in jay
2014-08-16 10:27:56 +02:00
Matthias Mailänder 58de3013d1 fix ppc build failures 2014-08-16 08:28:55 +02:00
Lance Hepler 015e847e11 Handle long paths in jay 2014-08-15 16:06:11 -07:00
Zoltan Varga 5ab34b2477 [jit] Fix yet another native types problem. Fixes #22053. 2014-08-15 15:32:00 -04:00
Marek Safar 230b3bfce4 [mcs] Add dictionary initializer 2014-08-15 20:51:18 +02:00
João Matos d34210d900 [System.IO.Compression] Fixed Zip support for empty directories. 2014-08-15 19:13:30 +01:00
Joel Martinez a8d74cc095 [mdoc] Changed 'old' and 'new' to 'classic' and 'unified' per feedback. 2014-08-15 11:19:48 -04:00
Zoltan Varga 31e92f2442 [runtime] Fix the leaking of mach ports introduced by 98bbf8512a. Fixes #22068. 2014-08-15 09:56:47 -04:00
Zoltan Varga 12e4b4fed4 [runtime] Make more wrappers use a WrapperInfo structure. 2014-08-14 22:06:15 -04:00
Zoltan Varga 844ad76318 [runtime] Integrate calls to mono_wrapper_info_set () into mono_mb_create_and_cache () to fix races when a wrapper is placed into a cache without its wrapper info set. 2014-08-14 21:45:31 -04:00
Zoltan Varga 407b8163c8 [jit] Add support for constrained calls with vtype return types in gsharedvt code. Fixes #22109. 2014-08-14 15:54:55 -04:00
Zoltan Varga 8e3b2fa421 [jit] Fix the stack alignment checking code in the x86 trampolines. 2014-08-14 15:54:55 -04:00
Marek Safar 33023bf7de [mcs] Improve commit 409024fcab 2014-08-14 21:01:28 +02:00
Joel Martinez 8b6a9693bd [mdoc] Style updates per pull request feedback 2014-08-14 14:16:29 -04:00
Marek Safar 5aeec74842 [mcs] null propagating operator on delegate invocation 2014-08-14 19:05:27 +02:00
Marek Safar acb5527b57 Warnings cleanup 2014-08-14 19:05:27 +02:00
Marek Safar 409024fcab [mcs] Speed up nullable tokenizer. Fixes #20195 2014-08-14 19:05:27 +02:00
Joel Martinez 1051734504 [mdoc] Moved enumeration back into deferred mode.
This resolved an issue with the ecmadoc importer that assumed execution would be deffered in order to keep reading from the XmlReader
2014-08-14 11:07:43 -04:00
Marek Safar 5f5bed4643 Merge pull request #1188 from arktronic/master
[TimeZoneInfo] Fix DST bug and implement To/FromSerializedString
2014-08-14 14:16:19 +02:00
Marek Safar 62a15c8e13 [mcs] coalescing operator if the lhs of a null is a integer type that is larger than the integer type on the rhs. Fixes #22054 2014-08-14 11:50:54 +02:00
Marek Safar 512c1407b3 Merge pull request #1205 from akoeplinger/fix-tests
[System] Use xamarin.com instead of mono-project.com for DNS tests
2014-08-14 08:54:24 +02:00
Alexander Köplinger a81feba777 [System] Use xamarin.com instead of mono-project.com for DNS tests
The latter is now hosted on a different IP behind a CDN and the IP may change depending on location.
Using xamarin.com instead fixes the tests for now.
2014-08-14 01:21:20 +02:00
Joel Martinez 867299720c [mdoc] Fixed issue with assembly versions being added incorrectly 2014-08-13 17:11:03 -04:00
Ludovic Henry d273a16452 [jit] Disable delegate virtual optimisation while we are fixing it 2014-08-13 16:34:30 -04:00
Mark Probst 37dcfd1819 [sgen] Use a power of two as the cement hash size.
Cementing, specifically the hashing, showed up when profiling GC heavy
code.  This reduces the footprint.
2014-08-13 13:00:05 -07:00
Mark Probst 60a6084e9b [sgen] In the GC pause visualizer histogram, label the axis. 2014-08-13 13:00:04 -07:00
Mark Probst 0e2322f9d8 [gc] Measure Boehm GC time correctly. 2014-08-13 13:00:04 -07:00
Zoltan Varga 2ceb43d380 [runtime] Fix the PLATFORM_GNU check so it works with gnueabi etc. as well. Fixes #21520. 2014-08-13 15:33:40 -04:00
Zoltan Varga e46452652f [runtime] Don't make runtime invoke signatures generic. Fixes #21973. 2014-08-13 15:17:40 -04:00
Marek Safar db3eb16307 Merge pull request #1204 from VQComms/claimsprincipaloverloads
Added HasClaim, FindFirst, FindAll into ClaimsPrincipal
2014-08-13 20:22:22 +02:00
Marek Safar 9c377582d1 [mcs] null operator on address locations 2014-08-13 20:21:10 +02:00
Marek Safar c8c631ae2b [mcs] Check for duplicate destructors. Fixes #21983 2014-08-13 20:21:10 +02:00
Zoltan Varga a4f96bc571 [aot] Fix a small memory leak. 2014-08-13 13:59:19 -04:00
Jonathan Channon db06435616 Added space before parenthesis according to Mono guidelines 2014-08-13 18:11:11 +01:00
Jonathan Channon 05bf78d278 added HasClaim, FindFirst, FindAll System.Security.Claims.ClaimsPrincipal method overloads - This change in released under the MIT license. 2014-08-13 17:57:55 +01:00
Atsushi Eno 0322d96b73 [MS.Build] when building MSBuild task, inherit properties.
This makes difference when the build has started from a solution especially
via command line with /p option. Those command-line-passed properties need
to be inherited to each project, but they weren't.
xbuild worked fine here.
2014-08-13 19:35:18 +09:00
Atsushi Eno 778c3b5a02 [MS.Build] add test regarding item condition and target-generated property. 2014-08-13 19:35:12 +09:00
Marek Safar b8d8f62956 [mcs] nameof operator with unbound type arguments 2014-08-13 07:05:10 +02:00
Zoltan Varga be86c5d406 [arm64] Allow v8..v15 in unwind info on arm64. Fixes part of #21615. 2014-08-12 19:52:47 -04:00
Joel Martinez 49699b8188 [mdoc] Fixed an issue with type-file path resolution.
In certain cases, such as stubbing out namespace-less classes it was failing to produce the right paths.
2014-08-12 17:45:54 -04:00
Joel Martinez 2cb5217d48 [mdoc] Added preserver.cs to build script so make compiles 2014-08-12 17:44:17 -04: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
Zoltan Varga abb5e6f7e1 Merge pull request #1161 from ludovic-henry/pr22-delegate-virtual-trampoline
[delegate virtual] Improve trampoline caching
2014-08-12 13:53:49 -04:00
Ludovic Henry 8022fec251 [delegate-virtual-trampoline] Add virtual functions delegate trampoline support
This optimization is activated in the ldvirtftn + delegate case, and is deactivated in the case where the architecture does not support it (mono_arch_get_delegate_virtual_invoke_impl return NULL)
2014-08-12 13:30:45 -04:00
Ludovic Henry 87b5b1c6ca [delegate-virtual-trampoline] Add virtual parameter to existing JIT time code path 2014-08-12 13:30:45 -04:00
João Matos 025877a34b [System] Restrict GZip/DeflateStream tests to .NET 4.5. 2014-08-12 17:36:26 +01:00
João Matos f39bebefea [System] Implemented .NET 4.5 overloads for GZipStream and DeflateStream.
Fixes xambug #21982.
2014-08-12 16:17:08 +01:00
Paolo Molaro 374b71131e [runtime] Fix logic when allocating code region if the first try at a fixed address fails. 2014-08-12 15:31:18 +02:00
Marek Safar e7dbeee80d Re-enable valid tests 2014-08-12 10:34:33 +02:00
Marek Safar 2f043e033d [System.Net.Http] Handle quoted filename value. Fixes #21960 2014-08-12 10:31:32 +02:00
Marek Safar b184bbea53 [corlib] Remove heavyweight EndsWith from 1bff9d890f 2014-08-12 08:49:29 +02:00
Marek Safar cd48aae3b8 [mcs] nameof operator 2014-08-12 08:16:21 +02:00
Marek Safar 147d410929 [mcs] Any type parameter is allowed for null propagating operator 2014-08-12 08:16:21 +02:00
Marek Safar 7bdcefb038 [mcs] auto-property initializer can be array initializer 2014-08-12 08:16:20 +02:00
Miguel de Icaza 7c9d050961 Merge pull request #1192 from LogosBible/regex-fixes-21803
Regex substring fix
2014-08-11 23:27:48 -04:00
Atsushi Eno 82f411d44a [ms.build] add some cyclic dependency related tests (some are not working). 2014-08-11 21:53:35 +09:00
Atsushi Eno 7ec59c3177 [ms.build] Fix bug #20961 - add KeepDuplicates etc. to 4.0 as internal.
Since NET_4_0 and NET_4_5 share the same ToolsVersion (4.0) there seems no
way to distinguish the appropriate framework .targets file, so I ended up
to add the missing members as internal for 4.0.
2014-08-11 21:53:34 +09:00
Atsushi Eno d09be4600c [ms.build] Do not try to release threads upon finalization. 2014-08-11 21:53:33 +09:00
Marek Safar 11a3daa71d Merge pull request #1190 from esdrubal/encoder-convert
System.Text.Encoder convert
2014-08-11 10:50:03 +02:00
Zoltan Varga 6f3ad3b7a2 Merge pull request #1201 from crisdut/fix-win-mono-dependencies
Adding the mutex header file dependency
2014-08-08 22:46:36 +02:00
João Matos 1bff9d890f Fixed Path.GetFullPath to work correctly when the current path is '/'.
Fixes xambug #833.
2014-08-08 19:03:39 +01:00
João Matos 90ccde72e5 Merge pull request #1196 from tritao/master
System.IO.Compression.FileSystem implementation
2014-08-08 18:42:29 +01:00
João Matos f17d714385 Implemented System.IO.Compression.FileSystem. 2014-08-08 18:40:01 +01:00
Armando C. Dutra 2549d18cb5 adding the mutex header file dependency 2014-08-08 04:29:40 -03:00
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Zoltan Varga 5c59fee91f [jit] Reorganize the locking in mono_jit_compile_method_inner, the domain lock already makes the code lookup+insert atomic, no need to do more work inside the jit code hash lock. Also lock jit_code_hash in mono_jit_free_method (). 2014-08-08 02:17:54 +02:00
Zoltan Varga 1e8a5b2809 [jit] Avoid taking the loader lock in mono_jit_compile_method_inner (), it shouldn't be needed any more. 2014-08-08 02:09:06 +02:00
Zoltan Varga 766e8c3504 [sdb] Avoid asserting when a cattr cannot be loaded. Fixes #21653. 2014-08-08 00:37:04 +02:00
Alexander Köplinger c685b21764 [Cleanup] Removed files that imported Java namespaces
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Alexander Köplinger 4165d879cd [Cleanup] Removed net_1_1_java from Makefiles
It was once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +02:00
Alexander Köplinger 31daf92e72 [Cleanup] Removed net_1_1_java*.sources files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:52 +02:00
Alexander Köplinger a8b2f07578 [Cleanup] Removed .jvm.cs files that are no longer used
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:51 +02:00
Marek Safar 76c34a1574 [System] Disable failing test 2014-08-07 20:01:46 +02:00
Marek Safar f5629c16e0 [mcs] null propagating operator and expressions which cannot be null 2014-08-07 16:54:57 +02:00
Zoltan Varga 98bbf8512a [runtime] Fix Process.PrivateMemorySize64 etc. on ios. Fixes #21882. 2014-08-07 14:56:51 +02:00
Marek Safar c6ae57fa19 [mcs] null propagating operator and extension methods 2014-08-07 14:25:07 +02:00
Zoltan Varga 0f1a427b67 [jit] Fix enum->int casts in gsharedvt code. Fixes #21893. 2014-08-07 13:56:56 +02:00
Marek Safar d3553fefdc [mcs] null propagating operator with nested receiver 2014-08-07 11:04:16 +02:00
Marcos Henrich 631f3685bb Added classes EncodingEncoder and EncodingDecoder.
EncodingEncoder and EncodingDecoder override Encoder.Convert.
The Convert overrides allow retrieval of chars/bytes buffers with the same size as .NET.
2014-08-07 09:28:44 +01:00
Marek Safar ed065cd04d Merge pull request #1199 from esdrubal/packurihelper
PackUriHelper
2014-08-07 10:25:47 +02:00
Marcos Henrich 9d781928b2 Added argument validations to ComparePackUri an ComparePartUri. 2014-08-07 09:10:53 +01:00
Marcos Henrich d3d078eb51 Changed Check.PartUriIsValid to throw ArgumentException. 2014-08-07 09:09:22 +01:00
Marcos Henrich 33f0c427f7 Removed [Category("NotWorking")] from PackUriHelperTests.
CompareInvalidTest is still not working because .NET PackUriHelper.ComparePackUri is doing something that uses Uri and throws an exception whereas Mono is not.
2014-08-07 09:02:49 +01:00
Marek Safar bdd8f8212f Merge pull request #1198 from chriswebb/master
Fixed issue where XmlReflectionImporter unable to handle XmlEnums with colons
2014-08-07 08:18:30 +02:00
Chris Webb 1a3ec8c3b3 Fixed issue related to fully qualified namespaces being used for XmlEnumAttribute values. 2014-08-07 06:15:55 +00:00
Marek Safar 5398bc14a4 Merge pull request #1197 from akoeplinger/remove-csproj
[Cleanup] Removed a bunch of superfluous .csproj and .sln files
2014-08-07 07:44:36 +02:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Shay Rojansky 416c5e9df4 Correct code review comments on test 2014-08-06 17:37:51 +03:00
Marek Safar e64af2edbf Merge pull request #1195 from akoeplinger/fix-uri-with-digits
[System] Fix parsing of URI schemes with digits
2014-08-06 15:11:53 +02:00
Alexander Köplinger 636d9c3186 [System] Fix parsing of URI schemes with digits
Initializing an Uri previously throwed an exception when the URI scheme contained a digit (e.g. net.p2p).
The loop was missing a digit check, similar to https://github.com/mono/mono/blob/1f1dc988ad7b165603a1175bf0a92156c4372c43/mcs/class/System/System/Uri.cs#L767
2014-08-06 14:53:01 +02:00
Marek Safar 1f1dc988ad Merge pull request #1168 from esdrubal/iriparsing
IriParsing
2014-08-06 12:47:14 +02:00
Marek Safar e003c4e8f9 Merge pull request #1193 from esdrubal/decimal-round
Decimal.Round trailing zeros
2014-08-06 12:41:39 +02:00
Marek Safar 6b32f6951a Merge pull request #1180 from akoeplinger/no-net40-in-make-check
Don't run net_4_0 tests during "make check"
2014-08-06 12:40:30 +02:00
Marek Safar ba1842208d [mcs] switch statement with constant block at first label. Fixes #21805 2014-08-06 09:52:48 +02:00
Alexis Christoforides adf5717203 Added MonoString<->UTF-32 conversion helper functions. 2014-08-05 19:58:51 -04:00
Zoltan Varga 571df7ac2b Fix the build. 2014-08-06 01:33:48 +02:00
Zoltan Varga abde1a90c6 [runtime] Remove unused critical-sections files. 2014-08-05 23:52:07 +02:00
Zoltan Varga ee230d0620 [runtime] Use the mono_mutex types/functions instead of CriticalSection's. 2014-08-05 23:36:06 +02:00
Zoltan Varga 8fe4231357 [jit] Use the mono_mutex types/functions of CriticalSection's. 2014-08-05 23:21:14 +02:00
Dave Dunkin cd364b4374 Add test for Regex RTL substring matching. 2014-08-05 08:51:38 -07:00
Marcos Henrich 60022096d1 Decimal.Round output no longer keeps trailing zeros. 2014-08-05 14:00:12 +01:00
Marcos Henrich 880f273f56 Test Decimal.ToString after rounding with trailing zeros. 2014-08-05 13:58:07 +01:00
Paolo Molaro ff983a6a9e [profiler] Increase the number of maximum and default frames in backtraces. 2014-08-05 13:15:17 +02:00
Zoltan Varga 2897dba601 [jit] Emit OP_FMOVE instead of OP_MOVE for r4 arguments in hard float mode on arm. 2014-08-05 13:02:58 +02:00
Paolo Molaro d5bce925f0 [runtime] Don't assert when loading a generic methodspec with 0 arity (xambug #19097). 2014-08-05 11:52:35 +02:00
Sasha Kotlyar 76a25717e7 Miscellaneous changes per review 2014-08-04 19:15:10 -04:00
Martin Potter 1af8016a5c Regex fixes for substring parsing. 2014-08-04 14:42:35 -07:00
Dave Dunkin 509863e570 Add test for Regex.Match with anchors on a substring. 2014-08-04 14:42:34 -07:00
Rodrigo Kumpera 8da27c63c3 Merge pull request #1066 from esdrubal/bug19313
Changed DeflateStream to stop reading base_stream sooner. Fixes #19313.
2014-08-04 12:29:43 -04:00
Rodrigo Kumpera 9e91c36e1c Merge pull request #1063 from esdrubal/bug18482
Resets all private key values on RSAManaged.ImportParameters. Fixes #18482.
2014-08-04 12:28:50 -04:00
Marek Safar 3bd87b33c5 [mcs] null propagating operator on index expressions 2014-08-04 17:33:43 +02:00
Zoltan Varga 04ae3b8a2e [runtime] Remove unneccesary locking from some metadata functions. 2014-08-04 17:29:04 +02:00
Marcos Henrich 97e5bfb498 Test Encoder.Convert and UTF8Encoder.Convert behaviors.
Added class ExposedEncoder to test the virtual method Encoder.Convert behavior.
Test UTF8Encoder.Convert override.
2014-08-04 15:26:53 +01:00
Zoltan Varga e98a83ec63 [runtime] Initialize klass->supertypes properly for dynamic classes. 2014-08-03 22:09:51 +02:00
Sasha Kotlyar a66732c039 [TimeZoneInfo] Fix issue with some floating DST transition times creating invalid DateTime values, and implement ToSerializedString and FromSerializedString.
This change is released under the MIT license.
2014-08-03 15:25:43 -04:00
Marek Safar cc90ac0be7 [system.xml] Dispose XmlReader using correct value. Fixes #21771 2014-08-03 19:10:45 +02:00
Marek Safar 76875075df [mcs] decimal constants modulo folding. Fixes #21743 2014-08-03 18:55:53 +02:00
Marek Safar c8796a126d [mcs] null propagating operator cannot work on pointer types 2014-08-03 18:55:53 +02:00
Joel Martinez da44df5a50 [mdoc] Changes to support new-style iOS API:
- the dropns flag now lets you define a namespace that is dropped in a new version of the assembly during update.
- the ntypes flag lets you tell the update command that certain methods are now using native types, and as such will attempt to match with old types in order to preserve documentation.
- the preserve flag will avoid removing members. This is to avoid dropping documentation for members that changed from one version of the framework to another new-style version (ie. iOS).
2014-08-02 19:48:11 -04:00
Joel Martinez be7502c908 [monodoc] Changes to support new-style iOS documentation:
- Fixed bug in creating CREF strings.
- Refactored XML file processing for customization during new style iOS assembly. This was done through the new file source interface, which lets you use dependency injection to customize the process.
- Added the ability to rewrite CREF references when assembling docs that use native types. Also, the ability to handle dropped namespaces.
2014-08-02 19:48:11 -04:00
Marek Habersack 59258ea3f0 Turns out some devices can have network interfaces without names.
If we encounter such a device we assign it an empty name followed by index number, so that we can
put any number of such devices in the dictionary and report them to the user.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=21741
2014-07-31 19:45:05 -04:00
Mark Probst 2169799f5a [sgen] File size limit for binary protocols.
We can now pass a file size limit to the `binary-protocol` option.  It will
create numbered binary protocol files, and only keep the last two around.
This is useful for cases where the only way to reproduce a bug is through
a long run that would otherwise create a protocol that's much too big.
2014-07-31 13:29:42 -07:00
Mark Probst da8f1879ad [sgen] Debug option for clear-at-tlab-creation nursery clear policy.
With the debug policy, we do clear at TLAB creation, but at GC time, whenever
we would clear with `clear-at-gc`, instead of not clearing, we fill with 0xff.
2014-07-31 13:29:36 -07:00
Zoltan Varga 597a3e8964 [jit] Avoid making generic calls from gsharedvt methods normally, go through the rgctx infrastructure instead. Fixes #21677. 2014-07-31 21:56:08 +02:00
Marek Safar c6685c1953 [mcs] Update codegen for boolean loads. Fixes #21685 2014-07-31 18:40:19 +02:00
Marek Safar ac9e90a89d [mcs] null coallescing operator can end up working on value types 2014-07-31 16:43:58 +02:00
Zoltan Varga c3a3132005 Merge pull request #1184 from directhex/kfreebsd
Support for GNU/kFreeBSD
2014-07-31 16:40:36 +02:00
Zoltan Varga 90c38a6b9e Merge pull request #1183 from directhex/xinerama
Don't do the soname checking dance for Xinerama.
2014-07-31 16:38:23 +02:00
Marek Safar 30407b77ce [xbuild] Fix handling of reference aliases 2014-07-31 15:21:46 +02:00
Jo Shields 056cc3be24 Define PLATFORM_GNU which covers any OS with GNU userland.
This define covers kFreeBSD, not just Linux. This is required because
the error which 120d194d10 works around is
a GNU problem, not a Linux problem, so causes FTBFS on kFreeBSD.
2014-07-31 12:04:59 +01:00
Jo Shields 0fe5be9fd8 Use host_win32 not platform_win32 in kfreebsd defines 2014-07-31 11:58:47 +01:00
Jo Shields edfbc1d848 Don't do the soname checking dance for Xinerama.
Xinerama has only ever had a soname of 1.

Checking for 1, 2, and 3 is just weird and pointless. And by not using a
default value, we duplicate the bug which add24aaa1 fixed.
2014-07-31 11:45:14 +01:00
Jo Shields 164ead5fb1 Fix warning message when libX11.so.* are not found.
We complain that we can't find "X development files", but the reverse
is true - if we had X development files, we'd find libX11.so (which
we aren't looking for). What we look for (and find) are the runtime files.
2014-07-31 11:45:13 +01:00
Jo Shields 1f513847b2 Support for GNU/kFreeBSD.
GNU/kFreeBSD is an experimental OS provided by the Debian project, consisting
of a FreeBSD kernel and GNU userland/libc. For a small number of cases, this
offers advantages over a more common GNU/Linux combination, such as fast
in-kernel support for ZFS storage.

This patch changes various ifdefs, either using __FreeBSD_kernel__ where a
trait from the kernel is what matters, or __GLIBC__ where a trait from the
C library matters.

This patch set has been carried downstream, in one form or another, since
1.2.3.1-1.

https://bugzilla.novell.com/show_bug.cgi?id=321634
2014-07-31 11:44:51 +01:00
Marek Safar 13f4ba52e0 [mcs] Fixes bootsrap with older mcs 2014-07-31 11:53:09 +02:00
Marek Safar e7bf6d81ea [mcs] Member access null propagating operator 2014-07-31 11:06:52 +02:00
Marek Safar 2915003696 [mcs] Finalizers cannot use expression_block syntax 2014-07-31 11:06:52 +02:00
Marek Habersack 303e42b130 Implement the Mono side of Android support for NetworkInterface.GetAllNetworkInterfaces ()
Added code to call Xamarin.Android internal implementation of getifaddrs/freeifaddrs to provide us
with the required information to fulfill the request.

Added a handful of Linux ARP hardware IDs which are considered to be tunnel devices and which may occur
on Android devices.

Part of fix for https://bugzilla.xamarin.com/show_bug.cgi?id=1969
2014-07-30 18:22:33 -04:00
Alexis Christoforides cd59827c22 Bump Mono version -> 3.8.1 2014-07-30 14:52:33 -04:00
Alexander Köplinger d16413148e Don't run net_4_0 tests during "make check"
As @marek-safar noted in mono@cf4f10e#commitcomment-7128403, the IL code for the 4.0 profile is never used
for running (the assemblies are just built for having metadata), so it makes no sense to execute 4.0 tests during "make check"
2014-07-30 18:58:08 +02:00
Zoltan Varga 81867287f8 [xbuild] Disable some tests which fail on wrench. 2014-07-30 17:41:51 +02:00
Ludovic Henry 44214ee4de [PLinq] Avoid cache thrashing of locals array when looping over enumerator 2014-07-30 11:40:30 -04:00
Zoltan Varga 21112244e0 [jit] Fix another native-types problem. Hopefully fixes #21670 and #21636. 2014-07-29 23:59:58 +02:00
Zoltan Varga af066033c6 Merge pull request #1181 from directhex/master
Delete assemblies from external/ when building "make dist" tarballs
2014-07-29 23:42:33 +02:00
Marek Habersack 81c30e4e24 Do not assume the GetCurrentTimeZone method exists in Mono.Android
Not checking whether the method exists caused a null reference exception in CreateDelegate.

Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=21603
2014-07-29 15:30:46 -04:00
Jo Shields debb0c7af2 Delete assemblies from external/ when building "make dist" tarballs 2014-07-29 12:01:58 -04:00
Marek Safar cb34d86717 Merge pull request #1178 from dougrathbone/master
Bug fix caused by Dispose failing because 'Initialize' method throws exception
2014-07-29 13:44:46 +02:00
Zoltan Varga 768bd9bb2c Fix 91b224d004. 2014-07-29 11:56:27 +02:00
Zoltan Varga 91b224d004 [bcl] Disable some tests which are expected to fail in mt. 2014-07-29 11:48:02 +02:00
Marcos Henrich 1c815b18aa Uri.ToString now returns registered parser components when possible. 2014-07-29 07:46:56 +01:00
Marcos Henrich 6d7be6df27 ParseNoExceptions is now using registered parsers when possible. 2014-07-29 07:22:43 +01:00
Marcos Henrich 9f34f2d7f0 TryParseComponent returns when the scheme has a registered parser. 2014-07-29 07:17:21 +01:00
Marcos Henrich 17aeeb761f Removed parameter parser from UriParseComponents.ParseComponents. 2014-07-29 07:14:55 +01:00
Rodrigo Kumpera e8a721a2ff [jit] Use alias information to eliminate explicit null checks. Fixes #21645. 2014-07-29 01:31:10 -03:00
Rodrigo Kumpera b6f9dff71c [jit] Handle second order aliases. Based on patch by Vlad Brezae.
In some cases, usually when dealing with IntPtr <> void* conversions, 2nd order aliases arises.

To handle them, first we consider the lowered load/stores for alias information, second
we iterate over handle globals/dce while aliases can still be eliminated.
2014-07-29 01:17:37 -03:00
Zoltan Varga d0d9b5706b [runtime] Initialize fields in MonoField:GetFieldOffset () if needed. Fixes part of #21604. 2014-07-29 02:47:26 +02:00
Marcos Henrich 095c0f8513 Changed some IriParsing behaviors to be platform behaviors. 2014-07-28 12:37:58 +01:00
Marcos Henrich e7604d6268 Added UriTestAux that tests non default IriParsing. Fixed Tests. 2014-07-28 12:36:28 +01:00
Rodrigo Kumpera 9d8be3d40c [runtime] Properly handle rethrow outside of catch blocks. Fixes #20412
Fix the verifier to fail a rethrow in a filter block.
Change the JIT to emit an exception instead of asserting.
2014-07-27 18:58:11 -03:00
Doug Rathbone bade84a5fc Fixing bug caused by Dispose failing because the Initialize method threw a CryptographicException before the private variables m_p, m_G, m_X could be set. 2014-07-27 12:21:37 -07:00
Marek Safar 91c346a3f6 Merge pull request #1176 from RyanMelenaNoesis/patch-1
Implement missing constructor
2014-07-25 23:27:07 +02:00
RyanMelenaNoesis dbe8dbd370 Implement missing constructor
http://msdn.microsoft.com/en-us/library/hh194482(v=vs.110).aspx
2014-07-25 16:07:55 -05:00
Marcos Henrich efdbd10e61 Refactored ifs into switches. 2014-07-25 14:47:54 +01:00
Marcos Henrich d2ac7759d8 Removed unnecessary parameter modifier ref.
No need of modifier ref because ParserState is not a value type.
2014-07-25 14:05:23 +01:00
Marcos Henrich 6b4da3d6c4 Added missing spaces. 2014-07-25 13:57:09 +01:00
Marcos Henrich 0ad1394bcb Call more appropriate string.TrimStart overload. 2014-07-25 13:54:29 +01:00
Marcos Henrich d9936a0c15 Parse methods are now chained in conjunction. 2014-07-25 13:52:47 +01:00
Marcos Henrich c89e7905c7 Refactored UriHelper.Reduce to use string.Split. 2014-07-25 13:31:57 +01:00
Marcos Henrich 507d10aaa1 Removed redundant code. 2014-07-25 13:29:39 +01:00
Marcos Henrich ab60fa30d3 Splited if to test % first. 2014-07-25 13:28:29 +01:00
Marcos Henrich aa71718828 UriHelper.HexEscapeMultiByte is now using StringBuilder. 2014-07-25 13:20:38 +01:00
Marcos Henrich 9d7d96f594 Class UriHelper is now static. 2014-07-25 13:17:51 +01:00
Marcos Henrich a710d0b8ec Changed string operations to use StringComparison.Ordinal. 2014-07-25 13:14:16 +01:00
Marcos Henrich 351a689463 Removed redundant IriParsing init and changed if to else if. 2014-07-25 11:57:07 +01:00
Marcos Henrich d9ad2fd413 Removed redundant initializations. 2014-07-25 09:41:19 +01:00
Marcos Henrich d7d72f9a81 Control chars with invalid escape are no longer unescaped in 2.0. 2014-07-25 09:08:07 +01:00
Marcos Henrich dd88b4cc18 Results location is now set from defines NET_X_X. 2014-07-25 08:42:47 +01:00
Martin Baulig 288489d637 [http]: Correctly handle partial chunk sizes; fixes #20583. 2014-07-25 00:37:16 +02:00
Marcos Henrich 565432ae1f Removed bad LocalPath testing. 2014-07-24 18:21:51 +01:00
Marcos Henrich fc847d6e69 Test invalid utf8 encodings. 2014-07-24 18:12:09 +01:00
Marcos Henrich 9092b7f27f Added UriPermutationsTest.PercentageEncoding_AbsolutePath. 2014-07-24 18:04:40 +01:00
Marcos Henrich 695fb400b3 Added UriPermutationsTest.PercentageEncoding_Unescape. 2014-07-24 18:02:48 +01:00
Marcos Henrich 3b75fd9dea Updated UriBuilderTest.IPv6_Host with IriParsing behavior. 2014-07-24 17:30:14 +01:00
Marcos Henrich e95021f029 Custom schemes '\' are now replaced with '/' on windows paths. 2014-07-24 17:23:05 +01:00
Marek Habersack 6034d4ad85 Use Android-specific code to get the current system time zone 2014-07-24 18:06:14 +02:00
Marek Safar 056a487386 [System.ComponentModel.Composition] Remove ReadOnlyDictionary. It's not used in 4.5 profile (it implements different interfaces compare to public ReadOnlyDictionary anyway) 2014-07-24 13:51:35 +02:00
Marcos Henrich 1aa8771d3f Changed Uri.Unescape to use UriHelper.FormatAbsolute. 2014-07-24 12:41:06 +01:00
Marcos Henrich d6b7409e73 Invalid escapes are left untouched on .NET 4.0 and higher. 2014-07-24 12:34:11 +01:00
Marcos Henrich de7e103073 Added HexUnescapeMultiByte overload with invalidEscape out param.
Invalid escapes are left untouched on .NET 4.0 and higher.
2014-07-24 12:31:53 +01:00
Marcos Henrich 21e2b4db20 Added missing FormatFlag.NoSlashReplace condition. 2014-07-24 12:27:47 +01:00
Marcos Henrich 4c5add3387 Added FormatFlag.NoReduce. 2014-07-24 12:26:46 +01:00
Marek Safar 9a53dd4e91 [mcs] Implements expression bodied members 2014-07-24 13:08:37 +02:00
Zoltan Varga 120d194d10 [runtime] Disable runtime unit tests on linux, because it cannot be linked due to circular dependencies between libraries. Fixes #21520. 2014-07-23 13:00:36 -04:00
Marek Safar c52d085ef4 [mcs] Better betterness for ambiguous lambda expressions 2014-07-23 15:48:44 +02:00
Zoltan Varga a69cc775ea Merge pull request #1174 from rhapsodyn/patch-1
fix a typo in comment
2014-07-23 12:58:17 +02:00
Marcos Henrich 59ca31f5d2 Uri.Merge ignores on 2.0 base filename when relative has a query. 2014-07-23 11:46:51 +01:00
Marcos Henrich de0ac0589a On .NET 4.0 and higher avoid unescaping of user escaped Uri. 2014-07-23 10:53:23 +01:00
Marcos Henrich 1ae9ae3b08 Format is now setting FormatFlags.HasUriCharactersToNormalize. 2014-07-23 10:48:30 +01:00
Marcos Henrich ff8156b040 Fixed UriHelper.Format to unescape surrogate char only when needed. 2014-07-23 10:40:07 +01:00
Marcos Henrich fffa1dadfa Added FormatFlag.UserEscaped to Uri.LocalPath. 2014-07-23 10:30:16 +01:00
rhapsodyn 8af2417115 fix a typo in comment 2014-07-23 16:17:36 +08:00
Marek Safar 408e394426 [corlib] Allow reading serialized delegate format from pre 2.0 era 2014-07-23 10:15:53 +02:00
Marek Safar cf4f10ef51 Update test binary data 2014-07-23 10:15:16 +02:00
Marek Safar b0246f004f Add extra test for 027ff81512 2014-07-23 09:20:34 +02:00
Marek Safar 027ff81512 [corlib] Fix multicast delegates serialization to handle curried delegates and more than 1 subscriber 2014-07-22 20:33:11 +02:00
Marek Safar 1d6529de70 [mcs] Pickup params modifier from base member for overload verification as well 2014-07-22 18:52:23 +02:00
Marcos Henrich 9bcae25144 Improved Uri.Merge.
Merge is now using UriParseComponents and UriHelper.Reduce.
2014-07-22 16:13:53 +01:00
Marcos Henrich 33f653951c UriHelper.Reduce visibility is now internal. 2014-07-22 16:05:54 +01:00
Marcos Henrich 4e925a2809 Fixed missing "/" after reduce of paths ending with "/..". 2014-07-22 16:01:13 +01:00
Marek Safar 7edcd42a15 [mcs] Use closed delegate over static generated methods from anonymous methods 2014-07-22 14:18:48 +02:00
Marek Safar 6e150f6bf3 [mcs] Effective base class can include inherited types. Fixes #21390 2014-07-22 14:13:15 +02:00
Marek Safar 71bd92e047 [mcs] Handle duplicate resume point registration. Fixes #21387 2014-07-22 13:41:10 +02:00
Marcos Henrich 16db13ed87 Refactored Uri.ParseNoExceptions to use UriParseComponents. 2014-07-22 10:58:30 +01:00
Rolf Bjarne Kvinge 2afbbedd63 Disable a few tests that don't compile without SRE. 2014-07-22 11:54:11 +02:00
Marcos Henrich a4dc63385d Set isUnc to true for file scheme on windows. 2014-07-22 10:36:47 +01:00
Marek Safar 30913d31b0 Fixes broken test 2014-07-22 10:28:38 +02:00
Shay Rojansky 566646719f Test uses SQLite in-memory DB for test
Also spaces to tabs
2014-07-22 05:56:33 +00:00
Marcos Henrich 16cd5535c9 Improved UriParseComponents.
Added Uri.ParseNoException error cases.
Changed to behave as Uri.ParseNoException.
2014-07-21 23:22:01 +01:00
Marcos Henrich e87c78c022 Setting UriElements.isAbsoluteUri, isUnc, isUnixFilePath, scopeId. 2014-07-21 23:16:47 +01:00
Marcos Henrich 4d610d50db Added UriElements.isAbsoluteUri, isUnixFilePath, isUnc, scopeId. 2014-07-21 23:07:19 +01:00
Marcos Henrich e07d36786b Added parameter UriParser to UriParseComponent. 2014-07-21 23:05:15 +01:00
Rodrigo Kumpera 04c3d5dff4 [corlib] Add regression test for #21388. 2014-07-21 18:55:43 -03:00
Rodrigo Kumpera 1994095049 [runtime] When parsing a method header, ensure we pass any available generic context. Fixes #21388.
We need to pass the right generic context to the method parsing so local variables with
generic argument types get the owner properly set.

In addition to that, harden the icall in case the owner is not set.
2014-07-21 18:55:43 -03:00
Rodrigo Kumpera 9b4293c035 [corlib] Fix regression in Delegate::Equal found by gtest-etree-01. 2014-07-21 18:55:42 -03:00
Marcos Henrich 02d383f202 Improved IPv6 parsing.
Parsing was failing when a port was specified after IPv6 address. ie: "http://[::1]:8080"
2014-07-21 21:57:51 +01:00
Zoltan Varga 2d3d1787a3 [jit] Fix the DISABLE_JIT build. 2014-07-21 22:32:17 +02:00
Marcos Henrich beca8d580c UriParseComponents is now parsing Uri port as an int. 2014-07-21 20:32:23 +01:00
Marek Safar fa19bfd400 [corlib] Tweak Dictionary initial capacity to be more conservative. Fixes #21375 2014-07-21 20:35:14 +02:00
Marek Safar 3dfffa82d9 Merge pull request #1173 from Serguzest/upstream
wrong behaviour in ClaimsIdentity's constructor
2014-07-21 20:22:43 +02:00
Serguzest 62569f1a1c wrong behaviour in ClaimsIdentity's constructor
claims must be added regardless of identity parameter
Since constructors are chained in that class,  this wrong behaviour causes chained trouble of claims to be never added
2014-07-21 17:36:43 +00:00
Zoltan Varga fd12271ce3 [arm] Fix native types support in the dyn call code on arm. 2014-07-21 19:14:33 +02:00
Alexis Christoforides d1a36ddbd9 [appdomain] Allocate core AppDomain objects with mono_object_new_pinned().
The objects end up being pinned anyway, but in SGen's case they are placed in the nursery, creating permanent fragmentation.
2014-07-21 11:36:03 -04:00
Marek Safar 2907aa0417 [mcs] Initializers with parameters scope and primary constructors 2014-07-21 17:12:10 +02:00
Marek Safar 735f225345 [bcl] Remove old projects 2014-07-21 14:14:12 +02:00
Jeffrey Stedfast 8297563629 [System.Web] Oops, there really is a .moov file extension 2014-07-21 06:21:50 -04:00
Shay Rojansky c0d6c47c6b Added test for DataRow error 2014-07-21 09:10:08 +00:00
Rodrigo Kumpera 60c498279e [corlib] Add regression test for #21196. 2014-07-20 22:57:56 -03:00
Rodrigo Kumpera 56fb85195f [corlib] Handle closed-over-null delegates created with IL when using InvokeDynamic. Fixes #21196.
The previous fix to handle curried delegates with DynamicInvoke did not correctly handle
those create with IL (in contrast to Delegate.CreateDelegate), as they don't hit any managed code.

The solution is to always require DelegateData to be filled for InvokeDynamic, if not, lazily
calculate it.
2014-07-20 22:57:56 -03:00
Jeffrey Stedfast 0237ddc8e0 [System.Web] Fixed some mime types 2014-07-20 20:54:16 -04:00
Zoltan Varga eb566d04da [runtime] Avoid loading marshal info for types without field marshallers when calling FieldInfo:get_marshal_info (). 2014-07-21 01:27:27 +02:00
Shay Rojansky 4c31accaca Fix DataRow error management
DataRow's RowError is supposed to be String.Empty to indicate
no errors, but is sometimes wrongly set to null, falsely indicating
errors. Fixed to be String.Empty.
2014-07-20 15:48:21 +03:00
Zoltan Varga effa4c07ba [runtime] Add method_is_dynamic () inline function to allow code to be optimized away when DISABLE_REFLECTION_EMIT is defined. 2014-07-19 23:42:23 +02:00
Zoltan Varga 3a786664d7 [runtime] Add image_is_dynamic ()/assembly_is_dynamic () inline functions to allow code to be optimized away when DISABLE_REFLECTION_EMIT is defined. 2014-07-19 22:28:22 +02:00
Marek Safar 6136fa0f0a Revert "[mcs] Initializers with parameters scope and primary constructors"
This reverts commit 221b9c920d.
2014-07-19 22:02:15 +02:00
Marek Safar 221b9c920d [mcs] Initializers with parameters scope and primary constructors 2014-07-19 17:16:13 +02:00
Marek Safar 16a37dba07 [mcs] Less cascading errors 2014-07-19 17:16:12 +02:00
Zoltan Varga f49ca11375 Revert "[runtime] Force inlining of membar functions."
This reverts commit 4935a15fc6.

Revert this as it is causing a huge amount of warnings.
2014-07-19 16:32:14 +02:00
Zoltan Varga 262ef7eb34 [bcl] Increase a timeout to fix a corlib+llvm test failure. 2014-07-17 23:15:49 +02:00
Zoltan Varga 472240a3a2 [runtime] Add a mono_reflection_assembly_get_assembly () public api function to get a MonoAssembly* from a System.Reflection.Assembly object. 2014-07-17 22:27:59 +02:00
Marcos Henrich 37dbbb2172 UriParser now appends '/' to Uri path when delimiter is '://'. 2014-07-17 18:57:33 +01:00
Marcos Henrich add9f6a2d7 Changed property IriParsing visibility to internal. 2014-07-17 18:43:25 +01:00
Joao Matos 896ceb1d9a Fixed MSVC build by explicitly providing "ssize_t". 2014-07-17 18:22:58 +01:00
Marcos Henrich adee464395 Replaced ToLower usage with ToLowerInvariant. 2014-07-17 18:15:30 +01:00
Marcos Henrich 88af5f54e7 Changed character comparison to a disjunction of equalities. 2014-07-17 18:11:56 +01:00
Zoltan Varga dd397d562e Bump required windows version to xp sp2. 2014-07-17 18:38:08 +02:00
Zoltan Varga 58afe69070 Fix the windows build. 2014-07-17 18:37:09 +02:00
Zoltan Varga f4175ebd98 Fix the windows build. 2014-07-17 18:11:32 +02:00
Zoltan Varga f0c469f167 [jit] Fix some build problems when cross compiling. 2014-07-17 17:51:52 +02:00
Marcos Henrich b8e2fad391 Moved s_IriParsing initialization and removed volatile modifier. 2014-07-17 16:17:16 +01:00
Rodrigo Kumpera a06fd81271 [jit] Move runtime_invoke_hash to use the concurrent hashtable. Big wins on TP workloads. 2014-07-17 11:01:48 -04:00
Rodrigo Kumpera 77cc06ffb3 [runtime] Move field_cache to use the concurrent hashtable as it was showing up on profiling. 2014-07-17 11:01:06 -04:00
Rodrigo Kumpera 9eeb7f1de0 [runtime] Add tests for concurrent hashtable. 2014-07-17 11:00:19 -04:00
Rodrigo Kumpera 4157b0d81c [runtime] Add a lock-free read hashtable. 2014-07-17 10:52:36 -04:00
Rodrigo Kumpera 4935a15fc6 [runtime] Force inlining of membar functions. 2014-07-17 10:50:51 -04:00
Marcos Henrich 1664692ddd Added TryParseComponent to UriParseComponent. 2014-07-17 09:21:11 +01:00
Alexis Christoforides d959941265 Revert "Reimplemented much of the kqueue-based file watcher so that watching subdirectories works."
This reverts commit fa9bbe1487.
2014-07-16 17:40:22 -04:00
Alexis Christoforides d0d774479b Revert "Revert some whitespace changes."
This reverts commit dd19aacb90.
2014-07-16 17:40:19 -04:00
Alexis Christoforides a386b772f7 Revert "Add a test for Creation event on FileSystemWatcher."
This reverts commit 66416d2655.
2014-07-16 17:40:11 -04:00
Stephen McConnel f5f2eb11b8 Fix error in tooltip display for ListView.ShowGroups
This fixes Xamarin bug 21346 " SWF.ListView does not handle item
tooltips when Groups are used".
2014-07-16 17:27:21 -04:00
Cody Russell 66416d2655 Add a test for Creation event on FileSystemWatcher. 2014-07-16 17:27:21 -04:00
Cody Russell dd19aacb90 Revert some whitespace changes. 2014-07-16 17:27:21 -04:00
Cody Russell fa9bbe1487 Reimplemented much of the kqueue-based file watcher so that watching subdirectories works.
https://bugzilla.xamarin.com/show_bug.cgi?id=16259
2014-07-16 17:27:20 -04:00
Marcos Henrich 156c7ce52a ParseQuery is now skipped if scheme does not support query. 2014-07-16 14:40:33 +01:00
Marcos Henrich 3e9e2c5fd3 Improved ParseHost of files and IpV6. 2014-07-16 14:32:39 +01:00
Marcos Henrich 6b8a3ac105 Moved scheme delimiter parsing into own method. 2014-07-16 14:12:14 +01:00
Marcos Henrich eb60e33d00 Added Unix and Windows file paths parsing. 2014-07-16 13:53:22 +01:00
Marcos Henrich 42482d540f Added UriKind and String error to UriParseComponent.ParserState.
UriKind was added so Relative Uri can be parsed by UriParseComponent.ParseComponents.
String error was added so a error can be returned when an invalid Uri is provided.
2014-07-16 13:45:04 +01:00
Zoltan Varga d1818f6e35 Merge pull request #1164 from nlhepler/patch-1
Guess base for mono-sgen and -boehm equivalently
2014-07-16 12:48:12 +02:00
Marek Safar f20d61de40 [mcs] Make primary constructor body parsing more error resilient 2014-07-16 10:28:01 +02:00
Marek Safar e56375a2a2 [mcs] Remove backing field from primary constructors 2014-07-16 09:57:18 +02:00
Lance Hepler fe315d71a4 mint and monodiet are no longer built 2014-07-15 20:00:47 -07:00
Lance Hepler 7626a539b1 Guess base for mono-sgen and -boehm equivalently 2014-07-15 18:35:51 -07:00
Zoltan Varga 66ca91f10b [jit] Clean up the libgc configuration code in configure.ac. 2014-07-15 23:15:10 +02:00
Marcos Henrich e9ccb6d1b4 Replaced Uri.LocalPath Unescape uses by UriHelper.FormatAbsolute. 2014-07-15 19:30:00 +01:00
Marcos Henrich f9ab3ac8de Added FormatFlag.NoSlashReplace. 2014-07-15 19:24:48 +01:00
Marcos Henrich d29b9c93f5 Host unicode characters are no longer escaped. 2014-07-15 19:20:39 +01:00
Marcos Henrich 2aac5c54aa IpV6 Host characters are no escaped or unescaped. 2014-07-15 19:08:06 +01:00
Marcos Henrich a0304b0ab9 Scope id is now removed from IpV6 Host. 2014-07-15 18:41:52 +01:00
Marcos Henrich a4089ba0ef Uri.Host is now escaped with UriHelper.FormatAbsolute. 2014-07-15 18:39:06 +01:00
Zoltan Varga 511a8367ad Merge pull request #1162 from DavidKarlas/endInvokeWithResult
[Mono.Debugger.Soft] Added methods EndInvokeMethodWithResult to all mirrors
2014-07-15 15:41:10 +02:00
Marek Safar 6374d49610 [mcs] More work on primary constructors 2014-07-15 10:59:52 +02:00
David Karlaš 10f73cb8b4 [Mono.Debugger.Soft] Added methods EndInvokeMethodWithResult to all mirrors
StructMirror also set overrides fields of structure in case InvokeMethod was called with InvokeOptions.ReturnOutThis option set
2014-07-15 09:42:29 +02:00
Zoltan Varga d795d17c3d Enable sgen on mingw64. 2014-07-15 00:46:24 +02:00
Zoltan Varga 853e9a1ba0 Revert "Enable sgen on mingw64."
This reverts commit 3cd09d1d84.

Revert this as it reverts unrelated changes.
2014-07-15 00:43:20 +02:00
Zoltan Varga d852e58bdc [jit] Remove some unneccesary ifdefs from the amd64 backend. 2014-07-14 22:53:11 +02:00
Zoltan Varga 80e6cdc3ca [jit] Remove more dead code. 2014-07-14 22:53:11 +02:00
Aaron Bockover b62eebc2eb [mcs] eval.cs: remove CWL that snuck in with my last commit 2014-07-14 16:41:16 -04:00
Zoltan Varga 55a8a2c3a9 [jit] Remove some dead code. 2014-07-14 22:31:33 +02:00
Aaron Bockover 61ef51978b [mcs] eval.cs: add ValueModificationHandler delegate to be more clear 2014-07-14 16:25:02 -04:00
Zoltan Varga 49d68ea47c [jit] Fix support for tls entries with offset >= 64 on winx64. 2014-07-14 21:31:26 +02:00
Zoltan Varga 9b5b116083 Fix the build. 2014-07-14 20:43:27 +02:00
Rodrigo Kumpera 9503cfad87 Merge pull request #1150 from ludovic-henry/pr17c-delegate-trampoline
[delegate] Improve trampoline caching
2014-07-14 14:40:38 -04:00
Zoltan Varga 8dfabbb582 [jit] Fix the objdump cmd line used on winx64. 2014-07-14 20:05:32 +02:00
Zoltan Varga 3cd09d1d84 Enable sgen on mingw64. 2014-07-14 20:03:53 +02:00
Zoltan Varga 16a3fcc3cc Fix the mingw64 build. 2014-07-14 20:03:36 +02:00
Zoltan Varga 1a604e7342 [jit] Use the generic lmf push/pop code on winx64. 2014-07-14 20:02:36 +02:00
Zoltan Varga d995399b40 [runtime] Avoid building libgc if its disabled. 2014-07-14 18:29:40 +02:00
Alexis Christoforides cdd3d2b7c7 Merge pull request #1064 from ranma42/fix-config-paths
Improve handling of lib paths for libMonoPosixHelper and libgdiplus. Fixes #18555.
2014-07-14 12:14:40 -04:00
Rodrigo Kumpera 6607fdf579 Merge pull request #1122 from PoppermostProductions/master
Added new mono_domain_set_config function; used to fix ConfigurationErro...
2014-07-14 10:54:50 -04:00
Marek Safar b8ac40d824 [mcs] Handling CreateStandardLiftedOperatorsTable for corlib without nullable type 2014-07-14 14:45:13 +02:00
Marek Safar e78be50cda [mcs] Arguments can be empty when reporting missing params argument. Fixes #21215 2014-07-14 11:22:27 +02:00
Marek Safar 276e8eb4f8 [mcs] Wrap exceptions in async state machine with no resume points 2014-07-14 11:22:27 +02:00
Marcos Henrich 65f103458b Fixed EscapeDataString and EscapeUriString behavior.
The methods have now the same behavior as .NET 4.5, 4.0 and 2.0.
2014-07-14 10:07:50 +01:00
Marcos Henrich 2f1b0a3494 Missing line from previous commit cc4fae8. 2014-07-14 09:32:57 +01:00
Zoltan Varga 85378c45be Revert "[runtime] Fix a win32 build failure, more remains."
This reverts commit 5c90d7cdba.

Revert this as it breaks the build.
2014-07-14 01:33:27 +02:00
Zoltan Varga 216f1b6c71 [jit] Remove an unneccesary line from the win32 tls_get implementation, it was setting SetLastError (). 2014-07-14 00:45:34 +02:00
Zoltan Varga c5ac00e6b7 [bcl] Fix build dependencies for the corlib vts tests. 2014-07-14 00:39:58 +02:00
Zoltan Varga ccb6f5b4de [runtime] Fix the --disable-boehm build on windows. 2014-07-13 22:51:40 +02:00
Zoltan Varga 673700f506 [jit] Enable support for tls offsets >= 64 on win32. 2014-07-13 22:46:21 +02:00
Zoltan Varga c10329d0aa [jit] Disable MONO_ARCH_ENABLE_MONO_LMF_VAR on win32, emit_push_lmf () uses a different method. 2014-07-13 22:44:25 +02:00
Zoltan Varga 1289b87cf8 [jit] Implement support for tls offsets >= 64 on win32. 2014-07-13 22:33:22 +02:00
Zoltan Varga b6994c101f [runtime] Fix some win32 warnings. 2014-07-13 22:31:54 +02:00
Zoltan Varga 80cca0a423 [runtime] Use pthread tls on mingw32, recent versions support __thread, but its emulated. 2014-07-13 22:30:40 +02:00
Zoltan Varga 5c90d7cdba [runtime] Fix a win32 build failure, more remains. 2014-07-13 20:53:53 +02:00
Zoltan Varga b9207a3dae [jit] Avoid conditional members in the MonoJitInfo structure. 2014-07-13 20:51:43 +02:00
Zoltan Varga aa39a2d113 [runtime] Avoid using tls in the monitor wrappers if its not available. 2014-07-13 19:07:25 +02:00
Zoltan Varga 6206280a84 [runtime] Avoid initializing static variables to NULL, its not needed. 2014-07-13 18:18:32 +02:00
Filip Lundgren ab5b39f991 Fixed libmono MSVC compilation 2014-07-13 17:49:33 +02:00
i59 c1a611494a Corrected mono_domain_set_config description. 2014-07-13 17:49:32 +02:00
i59 57f5187ad2 Added new mono_domain_set_config function; used to fix ConfigurationErrorsException in #10468.
This change is released under the MIT license.

https://bugzilla.xamarin.com/show_bug.cgi?id=10468
2014-07-13 17:49:31 +02:00
Zoltan Varga b6a8a10e6e [jit] Move the registration of jit icalls into a separate function. 2014-07-13 17:49:08 +02:00
Zoltan Varga ece3b55369 Fix the build. 2014-07-13 17:40:03 +02:00
Zoltan Varga d07d02078c [runtime] Remove unused g_thread () functions. 2014-07-13 17:35:35 +02:00
Zoltan Varga 281904708f [jit] Remove MONO_ARCH_HAVE_IMT define, all platforms support imt now. 2014-07-13 17:31:36 +02:00
Zoltan Varga b921dc0cef [jit] Use the win32 check for all tls keys in mini_get_tls_offset (). 2014-07-13 17:00:31 +02:00
Jonathan Pryor 70e0756a41 Merge pull request #1153 from akoeplinger/fix-doc-message
[monodoc] Clarified message when a backing file isn't found
2014-07-13 09:49:14 -04:00
Jeffrey Stedfast d3f190cf87 [corlib] minor code cleanup 2014-07-13 08:29:09 -04:00
Zoltan Varga e1b5523c94 [runtime] Handle generic methods in interfaces in imt thunks correctly. Fixes crashes in the System.ServiceModel tests. 2014-07-12 20:05:39 +02:00
Zoltan Varga d0be44220b Revert a change added by cd35ca1 by mistake 2014-07-12 14:20:44 +02:00
Marcos Henrich 856306e21a With IriParsing some escaped chars are changed to upper case. 2014-07-12 09:48:59 +01:00
Marcos Henrich 00b7582bb2 Changed UriHelper.Format to case of percentage encoded characters. 2014-07-12 09:03:00 +01:00
Zoltan Varga cd35ca1fe9 [bcl] Fix a race in a Task test. Fixes #20921. 2014-07-12 00:31:47 +02:00
Zoltan Varga 2103f2394e [jit] Fix system aot on amd64. 2014-07-11 21:21:34 +02:00
Zoltan Varga f9016dc075 Fix a warning. 2014-07-11 21:21:33 +02:00
Marcos Henrich 9ac47f6347 Tests lower case percentage encoding. 2014-07-11 14:58:35 +01:00
Marcos Henrich 3fe13e0b3c UriParser.GetComponentsHelper now sets flag UserEscaped. 2014-07-11 14:38:15 +01:00
Marcos Henrich c0c240bc65 Added uuid to Uri.schemes so its delimiter can be obtained. 2014-07-11 14:34:43 +01:00
Marcos Henrich 34005846d3 Replaced Escape and Reduce usage by FormatAbsolute.
Also removed userEscaped logic because it is verified by FormatAbsolute.
2014-07-11 14:22:19 +01:00
Marcos Henrich e25be38aea Added FormatFlag.UserEscaped. 2014-07-11 12:30:53 +01:00
Alex Rønne Petersen 7008bb6867 Merge pull request #1154 from Zoltu/patch-1
Makes AppendTextUnquoted public.
2014-07-11 05:26:49 +02:00
Zoltan Varga 7892d21b5b [runtime] Only apply the maverick stack size hack added by d6673ca8ec to the main thread since some system threads might really have a small stack size, causing us to overestimate their stack size. This can cause us to mprotect () random memory in mono_setup_altstack (), cause random crashes. Hopefully fixes #10096. 2014-07-10 23:57:32 +02:00
Micah Zoltu 2987746589 Backwards accuracy.
The method is only public in .NET 4+, previously it was protected.  Wrapping the access modifier in a #if NET_4_0 ensures that when building .NET 2, it is protected but when building 4+ it is public.
2014-07-10 11:01:35 -07:00
Marek Safar fab66aa272 [mcs] auto-implemented property initializer 2014-07-10 18:58:08 +02:00
Alexander Köplinger a3d7cfdb20 [monodoc] Clarified message when a backing file isn't found
If the backing file doesn't exist, it will be ignored.
The previous message made it sound like this is a serious problem, which confused people as it is the last message that is
printed when building Mono (because of a reference to 'DoesNotExist' in docs/toc.xml) while in reality everything is fine.
2014-07-10 17:32:10 +02:00
Zoltan Varga 9192bdf57c [sdb] Add a new 'socket-fd' transport, this is the same as the 'dt_socket' transport, but the address is the number of an an already connected socket fd. 2014-07-10 17:21:45 +02:00
Marcos Henrich cc4fae8c12 Fixed tests to pass in .NET 4.5, 4.0 and 2.0. 2014-07-10 15:38:14 +01:00
Marcos Henrich dfe46039b1 Changed cr lf end of lines to lf. 2014-07-10 12:44:06 +01:00
Marcos Henrich b13b5a366e Removed ToString call on OriginalString when source is null.
Uri.Merge is no longer leaving source with a null value.
2014-07-10 09:38:01 +01:00
Marcos Henrich 175a461d55 UriParser is now able to print empty user info. 2014-07-10 09:18:28 +01:00
Marcos Henrich 9d83e94b4d UriHelper.GetScheme is now case insensitive. 2014-07-10 09:09:18 +01:00
Marcos Henrich 27c58c5d70 Changed '#' in a fragment to be escaped in a special case.
When a fragment contains a unescaped or escaped '%', characters '#' are escaped in some cases.
2014-07-10 09:06:44 +01:00
Marcos Henrich bad111fc45 Test special case of '#' escaping in fragment.
When a fragment contains a unescaped or escaped '%' characters '#' are escaped in some cases.
2014-07-10 09:00:01 +01:00
Micah Zoltu 1e655137d3 Makes AppendTextUnquoted public.
The Microsoft version is public, so should this be.
NuGet.MSBuild.Tools.CommandLineBuilderExtensions:AppendTextUnquotedIfNotNullOrEmpty attempts to call this method in NuGet for MSBuild NuGet package.
2014-07-09 21:44:44 -07:00
Zoltan Varga 1693feb77c Fix a warning. 2014-07-09 22:35:52 +02:00
Zoltan Varga 49c6b57089 [jit] Rewrite the generic trampoline code on x86 to avoid pushes. 2014-07-09 22:19:03 +02:00
Miguel de Icaza 9763da775f Fix fallout from WebSocketMessageType change.
The WebSocketMessageType values were being used to send data over the
wire.  This is likely the reason why WebSocketMessageType had values
that were not compatible with .NET.
2014-07-09 15:05:34 -04:00
Ludovic Henry abe94a1faa [delegate-trampoline] Update invoke_impl and method_ptr cache value
With this patch, we see a 3x execution speed improvement in the following micro-benchmark :

using System;

class Foo {
	public int Test () { return 10; }
}

class Program {
	public static int Main (String[] args) {
		long n = 50000000;
		if (args.Length > 0)
			n = Math.Max (n, Int64.Parse (args [0]));

		var a = new Foo ();

		for (long i = 0; i < n; i++) {
			var f = new Func<int> (a.Test);
			if (f () != 10)
				return 1;
		}
		return 0;
	}
}
2014-07-09 14:56:02 -04:00
Ludovic Henry 9e38a4075c [delegate-trampoline] Share DelegateTrampInfo with method-to-ir.c 2014-07-09 14:46:34 -04:00
Zoltan Varga 62ed7761fd [runtime] Enable system aot when using --enable-loadedllvm, hopefully it works now. 2014-07-09 18:55:49 +02:00
Marek Safar 770c223893 [mcs] Extend intermediate value modification checks on generic value types 2014-07-09 18:32:55 +02:00
Marek Safar 5721da66f2 [corlib] Fix incorrect assert 2014-07-09 17:37:28 +02:00
Marek Safar 60def70139 [corlib] Make CompletionOnDifferentCustomSynchronizationContext test more reliable 2014-07-09 17:07:29 +02:00
Zoltan Varga 757ae5f2a9 [bcl] Fix retaining objects in one of the ConditionalWeakTable tests. 2014-07-09 16:26:26 +02:00
Daniel Reiter Horn ceb092eae7 Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/6 by formatting core.xml date according to W3CDTF
This change in released under the MIT license.
2014-07-09 09:24:36 -04:00
Miguel de Icaza 905d434b4e Merge pull request #1132 from mattleibow/bugfix-20925
[system.data] BUGFIX: fixes issue with expression columns and IsNull:
2014-07-09 09:23:45 -04:00
Miguel de Icaza 630116d1b6 Merge pull request #1142 from edbprx/master
ConnectCallback needs to call EndConnect
2014-07-09 09:21:37 -04:00
Miguel de Icaza 3aca7c1500 Merge pull request #1148 from steffen-kiess/json
Fix several issues in System.Json
2014-07-09 09:19:10 -04:00
Miguel de Icaza 430d570aff Merge pull request #1152 from danielrh/hyperlink_package_parse
Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allow absolute urls in relationships
2014-07-09 09:15:00 -04:00
Miguel de Icaza 1796d0df61 Fix enumeration values 2014-07-09 09:12:34 -04:00
Marek Safar 682f82ba3d [mcs] Disable dedb33eade due to runtime bug 2014-07-09 15:10:28 +02:00
Marek Safar 2b45d2ec56 [corlib] Fix test to not rely on compiler generated method 2014-07-09 15:01:17 +02:00
Marek Safar 74263907dc [mcs] Undo project changes from dedb33eade due to XS stupidity 2014-07-09 11:59:27 +02:00
Marek Safar dedb33eade [mcs] Use closed delegate over static generated methods from anonymous methods 2014-07-09 11:44:41 +02:00
Daniel Reiter Horn 722e83c7a1 Fixes https://github.com/OfficeDev/Open-XML-SDK/issues/7 by allowing both relative and absolute urls
This change in released under the MIT license.
2014-07-09 00:15:05 -07:00
Rodrigo Kumpera aa217360ce [System.Numerics] Contract the values array when decoding an array with a negative number and a trailer that evals to zero. Fixes #20456. 2014-07-08 20:02:19 -04:00
Rodrigo Kumpera 2fa4d25053 Don't hardcode the temp dir to /tmp, use g_get_tmp_dir instead. Fixes #20894.
Hardcoding a temporary dir doesn't work on sandboxed apps.
2014-07-08 18:27:36 -04:00
Zoltan Varga c21c377162 [sdb] Fix handling of out ref parameters. 2014-07-08 18:55:18 +02:00
Marek Safar b8fe4a7941 [Facades] Add more comtypes to System.Runtime.InteropServices 2014-07-08 14:57:02 +02:00
Marek Safar cd95b8238f [mcs] C# static using 2014-07-08 14:57:02 +02:00
Zoltan Varga fd0aaf0c59 [runtime] Remove another duplicate switch case from configure. 2014-07-08 14:35:11 +02:00
Zoltan Varga 29dd3d4c02 [runtime] Remove a duplicate switch case from configure. 2014-07-08 14:34:45 +02:00
Marcos Henrich be150ba5ea LocalPath expected values are now generated for UNIX and MS-DOS.
Depending on the OS the directory separator may be different.
2014-07-08 13:26:12 +01:00
Marcos Henrich 9cbe36c6d8 Fragment_Escape '#' escaping with and without IriParsing.
With IriParsing '#' in a fragment is not escaped in Uri.Fragment while without IriParsing it is.
2014-07-08 13:19:10 +01:00
Marcos Henrich 8de4ca3e16 QueryEscape '%2f' unescaping with and without IriParsing.
With IriParsing '%2f' in a query is not unescaped by ToString while without IriParsing it is.
2014-07-08 13:15:00 +01:00
Marcos Henrich ca9c20afaa Changed reduce to keep consecutive slashes. 2014-07-08 10:24:31 +01:00
Marcos Henrich 0851d2b3ca Added "" to reduceElements to test consecutive slashes.
Changed some paths to avoid id conflicts.
2014-07-08 10:20:25 +01:00
Marcos Henrich 4c737936bc Updated IPv6 test to use the correct form.
With IriParsing the IPv6 is on the mixed form n:n:n:n:n:n:d.d.d.d
Without IriParsing the address is on the hexa-decimal form n:n:n:n:n:n:n:n
2014-07-08 07:52:51 +01:00
Marek Safar 015419959d Merge pull request #1149 from akoeplinger/fix-httpwebreq-test
[System] Fixed HttpWebRequest test that sometimes failed
2014-07-08 08:39:05 +02:00
Zoltan Varga f8ee303ea9 [runtime] Lock the root domain in mono_jit_info_add_aot_module () to simplify locking. 2014-07-08 01:08:16 +02:00
Rodrigo Kumpera afa4cebee3 [runtime] Explicit thread GC data around instead of relying on TLS storage. Fixes #20360.
Some systems do locking in their TLS implementation (yeah, super smart, I know).

Due to how we implement stop-the-world this can lead to deadlocks.
2014-07-07 18:55:26 -04:00
Zoltan Varga dd2b784606 [bcl] Increase some test timeouts to avoid failures when running with llvm. 2014-07-08 00:46:31 +02:00
Alexander Köplinger 2bacb92d36 [System] Fixed HttpWebRequest test that sometimes failed
The TestTimeoutPropertyWithServerThatDoesntExist test sometimes failed with a 'ConnectFailure' instead of a 'Timeout'.
As per the discussion in PR #1145, the test should actually check that a ConnectFailure is thrown before the timeout is reached.
This proved unreliable with the 10.128.200.100 IP address, as it was up to the networking stack to decide whether the endpoint can be reached,
which can take quite a long time (sometimes >100secs).

Instead, we now use the loopback address with a port where no service listens, which should be equivalent.

Additionally, the assert which checks for the correct exception switched the 'expected' and 'actual' parameter, which resulted in the wrong output, this is fixed as well.
2014-07-07 23:53:50 +02:00
Ludovic Henry ccc677e3d6 [delegate-trampoline] Fallback to slow path in case of failure to create fast path 2014-07-07 17:43:05 -04:00
Rodrigo Kumpera 66cbeeb35a Move amd64 to use object offsets. 2014-07-07 16:47:32 -04:00
Ed Boren 0c55c45450 ConnectCallback needs to call EndConnect
Socket.ConnectAsync uses BeginConnect, and ends here in
ConnectCallback. It needs to call EndConnect so any error can be
propagated up.

See Xamarin bug: https://bugzilla.xamarin.com/show_bug.cgi?id=21017
2014-07-07 13:25:51 -04:00
Steffen Kieß b005523cb1 Fix several issues in System.Json
- Fix detection of extra characters in JSON input
- Fix detection of invalid negative numeric literals
- Disallow leading zeros
- Use "round-trip" format for floating point numbers
- Serialize NaN and Infinity as strings
- Use NumberFormatInfo.InvariantInfo for Convert.To*()
- Use standard number parsing methods in ReadNumericLiteral()
- Add test cases
2014-07-07 19:22:29 +02:00
Marcos Henrich 449040617c ParseHost is now retrieving IPv6 addresses with the correct form.
With IriParsing the IPv6 is on the mixed form n:n:n:n:n:n:d.d.d.d
Without IriParsing the address is on the hexa-decimal form n:n:n:n:n:n:n:n
2014-07-07 18:09:13 +01:00
Marcos Henrich cf21937a2e ParseScheme now retrieves a lower case scheme. 2014-07-07 18:00:29 +01:00
Alex Rønne Petersen 66b9914768 Poking Jenkins again... 2014-07-07 18:02:58 +02:00
Alex Rønne Petersen e616159577 Merge pull request #1147 from akoeplinger/misc-test-cleanup
Cleanup untracked test files
2014-07-07 14:27:03 +02:00
Alexander Köplinger 9739c4d1a2 [mdoc] Ignore generated test files 2014-07-07 14:24:56 +02:00
Alexander Köplinger 9c73576f10 [System.Drawing] Delete test files after test 2014-07-07 14:24:55 +02:00
Alexander Köplinger af75afdcda [System.IO.Compression] Delete test file after test 2014-07-07 14:24:54 +02:00
Alexander Köplinger 2670fd3a1c [MWF] Get rid of unused resx.resx file
The other tests already use GetResXFileWithNode () to create this file, make this consistent and get rid of the checked-in file
2014-07-07 14:24:54 +02:00
Alexander Köplinger 45b783a172 [System.Web] Remove superfluous write to file in test
The written file is never used, all the Asserts happen in RenderPostBackEvent_OnSaveStateComplete ().
2014-07-07 14:24:53 +02:00
Alex Rønne Petersen 9fa6327978 Merge pull request #1124 from UCIS/patch-5
Fixed NullReferenceExcepton in Socket.Connect for non-IP endpoints
2014-07-07 14:18:49 +02:00
Alex Rønne Petersen 701da9c664 Add a build status badge to README.md. 2014-07-07 14:16:37 +02:00
Marek Safar 42d5dc7692 [mcs] Flow analysis of moved arguments. Fixes #20983 2014-07-07 13:31:26 +02:00
Marcos Henrich 1eb4eadd02 Removed schemes news: and custom: from tests.
Those schemes have a wrong behavior in .NET.
new Uri("news:a/a%30").ToString() == "news:a/a%30a/a0"
2014-07-07 11:56:41 +01:00
Marcos Henrich e5048fc268 Updated method UriHelper.SupportsQuery to return false with news. 2014-07-07 11:52:56 +01:00
Marcos Henrich 163fe0450a Fixed path starting with '/' on custom schemes, mailto and news. 2014-07-07 11:46:52 +01:00
Marcos Henrich 6311335d7b Added method UriHelper.IsKnownScheme(string scheme). 2014-07-07 11:45:14 +01:00
Marcos Henrich 3c23b670fa Support for custom scheme parsing.
Custom schemes can have a delimiter "://" with a host and a delimiter ":" without a host.
Added FormatFlag.HasHost and UriScheme.CustomWithHost.
2014-07-07 11:35:51 +01:00
Marcos Henrich 9aab7beda3 Change UriParser to correctly parse scheme separator ":" or "://"
Schemes expect a separator ":" or "://" but unknown schemes can use either one, so the used delimiter is now stored in UriElement.
2014-07-07 11:21:01 +01:00
Marcos Henrich 8695716072 Changed Uri.ToString() to use property Uri.Parser. 2014-07-07 11:09:58 +01:00
Alexander Köplinger 1910095e25 [mono] Ignore *.trs files in unit-tests 2014-07-05 23:35:48 +02:00
Alexander Köplinger 96201fbaa7 Ignore automake 'test-driver' file
This was introduced by automake 1.12 and can be safely ignored.
2014-07-05 23:34:40 +02:00
Zoltan Varga 243fc9e374 [jit] Rename MonoJitInfo.used_regs to 'unwind_info' to better reflect its current purpose. 2014-07-05 21:51:56 +02:00
Zoltan Varga 496579788e Add support for precise unwind info in epilogs on amd64:
* Implement DW_CFA_remember_state/restore_state opcodes.
* Add a DW_CFA_mono_advance_loc opcode to advance to a location stored outside
  of the unwind info. Use this to allow the sharing of unwind info between
  methods.

This is need to prevent crashes during unwinding when the ip of the last frame is in the epilog. This can be reproduced by
running sgen-new-threads-dont-join-stw.exe in a loop.
2014-07-05 16:10:13 +02:00
Zoltan Varga e7c56da507 Update the required bootstrap mono version to 2.10, 2.4 will no longer work. 2014-07-04 18:13:40 +02:00
Marek Safar 85e83288f8 [corlib] Update 6b94215d0b to work with not null targets too 2014-07-04 16:26:45 +02:00
Marek Safar 29520fe1b0 [mcs] Allow more conversions for CallerLineNumberAttribute 2014-07-04 16:26:45 +02:00
Zoltan Varga 9ae041a631 [sdb] Add support for out arguments in invokes. 2014-07-04 15:56:16 +02:00
Marcos Henrich 82a4c17b2b Uri.IriParsing can now be set by using an environment variable.
The Uri static constructor reads the environment variable MONO_URI_IRIPARSIN and sets Uri.IriParsing.
2014-07-04 11:25:48 +01:00
Marek Safar 6b94215d0b [corlib] Fix Delegate::DynamicInvoke for open delegates of instance methods and closed delegates of static methods 2014-07-04 12:24:16 +02:00
Alex Rønne Petersen 8ecdad183b Empty commit, poking Jenkins... 2014-07-04 04:55:16 +02:00
Zoltan Varga 3bbaf9096e [runtime] Use sleep (1) instead of sleep (0) in the native SIGSEGV suspend loop to reduce cpu usage. 2014-07-04 03:08:23 +02:00
Zoltan Varga fce3972b58 [sdb] Add support for returning the changed valuetype receiver after invokes to valuetype methods. 2014-07-03 23:33:10 +02:00
Marcos Henrich 98b6fe5827 Fixed missing # encoding.
With IriParsing disabled if the fragment has a character to be normalized then an # should be encoded.
new Uri("http://a/a?#%30#").ToString() should be "http://a/a?#0%23".
new Uri("http://a/a?#0#").ToString() should be "http://a/a?#0#".
2014-07-03 19:26:18 +01:00
Marcos Henrich c4508573a9 Updated UriHelper.FormatFlags.
Renamed HasCharactersToNormalize to HasUriCharactersToNormalize
Added HasComponentCharactersToNormalize.
2014-07-03 19:24:32 +01:00
Marcos Henrich 2d12b5be53 Fixed bad reduce of "ftp://a\.\". 2014-07-03 18:18:41 +01:00
Marcos Henrich d66a5dafb4 Added backslash to reduceLocations. Simplified componentLocations. 2014-07-03 18:02:55 +01:00
Marcos Henrich 94ca53a315 StringTester.Assert parameter message is now optional.
Additionaly if no message is provided the assert id is used instead.
2014-07-03 17:55:51 +01:00
Marcos Henrich a810e34cdb Updated Uri.Tostring.
Uri.ToString now use GetComponentsHelpers to get and format an absolute Uri and uses FormatRelative to format a relative Uri.
2014-07-03 17:41:14 +01:00
Marcos Henrich 48b81e65ff Added method GetComponentsHelper.
With GetComponentsHelper components with format UriHelper.ToStringUnescape can be retrieve without the ArgumentOutOfRangeException thrown by GetComponents.
2014-07-03 17:39:52 +01:00
Marek Safar d73e2354f3 [mcs] Don't cache lambda expressions in static constructor context 2014-07-03 17:50:41 +02:00
Marek Safar 50a98385b4 [mcs] Fixes flow analysis of if statement with constant expression 2014-07-03 17:50:40 +02:00
Marek Safar 667c78579c [mcs] Overload resolution should not fail when type inference infers inaccessible types but other overload exists 2014-07-03 17:50:40 +02:00
Marek Safar ea4d8490c7 [mcs] Methodgroup probing checks are not allowed 2014-07-03 17:50:40 +02:00
Marek Safar 9b026032a3 [mcs] Methodgroup conversion involving user defined operators 2014-07-03 17:50:40 +02:00
Marek Safar d462fc4443 [mcs] Use same result conversion rules of predefined enum operators for unary and binary expressions 2014-07-03 17:50:39 +02:00
Marek Safar 2139eeab4c [mcs] A value for params parameter with default valus is still empty array 2014-07-03 17:50:39 +02:00
Zoltan Varga 0d166ba085 [runtime] Enable aot on 64 bit osx. 2014-07-03 16:49:51 +02:00
Marcos Henrich 986071016d Updated Fragment, Query, AbsoluteUri.
Fragment and Query are now processed with UriHelper.FormatAbsolute.
AbsoluteUri is using obtained from GetComponents.
2014-07-03 14:43:43 +01:00
Marcos Henrich c55d3dfa29 UriHelper.Format now reduces paths. 2014-07-03 12:55:07 +01:00
Marcos Henrich b3dc98ad27 Improved reduce tests.
Reduce tests now test sequences of 1 to 3 encoded or decoded dots inside paths with or without trailing character and encoded fowardslash and backslash.
2014-07-03 12:46:13 +01:00
Alex Rønne Petersen 4d59f61b23 Revert "[corlib] Re-enable TaskContinuationChainLeak test."
This reverts commit 265060cc22.

The test is still failing:

2) MonoTests.System.Threading.Tasks.TaskTests.TaskContinuationChainLeak :   Expected: False
  But was:  True

at MonoTests.System.Threading.Tasks.TaskTests+TaskContinuationChainLeakTester.Verify () [0x00000] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1991
at MonoTests.System.Threading.Tasks.TaskTests.TaskContinuationChainLeak () [0x00022] in /var/lib/jenkins/workspace/Mono/mcs/class/corlib/Test/System.Threading.Tasks/TaskTest.cs:1948
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 /var/lib/jenkins/workspace/Mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
2014-07-03 05:54:01 +02:00
Alex Rønne Petersen dff4b38a95 [System] Add more logging to the BeginConnectMultiple test. 2014-07-03 02:46:21 +02:00
Alex Rønne Petersen d56373ffc0 [WCF] Disable CloseTest and OpenTest4 in CustomPeerResolverServiceTest.
These tests occasionally time out:

Test Case Failures:
1) MonoTests.System.ServiceModel.PeerResolvers.CustomPeerResolverServiceTest.CloseTest : System.TimeoutException : The operation has timed-out.
at System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd () [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult result) [0x00000] in <filename unknown>:0
at System.ServiceModel.Channels.HttpRequestChannel.Request (System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Request (System.ServiceModel.Description.OperationDescription od, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.DoProcess (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0
at System.ServiceModel.MonoInternal.ClientRuntimeChannel.Process (System.Reflection.MethodBase method, System.String operationName, System.Object[] parameters) [0x00000] in <filename unknown>:0

I.e. we're timing out waiting for the async wait handle here: https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs#L495

Since we have no current WCF maintainer and this is deep, deep within
WCF land and causes unstable builds on Jenkins, disable these tests
for now.

Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=21069
2014-07-03 02:31:07 +02:00
Alex Rønne Petersen 26789fb447 [System] Add some debugging code to BeginConnectMultiple test.
The WaitOne () call has a tendency to time out on the Jenkins
VMs. However, reproducing the problem outside of Jenkins has
proven futile.

This makes the WaitOne () call block for as long as needed and
still fails the test if the elapsed time was longer than 30s.
We print the actual elapsed time to the console.

Hopefully this'll help us find out if it's just taking quite a
long time to run or if it's a hang.
2014-07-03 02:20:11 +02:00
Rodrigo Kumpera c0bb6c817c [runtime] Add cross helper extensions. 2014-07-02 16:20:08 -04:00
Marcos Henrich 5119bb867e Improved unescape testing.
With IriParsing the presencee of encoded alpha numeric, non ASCII, '-', '.', '_' and '~' characters trigger the decoding of some other characters.
Tested permutations now include tests with and tests without those characters.
2014-07-02 21:02:07 +01:00
Marcos Henrich aa1130e4fe Added methods FormatAbsolute, FormatRelative, and enum FormatFlags.
Changed Format methods to receive FormatFlags.
Added FormatFlag.HasCharactersToNormalize, which improves character decoding.
The flag is set when Iriparsing is true and the Uri contains an encoded alpha numeric, non ASCII, '-', '.' , '_' and '~'.
When the flag is set some other encoded charcaters need also to be decoded.
2014-07-02 19:17:03 +01:00
Ludovic Henry 49e43b69e5 [sgen] Use gc_stats minor and major collection counts instead of local variable 2014-07-02 13:52:57 -04:00
Zoltan Varga c81847aad0 [runtime] Fix the win32 build. 2014-07-02 19:10:22 +02:00
Marek Safar c1a3af342a [mcs] Constant folding of null strings casted to object 2014-07-02 15:33:16 +02:00
Marek Safar f2c645206b [mcs] Add new test 2014-07-02 15:33:04 +02:00
Marek Safar bde70c6954 [mcs] Parsing of nullable type cast inside statement with open parens 2014-07-02 15:31:06 +02:00
Marek Safar c25e3160cd [mcs] Switch with user conversion to nullable governing type 2014-07-02 13:10:12 +02:00
Marek Safar 36465ac8ca [mcs] Object initializer for events which can be initialized using field expression 2014-07-02 13:10:12 +02:00
Alex Rønne Petersen 68b843055d [ppc] Lower long_rem_imm to long_rem when on ppc64. 2014-07-02 10:50:07 +02:00
Alex Rønne Petersen f9435b5381 mcs/class/Makefile: Remove duplicate System.Web entry.
Second take on 5fbb351375.
2014-07-02 01:48:35 +02:00
Alex Rønne Petersen 1c0a2b274d mcs/class/Makefile: Merge common_dirs into net_2_0_dirs.
They're used in the same places so we may as well simplify.
2014-07-02 01:48:34 +02:00
Alex Rønne Petersen e7ea135959 Revert "Remove duplicate System.Web in mcs/class/Makefile."
This reverts commit 5fbb351375.

This breaks the build because System.Runtime.Remoting needs System.Web.
2014-07-02 01:35:40 +02:00
Rodrigo Kumpera d97ad1baef [runtime] First pass of cross compilation cleanup. Allow offsets and alignment to be externally calculated. 2014-07-01 19:33:57 -04:00
Alex Rønne Petersen 5fbb351375 Remove duplicate System.Web in mcs/class/Makefile.
It was listed both in net_2_0_dirs and common_dirs so
it would get tested twice in some profiles.
2014-07-02 00:37:05 +02:00
Alex Rønne Petersen 74f1bd23d2 Remove duplicate System.ServiceModel in mcs/class/Makefile.
This was causing tests to be run several times in the same profile(s).
2014-07-01 23:30:06 +02:00
Rodrigo Kumpera a5245506a5 [runtime] Fix the android build. 2014-07-01 16:19:19 -04:00
Alex Rønne Petersen 265060cc22 [corlib] Re-enable TaskContinuationChainLeak test.
This is hopefully fixed after a57fb5b.
2014-07-01 21:53:56 +02:00
Alex Rønne Petersen 8ee0cae366 [ppc] Clean up atomic opcodes.
* Support atomic_add_i4 on ppc32 in addition to ppc64.
* Make the atomic_add_* code more in line with the atomic_cas_* code.
2014-07-01 21:53:56 +02:00
Alex Rønne Petersen b784b866da [mini] Simplify the way the JIT emits atomic opcodes.
* MONO_ARCH_HAVE_ATOMIC_* macros have been removed.
* Backends now report whether they support atomic opcodes via
  the mono_arch_opcode_supported () function.
* The default implementation of mono_arch_opcode_supported ()
  has been removed as almost all backends need to define one
  anyway.
* All old atomic_add_* opcodes have been removed. These were no
  longer being used but some backends still had code for them.
* atomic_add_new_* opcodes have been renamed to atomic_add_* as
  they are now the only atomic add opcodes.
* Itanium-specific atomic_add_imm_* opcodes have been moved to
  the __ia64__ section of mini-ops.h.
* Comments have been added to mini-ops.h explaining the precise
  semantics of the atomic opcodes.

The net result of this change is a simpler backend interface at
the cost of a slightly bigger binary.
2014-07-01 21:53:56 +02:00
Alex Rønne Petersen 654f2908d6 Merge pull request #1143 from akoeplinger/fix-gc-descriptor-error
[tests] gc-descriptors: Only copy file in case of VPATH build
2014-07-01 21:40:35 +02:00
Alex Rønne Petersen d1da287383 Merge pull request #1127 from oleg-st/master
Added fix for Bug 20869
2014-07-01 21:36:58 +02:00
Alexander Köplinger 687fd0e45f [tests] gc-descriptors: Only copy file in case of VPATH build
Instead of ignoring the cp error when copying over the same file in non-VPATH builds.
2014-07-01 21:17:53 +02:00
Zoltan Varga a57fb5b645 [runtime] Make WaitForPendingFinalizers () really wait for the finalizers added by a previous GC. Fixes #20503. 2014-07-01 21:10:33 +02:00
Alex Rønne Petersen e773c8681b Merge pull request #1141 from akoeplinger/fix-mono-shlib-cop
[tools] Fixed mono-shlib-cop test
2014-07-01 20:43:40 +02:00
Zoltan Varga cb0e956570 Fix the marshal7.cs test, longs can be aligned to 4 bytes on 32 bit linux, and the runtime no longer aligns structure sizes to 8 bytes. Fixes #20788. 2014-07-01 19:53:26 +02:00
Marcos Henrich 4d3934f7c9 Changed UriPermutationsTest createMode to false. 2014-07-01 14:49:09 +01:00
Alexander Köplinger eb30357e6f [tools] Fixed mono-shlib-cop test
MONO_PATH was missing when running the tests.

Use "libMonoPosixHelper.so" in local directory when checking if DllImport of a development library generates a warning (libglib2.0-dev might not be installed, but libMonoPosixHelper is always built with mono)
2014-07-01 14:55:00 +02:00
Andrea Canciani 39108b009f Improve libgdiplus path handling
Since libgdiplus is not installed together with Mono, it should not be
assumed to be in the same prefix.

The new policy for the --with-libgdiplus configure option is the
following:

 - --with-libgdiplus=/absolute/path/to/libgdiplus.{so,dylib}

   both during build/check and after installation Mono will try to use
   the specified libgdiplus library; the rationale is that when an
   absolute path is given, it can be assumed to be the full path to
   the library that is already installed (possibly in a non-default
   path).

 - default, --with-libgdiplus=no, --with-libgdiplus=installed

   both during build/check and after installation Mono will try to use
   a system-wide libgdiplus library, that is assumed to reside in the
   paths that are automatically searched by the dynamic linker; the
   library is supposed to be already installed in the default path and
   to be useable both during the build and afterwards.

 - --with-libgdiplus=sibling, --with-libgdiplus=yes

   during build/check Mono will try to use the libgdiplus library that
   is assumed to be in the sibling folder (../libgdiplus), but after
   the installation it will try to use a system-wide libgdiplus
   library, that should be in the paths that are automatically
   searched by the dynamic linker; the assumption is that the library
   is not yet installed, but it will go to the default prefix after
   installing it.

 - --with-libgdiplus=../some/relative/path/to/libgdiplus.{so,dylib,la}

   during build/check Mono will try to use the specified libgdiplus
   library, but after the installation it will try to use a
   system-wide libgdiplus library, that should be in the paths that
   are automatically searched by the dynamic linker; the assumption is
   that the library is not yet installed, but it will go to the
   default prefix after installing it.
2014-07-01 14:25:21 +02:00
Andrea Canciani 3408b8e5f1 Use Mono prefix for libMonoPosixHelper
The libMonoPosixHelper is installed together with Mono, hence its path
in the configuration should be relative to the Mono prefix.

It was previously assumed to reside in a system path, so the the
dynamic linker would find it anyway.

This patch is based on the one included in bug #18555 (by Gaëtan
Lehmann <[email protected]>), but it also updates
runtime/Makefile.am to keep runtime/etc/mono/config consistent.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18555
2014-07-01 14:25:12 +02:00
Marek Safar 14c22b76c3 [mcs] Add missing lock expression flow analysis 2014-07-01 14:03:53 +02:00
Marcos Henrich b827f67a4e Added UriPermutationsTest.
Created a new set of tests that create&store or that load&assert uri permutations.
Uris are created with permutations of schemes, components, characters then methods and properties output is asserted against expected values obtained on .NET.
2014-07-01 12:14:31 +01:00
Marek Safar a2b77fd158 [mcs] Emit valid code for exception filter using constrained type parameter 2014-07-01 12:45:28 +02:00
Marek Safar 7dc9d3c84f [mcs] Emit correct token for inherited nested non-generic types from unbound types 2014-07-01 09:45:02 +02:00
Marek Safar 8f961e6560 [mcs] Re-add obsolete reporting for enumerators removed in 6643bc119c 2014-07-01 08:36:05 +02:00
Zoltan Varga 309e3348d3 Allocate the finalizable object in finalizer-exception.cs in another thread to make it less likely that it is retained. Fixes finalizer-exception.exe on 64 bit osx+llvm. 2014-07-01 00:35:29 +02:00
Alex Rønne Petersen f2e0ddfe07 Merge pull request #1140 from kitsilanosoftware/no-gitlink-in-dist
[dist] Do not include .git link files in dist tarball
2014-07-01 00:18:28 +02:00
Damien Diederen 8b29589414 [dist] Do not include .git link files in dist tarball
Recent versions of Git co-host submodule GIT_DIRs in <root-project>/.git/
by default, and write their relative path into <subproject>/.git,
which is a regular file:

    $ ls -l external/cecil/.git
    -rw-r--r-- 1 foo  bar  42 Jun 16 12:50 external/cecil/.git
    $ cat external/cecil/.git
    gitdir: ../../.git/modules/external/cecil

Relax the expression in Makefile.am to also delete these (broken)
"symlinks" when preparing a distribution tarball.
2014-06-30 23:59:22 +02:00
Alex Rønne Petersen 6a71dad5fe Add /reflection-load-dir to mono/tests/.gitignore. 2014-06-30 23:25:49 +02:00
Alex Rønne Petersen f6f5131915 Emit correct memory barriers in the JIT intrinsic for Interlocked.Read (). 2014-06-30 23:25:14 +02:00
Zoltan Varga 83f5d832c3 [amd64] Remove the callee saved registers from MonoLMF, save/restore them normally using the normal register save/restore code. 2014-06-30 23:04:38 +02:00
Alex Rønne Petersen c659ba284a Merge pull request #1138 from akoeplinger/fix-webtest-deadlocks
[System.Web] Tests: Fix deadlock when ThreadAbortException is thrown
2014-06-30 21:12:26 +02:00
Alexander Köplinger f7f627b756 [System.Web] Tests: Fix deadlock when ThreadAbortException is thrown
This reverts commit ed11296c51.

When a ThreadAbortException is thrown during request processing in AsyncRun () the _done.Set () call is not executed.
This then results in a deadlock because _done.WaitOne () doesn't get signaled and waits forever.
One solution would be enclosing the _done.Set () in a finally clause, but even then we'd need to relaunch the AsyncRun () loop to be in a usable state.

A simpler solution is to revert the commit that introduced the AsyncRun () in the first place, as it doesn't seem necessary now (the tests pass just fine without it).

The test that was disabled in 429cdf17cf is reenabled too, as it wasn't the culprit of the problem.
2014-06-30 21:01:30 +02:00
Marek Safar 6643bc119c [mcs] Not applicable GetEnumerator candidates were not rejected early enough 2014-06-30 19:45:46 +02:00
Alex Rønne Petersen dd96dbf5a9 Merge pull request #1133 from kitsilanosoftware/mcs-tests-no-jscript
[mcs tests] class/Microsoft.JScript does not exist anymore
2014-06-30 19:43:14 +02:00
Zoltan Varga 65c9838151 [jit] Move the 'remove any unused lmf' code from mono_arch_find_jit_info () to mini-exceptions.c to reduce code duplication and fix some problems where ctx->sp and lmf->sp was used to determine whenever the LMF was below the end of the stack instead of new_ctx->sp and lmf. 2014-06-30 19:40:10 +02:00
Zoltan Varga bffc57cca8 [amd64] Fix the popping of LMF frames during unwinding. Fixes #20616. 2014-06-30 18:54:25 +02:00
Marek Safar 2820631d68 [mcs] Emit partial type parameters attributes too 2014-06-30 17:25:27 +02:00
Marek Safar 819a50e76e [mcs] Use same rules in dynamic context as in normal instance member hidding. 2014-06-30 17:25:27 +02:00
Marcos Henrich 085fc9b574 Improved UriHelper.Format '%' handling.
When a % was found HexUnescapeMultiByte output was always considered escaped.
Now a % that is not a percentage encoded character will be processed has a not escaped character.
2014-06-29 15:44:20 +01:00
Zoltan Varga faa73b1290 [runtime] Fix the marshalling of ByValTStr types which have a size specified. Fixes #20674. 2014-06-29 15:24:29 +02:00
Marcos Henrich 666987dbcf Changed Uri.SupportsQuery to use UriHelper.SupportsQuery. 2014-06-29 11:26:33 +01:00
Marcos Henrich 048d3a198e Changed ParsePath to only break on '?' if scheme supports queries. 2014-06-29 11:01:36 +01:00
Marcos Henrich addeff3b8f Replaced UriParser.Format with UriHelper.Format.
UriParser.Format was deleted and UriParser.GetComponents is now using UriHelper.Format.
2014-06-29 10:51:09 +01:00
Marcos Henrich 77113c8429 Changed UriElements query and fragment default values to null.
Default values are now null so UriParser.GetComponents can return an empty query or fragment..
2014-06-29 10:31:43 +01:00
Marcos Henrich 6b9726ed2a Created file UriHelper.cs.
UriHelper has the method Format that escapes or unescapes a string's characters depending on the Scheme, UriKind, UriComponent and UriFormat.
2014-06-29 10:06:22 +01:00
Marcos Henrich e5eea6a591 Changed method HexUnescapeMultiByte to internal. 2014-06-29 09:48:48 +01:00
Marcos Henrich b31f2bf454 Added property IriParsing and field s_IriParsing.
The property IriParsing will be used to change between .NET 4.5 and .NET 4.0 default percentage encoding/decoding behavior.
A private field named s_IriParsing same as .NET was also added so it can be changed the same way through reflection in .NET and Mono.
2014-06-29 09:10:00 +01:00
Marcos Henrich 9d624b7d4e Added UriScheme name.
Added UriSchemeTelnet, UriSchemeLdap, UriSchemeUuid.
2014-06-28 19:15:07 +01:00
Ludovic Henry 1fdc7407a0 [sgen-worker] Improve worker data stealing distribution
The idea is simply to make a worker tries to steal work from the workers that are next to him firs, before trying back at the beginning.
This reduce lock contention on the first workers and distribute more evenly work between workers by not starving the first ones.
2014-06-27 16:21:31 -07:00
Alex Rønne Petersen 143e50f97d Fix a format string warning in decode.c. 2014-06-27 23:46:33 +02:00
Alex Rønne Petersen c2ede005a3 Only enable finally_block_ending_in_dead_bb.exe on x86/amd64 (not NaCl and Win32).
We would previously run this everywhere, but it only works on
x86 and amd64 at the moment (similar to finally_guard.exe).
This meant that it would always fail on e.g. ARM and PPC. We
still disable it under NaCl (because it uses Thread.Abort ())
and Win32.
2014-06-27 23:37:27 +02:00
Alex Rønne Petersen 2bf3cf31c1 [Ms.Build] Disable 4 tests in ProjectTest and ProjectCollectionTest under NET_4_0.
Bug: https://bugzilla.xamarin.com/show_bug.cgi?id=20961

These tests fail under this particular profile only with the following:

1) MonoTests.Microsoft.Build.Evaluation.ProjectCollectionTest.GlobalProperties :   #2
  Expected: True
  But was:  False

at MonoTests.Microsoft.Build.Evaluation.ProjectCollectionTest.GlobalProperties () [0x00000] in <filename unknown>:0
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) [0x00000] in <filename unknown>:0

2) MonoTests.Microsoft.Build.Evaluation.ProjectTest.BuildCSharpTargetBuild : Microsoft.Build.Exceptions.InvalidProjectFileException : Attribute "KeepDuplicates" is not known on node "_TargetFrameworkDirectories" [type Microsoft.Build.Construction.ProjectItemElement].  at: /home/alexrp/Projects/mono/mcs/class/lib/net_4_5/Microsoft.Common.targets (182,5)
at Microsoft.Build.Construction.ProjectElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectItemElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Create (System.Xml.XmlReader xmlReader, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.ProcessXml () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Initialize () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, ProjectLoadSettings loadSettings) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0
at MonoTests.Microsoft.Build.Evaluation.ProjectTest.BuildCSharpTargetBuild () [0x00000] in <filename unknown>:0
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) [0x00000] in <filename unknown>:0

3) MonoTests.Microsoft.Build.Evaluation.ProjectTest.CreateProjectInstance : Microsoft.Build.Exceptions.InvalidProjectFileException : Attribute "KeepDuplicates" is not known on node "_TargetFrameworkDirectories" [type Microsoft.Build.Construction.ProjectItemElement].  at: /home/alexrp/Projects/mono/mcs/class/lib/net_4_5/Microsoft.Common.targets (182,5)
at Microsoft.Build.Construction.ProjectElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectItemElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Create (System.Xml.XmlReader xmlReader, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.ProcessXml () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Initialize () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, ProjectLoadSettings loadSettings) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0
at MonoTests.Microsoft.Build.Evaluation.ProjectTest.CreateProjectInstance () [0x00000] in <filename unknown>:0
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) [0x00000] in <filename unknown>:0

4) MonoTests.Microsoft.Build.Evaluation.ProjectTest.LoadCaseInsensitive : Microsoft.Build.Exceptions.InvalidProjectFileException : Attribute "KeepDuplicates" is not known on node "_TargetFrameworkDirectories" [type Microsoft.Build.Construction.ProjectItemElement].  at: /home/alexrp/Projects/mono/mcs/class/lib/net_4_5/Microsoft.Common.targets (182,5)
at Microsoft.Build.Construction.ProjectElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectItemElement.LoadAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.LoadValue (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectElementContainer.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Load (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
at Microsoft.Build.Construction.ProjectRootElement.Create (System.Xml.XmlReader xmlReader, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Import (Microsoft.Build.Construction.ProjectImportElement import) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project+<EvaluatePropertiesAndImportsAndChooses>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[ProjectElement] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.ProcessXml () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project.Initialize () [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, ProjectLoadSettings loadSettings) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <filename unknown>:0
at Microsoft.Build.Evaluation.Project..ctor (Microsoft.Build.Construction.ProjectRootElement xml, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0
at MonoTests.Microsoft.Build.Evaluation.ProjectTest.LoadCaseInsensitive () [0x00000] in <filename unknown>:0
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) [0x00000] in <filename unknown>:0
2014-06-27 23:37:27 +02:00
Alex Rønne Petersen 3130eae0bc atomic.c: Get rid of the fallback warning.
This is really noisy on platforms like ARM where we
intentionally use the fallback mutex-based code.
2014-06-27 23:37:27 +02:00
Matthew Leibowitz 7f8d148ec2 [system.data] Appended the fix to correct the whitespace Expression and argument checking
- Whitespace Espressions:
 -- if a column expression is a pure whitespace, use an empty string instead
 -- if a column expression is surrounded by whitespace, preserve whitespace
 -- if a column expression is null/empty, use an empty string
 - Get a row's column value:
 -- make sure we throw exceptions if the column we are looking at is null
 -- make sure we throw exceptions if we can't find the column with the provided name
2014-06-27 20:56:37 +02:00
Michael Hutchinson 8afba772b2 [MSBuild] Reload projects after parsing sln file
When building sln files, they are first converted to sln.proj
files, then the project file is built.

The engine unloaded and reloaded the sln.proj file itself, but
not the projects implicitly loaded while parsing the sln file.
This meant that some state was kept around that prevented
AfterTargets from being handled correctly

BXC18761 - AfterTargets and AfterBuild ignored by xbuild
2014-06-27 14:31:44 -04:00
Rodrigo Kumpera 3acca04eaf Revert "Don't touch internal feature macros in eglib"
This reverts commit dd412cfb2e.

We need to know what target was broken by this and verify that this won't break the platitude of libc's around.

This is currently a non-trivial job, so let's just revert this for now.
2014-06-27 14:16:29 -04:00
Michael Hutchinson c8e2f04965 [MSBuild] Suppress useless message
The DotConfigExtensionsPath won't ever exist unless the user
creates it manually, so prevent spewing out dozens of messages
that it's missing.
2014-06-27 14:09:21 -04:00
João Matos 994c2c32fd [System.IO.Compression] Tidy up formatting. 2014-06-27 16:30:32 +01:00
João Matos 53b028a5c2 [System.IO.Compression] Fixed archive entry opening for non-Create mode archives. 2014-06-27 16:04:06 +01:00
Marek Safar e206a4a2d3 Merge pull request #1134 from kitsilanosoftware/mcs-tests-dll-il-distfile
[mcs tests] Add tests/dlls/*.il to DISTFILES
2014-06-27 16:52:45 +02:00
Marek Habersack f1d4d8d1bc Merge pull request #1135 from kitsilanosoftware/rpm-spec-dead-entries
[rpm spec] Mono.Web and OpenSystem.C do not exist anymore
2014-06-27 16:45:43 +02:00
Alex Rønne Petersen abb4701d10 Use mono_strtod () instead of strtod () on ARM.
The former used to miscompile back in 2005, but this no
longer appears to be the case. Further, using strtod ()
is problematic on Linux/ARM systems with many non-US
locales that use a comma as the decimal separator.

In particular, this breaks almost all compilation with
MCS because it can't parse floating point literals.

Based on investigation by Damien Diederen <[email protected]>.
2014-06-27 16:34:18 +02:00
Alex Rønne Petersen abc9511500 Fix a format string warning in decode.c. 2014-06-27 16:34:18 +02:00
Damien Diederen 1d474d3480 [mcs tests] Add tests/dlls/*.il to DISTFILES
Without this,

    cd mcs/tests && make run-test

fails when run from a distribution tarball.
2014-06-27 16:30:35 +02:00
Damien Diederen 4984d2be23 [mcs tests] class/Microsoft.JScript does not exist anymore 2014-06-27 16:30:04 +02:00
Damien Diederen 0332f3b622 [rpm spec] Mono.Web and OpenSystem.C do not exist anymore 2014-06-27 16:29:21 +02:00
Matthew Leibowitz 19908c6b94 [system.data] BUGFIX: fixes issue with expression columns and IsNull:
- bugzilla.xamarin.com issue 20925
 - if an expression column was added ayer there were rows, and then IsNull is called, the result is incorrect (it will always be true)
2014-06-27 13:43:12 +02:00
Marek Safar 7bf00fe94c [System] Fixes a warning 2014-06-27 13:37:50 +02:00
Marek Safar fcb3c36009 [corlib] Array qsort without head allocation. Fixes #20922 2014-06-27 12:44:59 +02:00
Marek Safar 90d6774c0b [mcs] Fix crash in inherited type parameter interface check 2014-06-27 12:44:59 +02:00
Marek Safar 087c85a0a8 [mcs] Workaround MSIL limitation when loading bool elements 2014-06-27 12:44:58 +02:00
Ludovic Henry c988f486f9 [sgen-gray-queue] Fix crashing sgen-domain-unload sgen test
sgen-domain-unload.exe test would crash because of a bug involving queue->alloc_prepare_func => workers_gray_queue_share_redirect => sgen_gray_object_dequeue_section on queue => set queue->first->size depending on queue->cursor. The solution is simply to make sure that the cursor is set on the queue, before allocating a new section, even if it is does not seems necessary in the first place.
2014-06-26 20:32:46 -07:00
Ludovic Henry cc4dc922aa [sgen-gray-queue] Always update queue->cursor when dequeing
Previously, queue->cursor would not be set to NULL if the last element would be dequeued and queue->first would be set to NULL.
2014-06-26 20:31:12 -07:00
Zoltan Varga eedc51cb8f [jit] Remove now unused MONO_ARCH_HAVE_OP_LREM_IMM define. 2014-06-27 03:53:53 +02:00
Alex Rønne Petersen 28d7376a01 Fix a couple of format string warnings in sgen-gc.c. 2014-06-27 03:48:05 +02:00
Zoltan Varga 5e1960cef7 Merge pull request #1131 from schani/feature-portable-fast-lrem-imm
[jit] Portably decompose power-of-two OP_[IL]REM_IMM.
2014-06-27 03:44:22 +02:00
Zoltan Varga 9b0fcf35a8 [sdb] Avoid running tests in the 2.0 profile. 2014-06-27 02:02:16 +02:00
Mark Probst 515350999b [jit] Portably decompose power-of-two OP_[IL]REM_IMM.
Instead of generating a sequence of AMD64 instructions for
power-of-two OP_[IL]REM_IMM, portably decompose them to intermediate
code.

OP_IREM_IMM is decomposed on 32 and 64 bit archs, OP_LREM_IMM only on
64 bit archs.
2014-06-26 15:26:38 -07:00
Alex Rønne Petersen 1dd682eb3c Merge pull request #1130 from akoeplinger/descriptive-tests
[System] Make tests more descriptive on failure
2014-06-26 21:01:19 +02:00
Alexander Köplinger 4d93cac6d7 [System] Make tests more descriptive on failure
By using StringAssert we get a more descriptive error message when the test fails, i.e. the expected vs. the actual string value instead of just true/false.
2014-06-26 20:58:15 +02:00
Mark Probst 3451058c52 Merge pull request #1128 from ludovic-henry/pr19g-sgen-grayqueue
[sgen-gray-queue] Use a cursor based accessing pattern to reduce memory indirection
2014-06-26 11:46:53 -07:00
Alex Rønne Petersen 3d3da63af5 [System] Up the timeout in the BeginConnectMultiple test to 30s.
Most Linux systems have the net.ipv4.tcp_syn_retries sysctl
set to 5 or 6, so we need at least 30 seconds here.
2014-06-26 20:40:06 +02:00
Oleg Stepanischev f7b81bda13 Added fix for Bug 20869 2014-06-26 22:24:34 +04:00
Rolf Bjarne Kvinge 4c756653a6 [Mono.Data.Sqlite] Add support for Scalar and Aggregate functions in Xamarin.iOS. 2014-06-26 19:07:55 +02:00
Marek Safar d151adb4fe [corlib] Update racy test 2014-06-26 17:20:29 +02:00
Marek Safar a58750d9ac [mcs] Emit correct attribute reference when async lambda ends up in nested type. Fixes #20849 2014-06-26 17:20:29 +02:00
Marek Safar 8d282b527e [corlib] Fix typo 2014-06-26 17:20:29 +02:00
Marek Safar 37e584789e [mcs] Fix local exits from try-finally scope with awaited statements 2014-06-26 17:20:29 +02:00
Jonas 'Sortie' Termansen a4f87aef0e Print pid_t's portably in mono/metadata/attach.c
The pid_t type is required by POSIX to be a signed integer type (and that it
isn't wider than long in at least one programming environment). Mono has a
bunch of issues with 64-bit pids at the present, this is a start. Cast the
pid to the largest available signed type before printing it.

This change is released under the MIT/X11 license.
2014-06-26 10:59:10 -04:00
Jonas 'Sortie' Termansen 1e35e62d1c Avoid non-standard BSD types in mono/io-layer/wapi_glob.c
The u_char, u_short and u_int types are non-standard and no system headers
are required to provide them. There are no particular use for them and the
builtin standard types will do just as well.

This change is released under the MIT/X11 license.
2014-06-26 10:58:59 -04:00
Jonas 'Sortie' Termansen a869ac45ab Restore the null garbage collector
I had to use the null garbage collector due to boehm being troublesome. The
code appears unmaintained but I can see a recent git commit enabled support
again. However, I had to do more than that to get it working. I'm really not
sure how semantically correct this is and it needs review from an expert in
how threads and garbage collection interplay in Mono. It seems very odd that
various attributes (such as its short id) about the main thread is
initialized as a side effect of initializing the garbage collection. The
mono_thread_info_attach was needed to prevent a crash.

This change is released under the MIT/X11 license.
2014-06-26 10:53:22 -04:00
Jonas 'Sortie' Termansen 325982b65f Remove Mono_Posix_Syscall_utimes_bad
Welcome to the world of tomorrow! It's been almost a decade since this was
made obsolete in 2005. Nothing uses this function any longer. Additionally
it is completely broken as utimes takes a pointer to an array with two
timevals, but the code passes only a pointer to a single timeval.

This change is released under the MIT/X11 license.
2014-06-26 10:52:53 -04:00
Jonas 'Sortie' Termansen 8305af7c9b Remove test whether thread-local storage works in shared libraries
This test was added in 2004 to work around buggy Linux distributions and is
not needed today. The test caused problems as it also ran on non-Linux
operating systems and assumed dynamic linking was available. This caused it
to mistakenly decide thread-local storage was unavailable on operating
systems with no dynamic linking (but perfectly usable thread-local storage).

This change is released under the MIT/X11 license.
2014-06-26 10:10:51 -04:00
Jonas 'Sortie' Termansen dd412cfb2e Don't touch internal feature macros in eglib
The __USE_GNU macro is an internal macro used by glibc to enable the GNU
extensions. Programs are instead meant to use the _GNU_SOURCE macro before
including any system header.

This change is released under the MIT/X11 license.
2014-06-26 10:09:15 -04:00
Jonas 'Sortie' Termansen 82364ccaaa Use SIGPROF only if it is available
The SIGPROF signal is an XSI option and obsolescent in XSI. POSIX systems
are not required to have it.

This change is released under the MIT/X11 license.
2014-06-26 10:09:08 -04:00
Jonas 'Sortie' Termansen b564bf4919 Use memset instead of bzero
There is no standard bzero function, only the standard memset function, and
Mono does not declare its own bzero function.

This change is released under the MIT/X11 license.
2014-06-26 10:08:59 -04:00
Jonas 'Sortie' Termansen 4ea1407655 Remove MONO_SIZEOF_SUNPATH
The configure script determines the size of the sun_path member in struct
sockaddr_un. However the test is broken during cross-compilation (with a
comment that there is no macro to determine the size of struct members at
configure time) and MONO_SIZEOF_SUNPATH defaults to 0 (leading to buffer
underflows and overflows). There is no reason to determine this at configure
time when a simple traditional sizeof will do the job at compile time.

This change is released under the MIT/X11 license.
2014-06-26 10:08:54 -04:00
Jonas 'Sortie' Termansen 37acf9e69c Use MAP_FAILED instead of (void*)-1
The MAP_FAILED macro is the standard return value of mmap() upon failure and
it is allowed to have other values than (void*)-1.

This change is released under the MIT/X11 license.
2014-06-26 10:00:03 -04:00
Jonas 'Sortie' Termansen ba1b74d003 Avoid unused function warning in mono/profiler/proflog.c
The dump_ubin function is only used by the elf_dl_callback function. It
should be wrapped in the same #if conditional to avoid a warning if the
preprocessor conditional isn't true.

This change is released under the MIT/X11 license.
2014-06-26 09:59:56 -04:00
Jonas 'Sortie' Termansen bdcc267c59 Avoid unused function warning in mono/io-layer/io.c
The get_fstypename function is only used by the GetVolumeInformation
function. It should be wrapped in the same #if conditional to avoid a
warning if the preprocessor conditional isn't true.

This change is released under the MIT/X11 license.
2014-06-26 09:59:48 -04:00
Jonas 'Sortie' Termansen 05fb00fad6 Use S_IWUSR instead of S_IWRITE
The S_IWRITE macro is a non-standard macro provided by some operating
systems for compatibility with BSD. POSIX specifics a standard macro with
identical semantics with the name S_IWUSR.

This change is released under the MIT/X11 license.
2014-06-26 09:59:24 -04:00
Jonas 'Sortie' Termansen e9a8ca77f1 Get struct timespec from <time.h> in mono/io-layer/misc-private.h
POSIX defines struct timespec in time.h and struct timeval in sys/time.h.
Some operating systems have merged these headers, but this isn't required or
encouraged by POSIX.

This change is released under the MIT/X11 license.
2014-06-26 09:59:17 -04:00
Jonas 'Sortie' Termansen 984de6388c Remove unnecessary <sys/syscall.h> inclusion
Only mono/metadata/icall.c and mono/metadata/filewatcher.c include the
mono/metadata/filewatcher.h header and none of them depend on the contents
of the non-standard header <sys/syscall.h>.

This change is released under the MIT/X11 license.
2014-06-26 09:59:06 -04:00
Jonas 'Sortie' Termansen c765c61f57 Only include the <sys/param.h> header if available
The <sys/param.h> header is non-standard and usually not required if it isn't
available.

This change is released under the MIT/X11 license.
2014-06-26 09:57:42 -04:00
Jonas 'Sortie' Termansen 6479266304 Use <poll.h> to get poll rather than <sys/poll.h>
POSIX specifies <poll.h> as the standard header that declares the poll
function. Many systems provide <sys/poll.h> to be compatible with historical
practice. Prefer the <poll.h> header over <sys/poll.h> if it is available.

This change is released under the MIT/X11 license.
2014-06-26 09:57:34 -04:00
Jonas 'Sortie' Termansen 3512f22ee7 Use <sys/select.h> to get select
POSIX mandates that select is declared in <sys/select.h> (and in the header
<sys/time.h> for compatibility). It would be best to include the new header
if it is available. This is already done throughout the source tree, though
not in all instances.

This change is released under the MIT/X11 license.
2014-06-26 09:57:18 -04:00
Ludovic Henry 748ca8163b [sgen-gray-queue] Add heavy statistics for allocation, and enqueue/dequeue fast/slow paths 2014-06-25 17:40:08 -07:00
Ludovic Henry b1be64cb18 [sgen-gray-queue] Remove compilation warning in mini-gc.c : redefinition of typedef 'mword' 2014-06-25 17:40:08 -07:00
Ludovic Henry f2a6fb719d [sgen-binprot,sgen-gray-queue] Add binary_protocol_gray_(en|de)queue and call them on object enqueuing and dequeuing 2014-06-25 17:40:07 -07:00
Ludovic Henry 470dd7b570 [sgen-protocol] Avoid multiple inclusion of sgen-protocol.h 2014-06-25 17:40:06 -07:00
Ludovic Henry 29a63c160b [sgen-gray-queue] Add macros to compute first and last cursor position address on a section 2014-06-25 17:40:05 -07:00
Ludovic Henry f80999e89b [sgen-gray-queue] Transform GRAY_OBJECT_(EN|DE)QUEUE to always inlined functions 2014-06-25 17:40:05 -07:00
Ludovic Henry 73121dcdc9 [sgen-gray-queue] Change from index based to cursor based gray queue access to current element
This patch consist in changing the way we access the current element value in the gray queue. Before, we would save the index of the last element in the queue, then to access to the current value, we would have to make 2 memory access + 1 array offset access. Now we store a pointer to the current element, so we only need 1 memory access, thus reducing the number of memory indirection. We see ~25% speed improvement in major gc collection time on gc-graystack-stress test.
2014-06-25 17:39:54 -07:00
Ludovic Henry 79a9694861 [sgen-gray-queue] Add graystack stress test 2014-06-25 17:08:52 -07:00
Zoltan Varga ddfd29c85c [jit] Add a MONO_ARCH_HAVE_OP_LREM_IMM define instead of using TARGET_AMD64. 2014-06-25 19:34:55 +02:00
Joao Matos 256a379643 Fixed compiler warning introduced in the last commit about redefining typedefs.
Redefinition of typedef 'foo' is a C11 feature [-Wtypedef-redefinition].
2014-06-25 18:26:43 +01:00
Joao Matos 0b4a34433b Fixed Mono includes to be able to be included independently. 2014-06-25 16:57:16 +01:00
Joao Matos 1cf398ae57 Cleaned up C++ keywords in Mono metadata headers. 2014-06-25 16:57:06 +01:00
Marek Safar f3760960d6 [corlib] Enum::TryParse ignores leading whitespaces. Fixes #20870 2014-06-25 17:31:03 +02:00
Marek Safar d27b129837 [mcs] Fix array access of value type compound assignment with awaited argument 2014-06-25 17:31:03 +02:00
Marek Safar 091b1b5770 [xbuild] Add 4.5.1 framework. Fixes #20827 2014-06-25 17:31:02 +02:00
Marek Safar 4b3572d4a6 [mcs] Allow unsafe code in async block when scope does not need variable capturing 2014-06-25 17:31:02 +02:00
Alex Rønne Petersen 429cdf17cf [System.Web] Disable AppResourcesCompilerTest for now.
This is a stopgap measure: This test hangs a *lot* on Jenkins
and it's only being disabled to get stable-ish builds. It's
being actively investigated still.
2014-06-25 13:22:35 +02:00
Marek Safar f6da699cb6 [mcs] Add experimental value changes notifications to evaluator 2014-06-25 08:50:31 +02:00
Marek Safar c72443eea7 [mcs] Handle side effect constants in await context 2014-06-25 08:50:31 +02:00
Zoltan Varga 90513b115a Fix a warning. 2014-06-25 02:13:10 +02:00
Zoltan Varga 5e761c8175 Merge pull request #1126 from schani/feature-fast-lrem-imm
[amd64] Fast OP_LREM_IMM for power of two operands.
2014-06-25 02:03:20 +02:00
Mark Probst 8580919c1b [amd64] Fast OP_LREM_IMM for power of two operands.
This was the reason for one of our bad performance results in the
paper "Clash of the Lambdas" by Biboudis, Palladinos, Smaragdakis:

http://cgi.di.uoa.gr/~biboudis/clashofthelambdas.pdf
2014-06-24 16:04:26 -07:00
Zoltan Varga 39d07051cf [aot] Fix the decoding of MonoJitInfo. Fixes #16439. 2014-06-25 00:49:07 +02:00
Mark Probst d280b9c122 [sgen] Binary protocol freeing whole M&S blocks. 2014-06-24 10:02:18 -07:00
Mark Probst ad32d49ad7 [sgen] Nicer sgen-grep-binprot output.
Indent events that are always printed so that the ones we're grepping
for are more easily recognized.
2014-06-24 10:02:17 -07:00
Jeffrey Stedfast 10fa44a5e6 Merge pull request #995 from yjoly/master
Fix the date time set in file by removing the ':'.
2014-06-24 11:07:35 -04:00
Marek Safar a58aeafe1d [corlib] Fix racy test 2014-06-24 14:20:16 +02:00
Marek Safar bfa0db9efa [System.Net.Http] Fix disposing of DelegatingHandler. Fixes #20818 2014-06-24 14:20:16 +02:00
Marek Safar 4e937922fa [mcs] Emit side effects of reduced probing expression 2014-06-24 14:20:15 +02:00
Marek Safar 675203a9b7 [mcs] Fix emit of array access with awaited indexer expression and result field write. 2014-06-24 14:20:15 +02:00
Marek Safar b3e65f596d [mcs] Fix scope initialization for exception filters using hoisted lambdas with awaited catch clause 2014-06-24 14:20:15 +02:00
Marek Safar 6d032de710 [mcs] Recognize await as simple name in type context 2014-06-24 14:20:15 +02:00
Alex Rønne Petersen 18bf2e6869 Add a section to CONTRIBUTING.md on inactivity. 2014-06-24 11:12:08 +02:00
Ivo Smits 0e2f0a23b6 Fixed NullReferenceExcepton in Socket.Connect for non-IP endpoints
Socket.Connect(EndPoint) throws a NullReferenceException when connecting to non-IP (eg Unix) endpoints in Dgram mode.
2014-06-24 00:21:06 +02:00
Mark Probst 2d3735c6a6 [sgen] Don't crash for describe_ptr() when there's no bridge processor. 2014-06-23 13:18:35 -07:00
Chris Hamons 90162e5201 Fix Mono.Linker.csproj so it can build
Mono.Linker.csproj has drifted from its associated Makefile was was not buildable.
This change applies changes from the last few Makefile changes.
2014-06-23 10:32:39 -05:00
Marek Safar 3c2f52ef67 [corlib] Fix race in unit test 2014-06-23 14:30:02 +02:00
Marek Safar 41a903da83 [mcs] Handle try await nested in multiple finally blocks. 2014-06-23 14:17:05 +02:00
Alex Rønne Petersen 1633666e82 [corlib] Disable TaskContinuationChainLeak test on non-mobile too. 2014-06-23 14:11:40 +02:00
Alex Rønne Petersen 4ae5924002 Merge pull request #1123 from akoeplinger/fix-webreq-test
[System] Use the same port number instead of a random port in HttpWebRequestTest
2014-06-23 04:06:46 +02:00
Zoltan Varga 6a197bad93 Fix a warning. 2014-06-22 21:38:24 +02:00
Alexander Köplinger 7b5f4a511f [System] Use the same port number instead of a random port in HttpWebRequestTest
A random port doesn't add any value and resulted in at least one port conflict on monojenkins:
http://monojenkins.cloudapp.net/job/Mono/243/testReport/MonoTests.System.Net/HttpWebRequestTest/BeginGetRequestStreamCancelIfNotAllBytesWritten/
2014-06-22 20:10:17 +02:00
Alex Rønne Petersen 8c3ec62481 Merge pull request #1121 from inkdev/master
Fix MSVC build
2014-06-22 16:30:53 +02:00
i59 1dba47fa44 libmono.vcxproj: Link to libmonoruntimesgen.lib in the Release_SGen mode
Previously attempted to link to the libmonoruntime library outputted by the boehm configuration
2014-06-22 16:24:46 +02:00
i59 2bb991cc21 Added file-mmap-windows.c to libmonoruntime.vcxproj 2014-06-22 16:23:16 +02:00
i59 d0feb53196 Moved _WIN32_WINNT to winconfig.h; dropped support for WinXP SP1 and below
Win32 compilation was broken due to attempting to use Interlocked* functions introduced with XP SP2.
2014-06-22 16:21:29 +02:00
i59 daa5a50f41 libmonoutils: Removed need for X64 MASM definition
Check for availability of the RAX register, checking if we're running x64
2014-06-22 16:19:52 +02:00
Alex Rønne Petersen afa2f52e54 Merge pull request #1118 from kitsilanosoftware/udp-client-test-check-ipv6
[System.Net] Do not assume IPv6 is enabled in UdpClientTest
2014-06-21 23:45:54 +02:00
Alex Rønne Petersen 470b80cdfd Merge pull request #1119 from akoeplinger/fix-currencymanager
[Managed.Windows.Forms] Revert a revert commit that accidentally changed the wrong code
2014-06-21 23:45:03 +02:00
Zoltan Varga 50426fe3fd [llvm] Update the LLVM backend to llvm ca4e226df2e13a9e87376a880035efa376639c98. 2014-06-21 18:40:05 +02:00
Alexander Köplinger 1d9a3dc83c [Managed.Windows.Forms] Added more asserts to the CurrencyManagerTest2 test
These were useful while investigating 4b50211fb7
2014-06-21 16:51:09 +02:00
Alexander Köplinger 4b50211fb7 [Managed.Windows.Forms] Revert a revert commit that accidentally changed the wrong code
When the commit 8334fe3a56 was reverted in a791cfc164, accidentally the wrong chunk of code was changed.

This commit reverts the changes correctly.
2014-06-21 16:37:34 +02:00
Zoltan Varga 9daad272b1 [llvm] Remove a small source workaround which is no longer needed. 2014-06-21 15:42:21 +02:00
Reuben Bond eeac252404 Test ClientWebSocket.SendAsync EndOfMessage 2014-06-21 14:57:56 +10:00
Alex Rønne Petersen f2261b6786 Merge pull request #1117 from akoeplinger/fix-databindingsource
[Managed.Windows.Forms] Verify that DataMember is valid when setting DataSource
2014-06-20 20:48:21 +02:00
Damien Diederen 3d21e9cd2f [System.Net] Do not assume IPv6 is enabled in UdpClientTest
Without this, three of the tests fail on Linux kernels without IPv6
support.

This is a minimal fix, copy'n'pasting a conditional which was used in
other tests.  It might be nicer to factor out the SupportsIPv6 to its
own utility function.
2014-06-20 18:45:35 +02:00
Alexander Köplinger f71a3c2683 [Managed.Windows.Forms] Verify that DataMember is valid when setting DataSource
When DataMember is already set before DataSource we need to verify that it refers to a valid property in the DataSource setter, otherwise we'd get an exception in ResetList ().
This fixes the following failing tests: BindingSourceTest.DataMemberBeforeDataSource and BindingSourceTest.DataSourceAssignToDefaultType.

Commit licensed under MIT/X11.
2014-06-20 16:45:38 +02: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
Alex Rønne Petersen e385d1f039 Fix the build. 2014-06-20 04:17:30 +02:00
Alex Rønne Petersen 7461128a7d Silence a warning in file-mmap-posix.c. 2014-06-20 04:12:11 +02:00
Alex Rønne Petersen e437882c77 Merge pull request #1113 from akoeplinger/fix-cache-test
[System.Runtime.Caching] Fixed test that failed intermittently on slow systems
2014-06-20 03:26:29 +02:00
Alex Rønne Petersen 6d69a0674b [MWF] Disable OneIdlePerThread test.
The code that made this test work was reverted, so this test is
bound to fail randomly.
2014-06-20 03:25:01 +02:00
Alexis Christoforides 5bdff7c7e9 Added test for bug #20672 (fixed in aeab5b5902) 2014-06-19 19:49:33 -04:00
Rodrigo Kumpera 2bf354ca84 [runtime] Rework named mapping to use an unlinked file to provide correct mapping semantics.
Instead of using mono_valloc we create a temp file and unlink it. With this we can have the right
mmap semantics regarding CoW and access rights.

This does simplify the code too by completely removing the mapping kind.
2014-06-19 19:10:39 -04:00
Rodrigo Kumpera 1d2e26c1ee [runtime] Fix error handling with named memory regions. 2014-06-19 19:10:39 -04:00
Rodrigo Kumpera 8cd47821b9 [runtime] Make it possible to create views to magic zero size files such as /dev/zero. Fixes #19460 2014-06-19 19:10:39 -04:00
Rodrigo Kumpera c92dfa2731 [runtime] Define DEFFILEMODE to 0666 if not defined. 2014-06-19 19:10:38 -04:00
Alex Rønne Petersen 17d6f1cbb8 [MWF] Disable DataRemainsOnClipboard_Xamarin4959 test.
It works fine on a regular system but breaks under Xvfb.

http://monojenkins.cloudapp.net/job/Mono/230/testReport/MonoTests.System.Windows.Forms/ClipboardTest/DataRemainsOnClipboard_Xamarin4959/
2014-06-19 23:58:05 +02:00
Miguel de Icaza 8d15c21023 [WCF] Make BasicHttpBinding.AllowCookies work
This patch is from Brendan Zagaeski and fixes bug 11307

The description of the problem was:

In Mono 2.10.12, the BasicHttpBinding property no longer supports
EnableHttpCookieContainer because it is Depreciated. The replacement
is AllowCookies, but this property does not work. Upon inspection of
the source source, we find that the HttpCookieContainerBindingElement
is added in accordance with EnableHttpCookieContainer, but not
AllowCookies.

The conditional compile logic at [1] is no longer needed for
Xamarin.iOS or Xamarin.Android.
2014-06-19 17:45:15 -04:00
Alexander Köplinger 98513c62ec [System.Runtime.Caching] Fixed test that failed intermittently on slow systems
Apparently on slow systems the items with 1sec expiration time are already removed from the cache by the time the #CS3 Assert() is hit, which caused the test to fail.
Increasing the expiration time by +2sec should hopefully fix this.

Commit licensed under MIT/X11.
2014-06-19 21:54:02 +02:00
Alex Rønne Petersen 3e1d41ab5d Also disable generic-xdomain.2.exe in gsharing tests. 2014-06-19 21:52:38 +02:00
Zoltan Varga 15c725c674 [runtime] Free static bound delegate wrappers of dynamic methods. Fixes #19058. 2014-06-19 20:58:24 +02:00
Rodrigo Kumpera c5771113c2 [runtime] Don't perform double accounting of offset for named memory segments. Fixes #20591 2014-06-19 14:32:48 -04:00
Rodrigo Kumpera e41cdd1666 Merge pull request #946 from akoeplinger/fix-mono-parallel
[Mono.Parallel] Removed broken Mono.Threading.Tasks code
2014-06-19 11:46:06 -04:00
Rodrigo Kumpera 21f79f8d6e Merge pull request #1074 from esdrubal/bug18421
Changed TryPeek to handle race condition with Dequeue.
2014-06-19 11:45:17 -04:00
Marek Safar feec628026 [xbuild] Parsing conditions with property references. Fixes #20634 2014-06-19 17:28:52 +02:00
Miguel de Icaza 3ee57747e4 Revert change that introduces a new undocumented environment variable 2014-06-19 09:34:59 -04:00
Marek Safar 357e5fe0ee [xbuild] Implements property functions using constructor syntax. Fixes #12999 2014-06-19 14:59:17 +02:00
Alexis Christoforides aeab5b5902 [System.ComponentModel] BindingList.ListChanged now attempts to provide a PropertyDescriptor when possible.
BindingList subscribes to PropertyChanged events of eligible contained objects. Iff the PropertyName provided is valid,
the list event's ListChangedEventArgs will also contain a PropertyDescriptor.

This is to match MS behavior.
2014-06-18 22:11:43 -04:00
Alex Rønne Petersen f777bc37a4 Merge pull request #1109 from adbre/iss358
Override registry storage with MONO_CURRENTUSER_REGISTRY_PATH
2014-06-19 02:34:53 +02:00
Alex Rønne Petersen 83a34c40c6 [ppc] Bump instruction sizes after 51c454f6b0. 2014-06-18 21:30:30 +02:00
Jonathan Pryor b9afa88209 Merge pull request #1014 from txdv/master
Expose full epoll_ctl functionality.
2014-06-18 15:21:05 -04:00
Alex Rønne Petersen a2fa438af6 Merge pull request #1110 from tpokorra/FixImageListStreamerGeneratingValidResourcesForMSNet
Fixing ImageListStreamer generating winform resource files that work on MS.Net
2014-06-18 21:02:38 +02:00
Iain Lane 2f3d0439a2 Override registry storage with MONO_CURRENTUSER_REGISTRY_PATH
https://bugzilla.xamarin.com/show_bug.cgi?id=358
2014-06-18 21:00:44 +02:00
Alex Rønne Petersen 383d23d87a Merge pull request #1111 from akoeplinger/add-gtk-dllmap
Added dllmap for libgtk-x11 and libgdk-x11
2014-06-18 17:21:03 +02:00
Alexander Köplinger df49c2d640 Added dllmap for libgtk-x11 and libgdk-x11
Commit licensed under MIT/X11.
2014-06-18 17:18:08 +02:00
Andrius Bentkus b8d5a800f8 Expose full epoll_ctl functionality.
Now the user has access to all struct elements in EpollEvent when
using epoll_ctl. This is in particular very intersting when the
user wants to access the ptr field.

The user can use GCHandle.ToIntPtr to give the struct a GCHandle
and then handle the pointer later on when using epoll_wait.
2014-06-18 18:06:44 +03:00
Timotheus Pokorra cfa3d9898a ImageListStreamer generates winform resource files that work on Mono but fail on Microsoft.net
with exception System.InvalidOperationException: Loading of the ImageList did not succeed.
see bug https://bugzilla.xamarin.com/show_bug.cgi?id=3841 for detailed analysis
2014-06-18 16:33:31 +02:00
Alex Rønne Petersen 51c454f6b0 [ppc] Add missing sync instructions to atomic opcodes.
Note that lwarx and stwcx don't produce the necessary
load/store barrier that's needed to conform to the
`Interlocked` API.
2014-06-18 16:08:14 +02:00
Alexander Köplinger db9f761a78 Fixed another 8080 test port
I missed that one in f396d37c54.
2014-06-18 10:01:36 +02:00
Alex Rønne Petersen e761d7d521 Silence a warning in file-mmap-posix.c. 2014-06-18 02:38:52 +02:00
Alex Rønne Petersen 5780ee5fd3 Merge pull request #1108 from akoeplinger/change-test-ports
[System.ServiceModel] Changed test port from 8080 to 30158
2014-06-17 23:05:04 +02:00
Alexander Köplinger f396d37c54 [System.ServiceModel] Changed test port from 8080 to 30158
Port 8080 is widely used and resulted in address conflicts on monojenkins, so we use a different port instead.

Commit licensed under MIT/X11.
2014-06-17 23:00:42 +02:00
Zoltan Varga cc0a7a9516 [aot] Add support for overriding the alignment calculations done by the runtime during AOT. This is needed because the alignment of some types, notable i8/double can be different between the host and the target platform. 2014-06-17 20:43:55 +02:00
Alex Rønne Petersen 9f3e361cfb Disable generic-xdomain.2.exe on CI as it occasionally hangs. 2014-06-17 17:55:29 +02:00
Alex Rønne Petersen fb36574f62 Merge pull request #1106 from akoeplinger/fix-winforms-tests
[Managed.Windows.Forms] Fixed System.Resources tests that relied on DummyAssembly
2014-06-17 17:47:45 +02:00
Alex Rønne Petersen 228f23886d Merge pull request #1107 from akoeplinger/fix-numericupdown
[Managed.Windows.Forms] Fix 'minimum' default value of NumericUpDown
2014-06-17 17:46:56 +02:00
Alexander Köplinger b66e06d51c [Managed.Windows.Forms] Fix 'minimum' default value of NumericUpDown
The 'minimum' default value of NumericUpDown was set to 0.0M, which caused the ToString() to format it as "0.0" instead of "0" as it does on .NET.
A similar change was done for the 'maximum' default value already in f6c8d48a3a.

Commit licensed under MIT/X11.
2014-06-17 17:35:46 +02:00
Marek Safar d14176dd3f [mcs] Implements finally execution for await with try block exit. 2014-06-17 16:45:08 +02:00
Alexander Köplinger 8fb625e06d [Managed.Windows.Forms] Fixed System.Resources tests that relied on DummyAssembly
Several System.Resources tests rely on a DummyAssembly.dll, which was removed in 016b0b5170 (possibly by accident?).
This commit adds the assembly back.

Commit licensed under MIT/X11.
2014-06-17 13:51:20 +02:00
Atsushi Eno eeb5fe56f7 Revert "[msbuild] fix some weird local result variable initialization issue."
This reverts commit 76b08f12ef.
2014-06-17 13:59:01 +09:00
Zoltan Varga 2ddfbf51f6 Merge pull request #1103 from nathanaeljones/patch-1
Fix AddCacheDependency signature to use params
2014-06-16 23:26:28 +02:00
Zoltan Varga 62bef77ea0 [runtime] Add a workaround to file-mmap-posix.c to fix the android build. 2014-06-16 23:10:13 +02:00
Zoltan Varga 161e57021c [aot] Use g_print instead of printf in one place since the former works on android. 2014-06-16 22:25:54 +02:00
Zoltan Varga 3c2c696ad0 [arm] Fix alignment problems when AOTing from osx to arm linux. 2014-06-16 22:25:12 +02:00
Alex Rønne Petersen 959a4de741 Merge pull request #1104 from tpokorra/TarballIncludeMoreDllsInMonoLite
Tarball: include System.Security.dll and System.Configuration.dll in monolite directory
2014-06-16 21:49:08 +02:00
Timotheus Pokorra 3432138155 Tarball: include System.Security.dll and System.Configuration.dll in monolite directory
this is related to commit https://github.com/mono/mono/commit/993f4773638bcb36abf8b9660ee737d6445c5200
2014-06-16 21:11:26 +02:00
Zoltan Varga 8f4cb8ed33 [bcl] Fix the mobile build. 2014-06-16 19:06:41 +02:00
Nathanael Jones 2feb372609 Fix AddCacheDependency signature to use params
The .NET AddCacheDependency method signature is `public void AddCacheDependency(params CacheDependency[] dependencies);` Mono should mirror the signature (even if it isn't implemented) to prevent build errors. Conditional code, of course, will need to be used for an alternative mono path.
2014-06-16 18:43:28 +02:00
Alex Rønne Petersen f56aeff39a Merge pull request #1102 from tpokorra/TarballFixAvoidCDataTextReaderTests
Remove a reference to the file AvoidCDataTextReaderTests.cs so that tarballs can be built again
2014-06-16 16:11:43 +02:00
Timotheus Pokorra c419208296 Remove a reference to the file AvoidCDataTextReaderTests.cs so that tarballs can be built again.
The file was removed in https://github.com/mono/mono/commit/d8d1b0be6baf6f8881871592b040d85be790926c
2014-06-16 16:03:46 +02:00
Alex Rønne Petersen e0747e6952 Merge pull request #1101 from jariq/master
Support both unencrypted PKCS#12 and PKCS#12 encrypted with an empty pas...
2014-06-16 14:54:30 +02:00
Marek Safar 8826a3bb45 [mcs] Run new initializer await checks only in async context. Fixes #20614 2014-06-16 14:13:40 +02:00
Marek Safar 8f53ba7970 Merge pull request #1099 from jsportaro/master
Added fix for Bug 11630
2014-06-16 12:52:45 +02:00
Marek Safar 94f466897f [system.data] Parse numeric expressions using invariant culture. Fixes #20582 2014-06-16 12:07:25 +02:00
Marek Safar e579555a53 [mcs] Reachability analysis should ignore local variables declarations. Fixes #20603 2014-06-16 11:56:57 +02:00
Zoltan Varga b124f29f83 Merge pull request #1100 from BrzVlad/master
[x86] Fix initialization of stackalloc-ed memory in no pushes mode.
2014-06-15 12:34:45 +02:00
Zoltan Varga eed0a5d920 [runtime] Enable support for arm64-darwin in dolt. 2014-06-15 00:41:28 +02:00
Jaroslav Imrich d798c91b01 Support both unencrypted PKCS#12 and PKCS#12 encrypted with an empty password in X509Certificate2 constructor 2014-06-15 00:32:15 +02:00
Brezae Vlad a6df42cfa9 [x86] Align stackalloc-ed memory in no pushes mode. 2014-06-15 00:07:52 +03:00
Zoltan Varga 79e70b4692 [arm] Add an enum for gsharedvt argument marshalling conventions. 2014-06-14 22:40:16 +02:00
Brezae Vlad b152bc9f1c [x86] Fix initialization of stackalloc-ed memory in no pushes mode. 2014-06-14 00:43:12 +03:00
Larry O'Brien d8d1b0be6b Monodoc: Fix for CDATA bug (https://bugzilla.xamarin.com/show_bug.cgi?id=17850). Reverts 3f361e1a26
Removed code that stripped CDATA statements (but not blocks) from input when showing a namespace page:

The function Ecma2Html.WrapStream(TextReader,Dictionary<String,String>) very explicitly returns a new `AvoidCDataTextReader` when the system is showing a namespace. The `AvoidCDataTextReader` strips the CDATA statement, but not it's internal contents. The intent, according to AvoidCDataTextReaderTests, is to allow class summaries of this form:

"<elements><summary>Addressbook APIs.</summary><remarks /><class name=""ABAddressBook"" fullname=""MonoTouch.AddressBook.ABAddressBook"" assembly=""monotouch""><summary><![CDATA[
      Provides access to the system Address Book.]]>
    </summary></class></elements>"

But that form is not desired.

The bug arose because the input to `WrapStream` is very large (it actually includes the entire *description* for each class and member in the namespace!). If any CDATA-block contained entities such as, e.g., < or >, the resulting XML would (obviously) be ill-formed:

"<xml>This should be valid <![CDATA[<T>]]> </xml>"

would throw because the <T> would be attempted to be parsed as XML. Obviously, samples that contain generics or lambda or XAML would cause this problem.

Although an XMLException was thrown, Macdoc swallows the exception in DocTools.GetHTML(). That is why this caused a silent failure on macdoc and was visible on Webdoc.
2014-06-13 11:13:24 -10:00
Rodrigo Kumpera 66aaa61cb7 [System.Core] Add new tests for MemoryMappedFile. 2014-06-13 14:53:34 -04:00
Rodrigo Kumpera c5c1dc716e [runtime] Fix share/private flags when doing file mmap. 2014-06-13 14:35:55 -04:00
Rodrigo Kumpera 59fd337839 [runtime] Rewrite MemoryMappedFile to support named mappings. 2014-06-13 12:17:27 -04:00
Joseph Portaro 159f2dc89d Added fix for Bug 11630 2014-06-13 11:55:37 -04:00
Marek Safar 429c2c7f42 [mcs] Always store hidden catch variable when clause contains await 2014-06-13 17:39:11 +02:00
Marek Safar 9fba495639 [corlib] Set AggregateException message text in all overloads 2014-06-13 17:39:10 +02:00
Marek Safar 66a9644ee8 [mcs] Emit correct value type collection initialization when second initializer uses await 2014-06-13 17:39:10 +02:00
Marek Safar 3f6b2feebd [mcs] Keep stack populated when array initializer contains await 2014-06-13 17:39:10 +02:00
Zoltan Varga 805bcf7e82 [x86] Pop the vtype return addr from the stack in no pushes mode too. 2014-06-13 16:23:35 +02:00
Alex Rønne Petersen bd6089a84a Merge pull request #1098 from tpokorra/TarMissing_vasprintfh
tarball is missing file vasprintf.h
2014-06-13 16:21:20 +02:00
Timotheus Pokorra 5e2cd9c29f since gerror.c requires vasprintf.h, we need to add that file so that it becomes part of the tarball 2014-06-13 16:15:19 +02:00
Zoltan Varga a3f242b793 [x86] Reduce some code duplication in the x86 call opcodes. 2014-06-13 15:55:49 +02:00
Alex Rønne Petersen 93f8df65f9 Disable push-less x86 code for now.
Breaks stuff: https://wrench.mono-project.com/Wrench/ViewLane.aspx?lane_id=10&host_id=8&revision_id=68534
2014-06-13 15:32:42 +02:00
Zoltan Varga a0448cd729 Merge pull request #1097 from BrzVlad/master
[jit] Fix bug when using pushless code and reenable the feature.
2014-06-13 13:15:03 +02:00
Marek Safar 74b24b0e55 [mcs] Handle catch filter with await-ed rethrow and exception filters 2014-06-13 11:22:03 +02:00
Brezae Vlad 9ae8e72ceb [jit] Fix bug when using pushless code and reenable the feature. 2014-06-12 21:48:51 +03:00
Marek Safar a97fb68e66 [mcs] Add support for await in finally clause 2014-06-12 17:46:55 +02:00
Jeffrey Stedfast eab18c98cb [Mono.Debugger.Soft] Handle cases where the instruction list is empty 2014-06-11 18:27:15 -04:00
Zoltan Varga 254c71b060 [jit] Don't emit a write barrier when writing to the delegate->method field, its not needed. 2014-06-11 19:09:13 +02:00
Martin Baulig bad5ef8453 [Http]: Fix a potential race condition in the WebConnectionGroup's connection list.
Remove the "ConnectionState" from the connection list before closing the connection,
this should avoid ServicePoint.SendRequest() ever crashing with a NullReferenceException
due to getting a null return value from WebConnectionGroup.GetConnection().
2014-06-11 19:07:15 +02:00
Marek Safar 7347c5a195 [mcs] Check for missing dependencies of container types. Fixes #20382 2014-06-11 15:13:00 +02:00
Marek Safar 1e4fd01f6d [mcs] Resolve event expression when testing left side expression. Fixes #20493 2014-06-11 14:24:34 +02:00
Marek Safar 39a52aff4c [mcs] Inflate nested pointer containers too. 2014-06-11 12:02:33 +02:00
Marek Safar 83a5fe8f1a [mcs] Flow analysis of binary expressions not using logical operators. Fixes #20515 2014-06-11 10:09:56 +02:00
Alex Rønne Petersen 2ab02d99c4 Merge pull request #890 from xoofx/master
[Mono.Linker] Add support for <Module> with static method and pre-mark t...
2014-06-11 09:22:29 +02:00
Alexandre Mutel 121a4dd894 [Mono.Linker] Add support for using the linker with assemblies referencing WPF 2014-06-11 15:03:57 +09:00
Alexandre Mutel be589710f5 [Mono.Linker] Add support for <Module> with static method and pre-mark them if necessary 2014-06-11 15:03:47 +09:00
Rodrigo Kumpera d2f66f2d9b [sgen] Fix an infinite loop in find_previous_pointer_fragment due to remove CAS'ing the wrong value.
The fragment list has one invariant, the next pointer is tagged if the current fragment is been deleted,
which means the list head can never point to a tagged pointer.

If this invariant is broken, the code in find_previous_pointer_fragment will end up in an infinite loop.

The infinite loop happens in this simplified fragment:

try_again:
	prev = &allocator->alloc_head;
1)	cur = unmask (*prev);
	while (1) {
2)		if (*prev != cur)
			goto try_again;

So assume allocator->alloc_head points to 0x121, which is tagged.

So execution goes like this:

1) cur is set to 0x120
2) *prev (value 0x121) is different than cur (value 0x120) so retry.

The above will loop forever as the fixup code never touches allocator->alloc_head.

Now that we understand the infinite loop, let's see how the remove code can trigger it.

Use use the following notation in the event sequence:

-> a non tagged pointer
-*> a tagged pointer
first CAS: InterlockedCompareExchangePointer ((volatile gpointer*)&frag->next, mask (next, 1), next)
second CAS: InterlockedCompareExchangePointer ((volatile gpointer*)prev_ptr, next, frag)

Assuming the following initial fragment list and two threads removing two separate fragments:

fragment list; -> A -> B -> C

thread 1 removes A
thread 2 removes B

thread 2 succeed the first CAS
-> A -> B -*> C

thread 1 succeed the first CAS
-> A -*> B -*> C

thread 2 fail the second CAS because of thread 1
-> A -*> B -*> C

thread 1 succeed the second CAS
-> B -*> C

thread 2 succeed the second CAS and set prev_ptr to next,
which at this point is a tagged pointer. Leaving the fragment list like this:
-*> C

After the last CAS, we end up with alloc_head with a tagged pointer, which will cause
the infinite loop we previously explained.

The fix is to unmask the value we store in the second CAS, as the objective is to link
two live fragments and not flag the previous fragment for deletion.

The exact same bug exists in mono-linked-list-set and was fixed there.
2014-06-10 17:51:16 -04:00
Martin Baulig 7cb33a4fcc [Http]: Cosmetic, remove some dead code.
The is no reason to ever invoke the callback on the ThreadPool,
it would in fact only cause trouble.

Marek's commit db92449f was correct, I removed the commented out
code and the no longer used method.
2014-06-10 23:11:47 +02:00
Marek Safar aecf3db62b [mcs] Implement rethrow support in awaited catch clause 2014-06-10 22:05:11 +02:00
Martin Baulig 5e33f9eccf [Http]: Fix digest authentication (bug #18799).
We did not correctly parse key-value pairs without quotes in the
challenge.
2014-06-10 21:42:35 +02:00
Martin Baulig d5f7694acc [System.Net.Http]: Always add "Content-Length" in HttpClientHandler.SendAsync().
This has been reported on the forums:
http://forums.xamarin.com/discussion/17770/length-required-error-in-http-post-since-latest-release
2014-06-10 21:42:35 +02:00
Jeffrey Stedfast db0132029e [Mono.Debugger.Soft] Improved ILInterpreter to eval properties that return a primitive constant 2014-06-10 15:16:36 -04:00
Joao Matos 9aa982e166 [windows] Return early in the vectored exception handler if the thread is not managed by the runtime. 2014-06-10 20:15:10 +01:00
Martin Baulig f462bcc944 [Http]: Only recycle ServicePoints from the idle timer (fixes #19823).
Thanks a lot for Martin Potter to find and report the race condition
which was causing the problem.

ServicePointManager.RecycleServicePoints() was a left-over from the
old times when we didn't have an idle-timer based approach.
2014-06-10 19:21:32 +02:00
Jeffrey Stedfast 6759817ac2 [Mono.Debugger.Soft] minor code cleanup 2014-06-10 12:54:48 -04:00
Joao Matos d8e44abb07 Fix mono exception handler crashing on windows.
Here's the scenario that causes the crash:

Exception is fired, which invokes mono's vectored exception handler. It
is not an exception mono recognizes, so falls through to the default:
case in the exception handler. The problem is the return value has been
initialized to EXCEPTION_CONTINUE_EXECUTION. This causes SEH not to
process any other handlers, and just attempt to continue execution at
the point the exception was thrown.

The problem is much of windows internals will catch various exceptions
internally and handle them. So instead of the exception being handled,
we would just crash in the bowels of windows.

The solution is to set mono_win_chained_exception_needs_run to TRUE in
the default case - this is what the various exception handlers do if the
exception is not in JIT'd code. This causes the handler to return
EXCEPTION_CONTINUE_SEARCH, which causes SEH to search for the next
handler, and no crash is produced.

Both x86 and x64 had this bug, so I fixed it in both places.

Fix contributed by Steve Anichini.
2014-06-10 17:05:23 +01:00
Joao Matos dcc7a89be1 Changed mono_win_chained_exception_needs_run to be a JIT TLS variable.
This fixes a potential race condition that might happen if two threads try to handle an exception at the same time.
2014-06-10 17:05:14 +01:00
Atsushi Eno 93e5f42f80 [sys.xaml] fix TypeId and get broken WindowsBase tests pass. 2014-06-10 21:49:05 +09:00
Alex Rønne Petersen 975bf0a379 Attempt to sanitize the vasprintf situation in eglib.
The problem is that on some platforms we call the function
without having provided a prototype for it. This breaks when
building with `-Werror`.

Now we declare it in the private `vasprintf.h` header when
the platform doesn't have a declaration in `stdio.h`. This
should also let us remove the hack in `glib.h` for MSVC.

This may or may not break the build on some platforms; I've
tried on those that I have access to with success. Let me
know if this breaks anything.
2014-06-10 09:40:22 +02:00
Alex Rønne Petersen be483f24da Add build system plumbing for building with -Werror. 2014-06-10 09:35:01 +02:00
Alex Rønne Petersen be195eb1e6 Merge pull request #1094 from LRFalk01/master
Identities not being set in ClaimsPrincipal Ctor
2014-06-10 03:29:10 +02:00
Lucas ad354665a8 Identities not being set in ClaimsPrincipal Ctor
Class' identities member is not set in constructor ClaimsPrincipal
(IEnumerable<ClaimsIdentity> identities)
2014-06-09 21:20:35 -04:00
Alex Rønne Petersen ec0304a599 Remove unnecessary MPH_INTERNAL applied to a function definition.
This should be applied to prototypes, and it already is for
this function (in mph.h).
2014-06-10 03:15:16 +02:00
Alex Rønne Petersen 96e1ee0578 Remove the architecture conditions for using perf in the log profiler.
We now use generic atomics which work on all platforms, so there's
no reason to keep this constraint here. This allows the `perf`-backed
profiler to be used on mips, ppc, s390x, etc.
2014-06-10 01:46:32 +02:00
Alex Rønne Petersen 79d2d4c11d Revert "Disable perf support in the profiler when running on Android (for now)."
This reverts commit 8e35b7d01e.

The fallback implementation (as used on other platforms) appears to hang
the runtime. Having a maybe-working `perf`-backed sample profiler is better
than a not-working sample profiler.
2014-06-10 01:46:32 +02:00
Zoltan Varga ed2daa2a84 Revert "[x86] Reenable the no pushes code."
This reverts commit 5093efd558.

Revert this as it still breaks the build.
2014-06-09 17:37:20 +02:00
Zoltan Varga 6fffdcacef [x86] Fix the build. 2014-06-09 17:11:51 +02:00
Zoltan Varga 5093efd558 [x86] Reenable the no pushes code. 2014-06-09 16:35:39 +02:00
Atsushi Eno b8580c63d3 [sys.xaml] remove extraneous NET_2_1 and use __MOBILE__ to make it build for XA/XiOS. 2014-06-09 12:43:53 +09:00
Zoltan Varga e7bc174077 [jit] Align the stack when using the pushless code on x86. 2014-06-08 23:19:07 +02:00
Alex Rønne Petersen f0368f1014 Merge pull request #1090 from BrianDurham/patch-2
Update X11Display.cs - change "Check you DISPLAY"
2014-06-08 21:05:03 +02:00
Alex Rønne Petersen 3acadefda7 Merge pull request #1089 from BrianDurham/patch-1
Update Graphics.cs - change "Check you DISPLAY"
2014-06-08 21:04:33 +02:00
Alex Rønne Petersen 161005fd4c Merge pull request #1091 from BrianDurham/patch-3
Update XplatUIX11.cs - change "Check you DISPLAY"
2014-06-08 19:51:56 +02:00
Alex Rønne Petersen 65d967946b Merge pull request #1092 from BrianDurham/patch-4
Update XplatUIX11GTK.cs - change "Check you DISPLAY"
2014-06-08 19:51:42 +02:00
Brian Durham f5858f05f1 Update XplatUIX11GTK.cs - change "Check you DISPLAY"
Update XplatUIX11GTK.cs - change "Check you DISPLAY" text to "Check your DISPLAY"
2014-06-08 10:24:35 -05:00
Brian Durham 98d56eb303 Update XplatUIX11.cs - change "Check you DISPLAY"
Update XplatUIX11.cs - change "Check you DISPLAY" to "Check your DISPLAY"
2014-06-08 10:22:06 -05:00
Brian Durham ca7f073b7e Update X11Display.cs - change "Check you DISPLAY"
Change "Check you DISPLAY environment variable" to "Check your DISPLAY environment variable"
2014-06-08 10:18:02 -05:00
Brian Durham 039f01d6b0 Update Graphics.cs - change "Check you DISPLAY"
Update Graphics.cs - change "Check you DISPLAY environment variable" to "Check your DISPLAY environment variable"
2014-06-08 10:14:50 -05:00
Zoltan Varga 8530d2b60e [x86] Disable the no-pushes code for now, it breaks many tests. 2014-06-08 14:28:48 +02:00
Alex Rønne Petersen e6aa46a391 Apply the change in a99ebf9843 to mprof-report too. 2014-06-08 04:09:05 +02:00
Alex Rønne Petersen a99ebf9843 Fix a ton of warnings when building the log profiler with newer zlib versions. 2014-06-08 01:56:39 +02:00
Rodrigo Kumpera 416d4e10f9 Merge pull request #1088 from BrzVlad/pushless
[x86] Arguments to calls are passed via moves, instead of pushes.
2014-06-07 19:10:50 -04:00
Alex Rønne Petersen da1d328913 Silence another array subscript warning in eglib/src/sort.frag.h. 2014-06-07 22:27:22 +02:00
Alex Rønne Petersen 06a33428d2 Fix typo in bf703c4a8f. 2014-06-07 22:20:20 +02:00
Joao Matos f6b7bf735a Fixed the build on MSVC.
Local variables need to be declared at the start of the block.
2014-06-07 18:35:41 +01:00
Alex Rønne Petersen b45527f44b Add missing prototypes to supportw.c. 2014-06-07 18:03:31 +02:00
Alex Rønne Petersen f35c6a0b07 Comment an unused function in minizip. 2014-06-07 18:03:19 +02:00
Alex Rønne Petersen 93e7f8691c Fix z_alloc () signature.
Yes, really. zlib really uses a 32-bit int here...
2014-06-07 18:02:29 +02:00
Alex Rønne Petersen 58ebad8f72 Add missing prototypes to Mono.Posix C sources. 2014-06-07 18:02:14 +02:00
Alex Rønne Petersen 6db015b5e3 Move shared_area_disabled () behind ifdef. 2014-06-07 18:01:10 +02:00
Alex Rønne Petersen a96bd2f959 Wrap deadce_has_run variable in DISABLE_SSA ifdef. 2014-06-07 18:00:41 +02:00
Alex Rønne Petersen 86602698da Add g_assert_not_reached () to mono_gc_pthread_exit ().
On Android, pthread_exit () is not decorated as noreturn.
2014-06-07 17:59:49 +02:00
Alex Rønne Petersen 54de0818bf Silence unused mkstemp result warnings in jay. 2014-06-07 17:59:18 +02:00
Alex Rønne Petersen 27c58875c2 Add missing prototypes in ikvm-native. 2014-06-07 17:58:48 +02:00
Alex Rønne Petersen 1ef4b48014 Mark an unused variable as such in eglib/test/file.c. 2014-06-07 17:58:32 +02:00
Alex Rønne Petersen d6aee5a283 Disable -Warray-bounds in eglib/src/sort.frag.h!insert_list in GCC 4.6.0+. 2014-06-07 17:57:46 +02:00
Alex Rønne Petersen bf703c4a8f Disable -Wreturn-local-addr in libgc/mark_rts.c!GC_approx_sp with GCC 4.8.0+. 2014-06-07 17:56:50 +02:00
Alex Rønne Petersen 69ed93a8fa Compile libgc with -Wno-deprecated-declarations as it uses some obsolete POSIX APIs. 2014-06-07 17:56:06 +02:00
Alex Rønne Petersen 09f85a32d9 Revert unintentional change. 2014-06-07 16:52:50 +02:00
Alex Rønne Petersen 2cecaa4713 Fix the build. We've been missing this include for ages... 2014-06-07 16:38:47 +02:00
Alex Rønne Petersen c94206ef72 Bring the implementation of the 64-bit CAS fallback in line with the 32-bit one. 2014-06-07 16:18:35 +02:00
Alex Rønne Petersen 97e016c966 Mark the spin variable in atomic.c as G_GNUC_UNUSED.
It would require an `#ifdef` forest to get the conditions
under which it is used right.
2014-06-07 16:13:22 +02:00
Alex Rønne Petersen fc869fd398 Merge branch 'master' of github.com:mono/mono 2014-06-07 15:54:32 +02:00
Zoltan Varga eeef746ffc Revert "Fix a warning in atomic.c."
This reverts commit 1fdc8789a7.

This breaks the ios build:

../../../../../mono/mono/utils/atomic.c: In function ‘InterlockedCompareExchange64’:
../../../../../mono/mono/utils/atomic.c:572: error: ‘spin’ undeclared (first use in this function)
../../../../../mono/mono/utils/atomic.c:572: error: (Each undeclared identifier is reported only once
../../../../../mono/mono/utils/atomic.c:572: error: for each function it appears in.)
2014-06-07 15:21:02 +02:00
Zoltan Varga 4149ba44cf [arm] Fix OP_ATOMIC_CAS_I4. 2014-06-07 01:22:12 +02:00
Brezae Vlad bb3ccfb141 [x86] Arguments to calls are passed via moves, instead of pushes.
I release these changes under the MIT license.
2014-06-07 00:25:30 +03:00
Alex Rønne Petersen 8e35b7d01e Disable perf support in the profiler when running on Android (for now).
We need to assess the situation before we enable this everywhere. Apparently
some older devices have trouble with `perf`.
2014-06-06 23:02:33 +02:00
Alex Rønne Petersen 1fdc8789a7 Fix a warning in atomic.c. 2014-06-06 22:58:20 +02:00
Alex Rønne Petersen 8fc059bea3 Remove a #warning in security.c which gets triggered on OS X. 2014-06-06 22:58:07 +02:00
Ludovic Henry a587e4641a [counters] Add counters documentation to man page 2014-06-06 16:00:03 -04:00
Alex Rønne Petersen 11e01299d9 Fix printf formatting warnings in mono-counters.c. 2014-06-06 15:20:52 +02:00
Alex Rønne Petersen 56819afa82 Use G_GNUC_UNUSED instead of commenting out variable declarations.
The previous approach resulted in mixed decls/stmts warnings.
2014-06-06 15:19:20 +02:00
Alex Rønne Petersen 3b3f4bd673 Fix a ton of printf formatting warnings in decode.c. 2014-06-06 15:17:19 +02:00
Alex Rønne Petersen dd82497ce2 Silence some warnings in decode.c. 2014-06-06 14:52:28 +02:00
Alex Rønne Petersen 0b168543d7 Fix volatile pointer casts in proflog.c. 2014-06-06 14:52:09 +02:00
Alex Rønne Petersen bfaa08475e Silence a bunch of unused result warnings in proflog.c. 2014-06-06 14:51:44 +02:00
Alex Rønne Petersen 35a03dcec2 Fix a bunch of warnings caused by unused functions. 2014-06-06 14:41:18 +02:00
Alex Rønne Petersen 1aecffad3f Add suggested parentheses to RHS of ^ operator. 2014-06-06 14:40:56 +02:00
Alex Rønne Petersen 6135b2695e Fix formatting specifiers for some size_t arguments. 2014-06-06 14:40:24 +02:00
Zoltan Varga 0b58028883 [runtime] Avoid joining attached threads. Fixes #19343. 2014-06-06 03:00:41 +02:00
Martin Baulig e6ce33bc7d [Http]: Read version from "HTTP CONNECT" response.
When using "HTTP CONNECT" to create a tunnel to a proxy server,
check the proxy server's response for the HTTP Version and close
the connection if it's HTTP/1.0.
2014-06-05 21:31:31 +02:00
Martin Baulig 5428bdfb71 [Http]: Fix the loop in WebConnection.ReadHeaders().
We need to reset `gotStatus' each time we enter the outer loop or we
would attempt to interpret the status line as a header.
2014-06-05 21:31:31 +02:00
Zoltan Varga f8afadcdf0 Merge pull request #1084 from tritao/msvc-warnings
MSVC warning fixes
2014-06-05 20:57:50 +02:00
Zoltan Varga 4385e25d7a [runtime] Fix support for custom marshallers defined in other assemblies. Fixes #20020. 2014-06-05 20:48:09 +02:00
Joao Matos ea326aa924 Fixed monodis MSVC build.
We need to include "mono/utils/mono-compiler.h" to get the proper isinf/isnan declaration.
2014-06-05 19:46:20 +01:00
Marek Safar 97fb37a95b [mcs] Return type inference of async anonymous methods 2014-06-05 19:36:17 +02:00
Marek Safar 876126e680 [mcs] Check for await expression inside new delegate statement 2014-06-05 19:36:17 +02:00
Zoltan Varga 2aa7af5863 [runtime] Fix a jit assertion on a class which contains an empty struct as a static field. Fixes #20349. 2014-06-05 19:05:50 +02:00
Joao Matos 92f13d1988 Regenerate keyboards.resx resource file.
The existing one is reported as malformed XML by csc.
2014-06-05 16:20:56 +01:00
Joao Matos c353c84db3 Fixed warning in MSVC: 'unreferenced local variable'. 2014-06-05 15:40:37 +01:00
Joao Matos 623e43dcd6 Fixed warning in MSVC: 'different types for formal and actual parameter'. 2014-06-05 15:39:40 +01:00
Joao Matos 13e47bf9cb Fixed warning in MSVC: 'void' function returning a value. 2014-06-05 15:37:46 +01:00
Joao Matos 12926a22ac Fixed warnings in MSVC: 'unreferenced local variable'. 2014-06-05 15:35:39 +01:00
Joao Matos 0338bfae3f Removed an unused variable from the code, fixes a warning in MSVC. 2014-06-05 15:34:00 +01:00
Joao Matos cfea841bb4 Fixed warning in MSVC: 'unreferenced local variable'. 2014-06-05 15:31:28 +01:00
Joao Matos 47324cca65 Fixed warning in MSVC: 'unreferenced local variable'. 2014-06-05 15:29:55 +01:00
Joao Matos f7cc6db9c3 Fixed warning in MSVC: 'different types for formal and actual parameter'. 2014-06-05 15:28:33 +01:00
Joao Matos 8c940e6459 Fixed warning in MSVC: 'getpid' undefined; assuming extern returning int. 2014-06-05 15:27:45 +01:00
Joao Matos 4d4332ce91 Fixed unreferenced local variable warning in MSVC. 2014-06-05 15:25:13 +01:00
Joao Matos c4dfe62e05 Fixed MSVC warning about unreferenced local variable. 2014-06-05 15:21:05 +01:00
Joao Matos 08ac4efcf1 Fixed MSVC warning about different types for formal and actual parameter. 2014-06-05 15:20:06 +01:00
Joao Matos d8164bb3fc Fixed unreferenced variables/label warnings in MSVC. 2014-06-05 15:15:01 +01:00
Joao Matos fd0659abd4 Fixed unsigned/signed mismatch warning. 2014-06-05 15:12:12 +01:00
Joao Matos 770c5536e9 Fixed warning in MSVC by prefixing the macros, MEM_FREE is already defined in winnt.h. 2014-06-05 15:09:01 +01:00
Zoltan Varga 252ea94fce Merge pull request #1083 from christianhuening/NetworkInterfaceFix
- ADDED: Support to read out Interface flags on OS X
2014-06-05 15:05:42 +02:00
Christian Hüning 5e43e5d6db - ADDED: Support to read out Interface flags on OS X
- ADDED: Implemented NetworkInterface property "OperationalStatus" to be UP, in case the IFF_UP flag is set
- ADDED: Implemented NetworkInterface property "SupportsMulticast" to be true, in case the IFF_MULTICAST flag is set

This change is released under the MIT license.
2014-06-05 14:09:11 +02:00
Atsushi Eno 76b08f12ef [msbuild] fix some weird local result variable initialization issue.
I cannot explain why, but this affects building solution that has more than
one projects for MS.Build.dll. <MSBuild/> task returns false for successful
builds without this change.
Most likely codegen or runtime issue, but a bit too high level to drill down.
2014-06-05 13:11:45 +09:00
Atsushi Eno 939fa58ae9 [MS.Build] disable failing test.
It somehow passes on my dev. environment so I cannot reproduce...
2014-06-05 13:11:44 +09:00
Atsushi Eno 5ed465d94b [MS.Build] metadata is also replaced its windows path separators. 2014-06-05 13:11:43 +09:00
Zoltan Varga 9932336e7b [jit] Avoid licm for volatile variables, ssa ignores them so we can't detect whenever they are loop invariant by looking at phi nodes. 2014-06-05 01:56:28 +02:00
Joao Matos a2c3c36768 Fixed unreachable methods in mono-thread-windows to use g_assert_not_reached.
This fixes a couple warnings.
2014-06-04 21:10:03 +01:00
Joao Matos facf8c8ad9 Modified g_assert_not_reached to use g_unreachable. 2014-06-04 21:09:54 +01:00
Joao Matos 7d93575e58 Added g_unreachable to explicitly notify the compiler of unreachable code. 2014-06-04 21:09:45 +01:00
Rodrigo Kumpera 956ec8a589 [sgen] Fix logging due to changes in a lot of size types. 2014-06-04 14:36:07 -04:00
Zoltan Varga 3f977bc61d [runtime] Add another test for passing many small arguments. 2014-06-04 20:33:14 +02:00
Rodrigo Kumpera 9c1bd5b6ee [sgen] Fix clang compilation. 2014-06-04 14:30:29 -04:00
Rodrigo Kumpera c68e59600e [sgen] Fix a few warnings related to lossy conversion of size_t to int on 64bits. 2014-06-04 13:34:50 -04:00
Rodrigo Kumpera 94784f4342 [sgen] Fix nursery size calculation and the managed write barrier to be 64bits clean. 2014-06-04 13:34:49 -04:00
Rodrigo Kumpera 222eea0a55 [sgen] Fix the object size functions to be 64bits clean. 2014-06-04 13:34:48 -04:00
Rodrigo Kumpera 429f9ca6db [sgen] Ensure the cardtable code is 64bits clean. 2014-06-04 13:34:47 -04:00
Rodrigo Kumpera 137d0578d2 [sgen] Use size_t for all heap limits. 2014-06-04 13:34:46 -04:00
Rodrigo Kumpera 4d958ad0a0 [sgen] Fix size warnings in the descriptor code. 2014-06-04 13:34:45 -04:00
Rodrigo Kumpera 6c268d316c [sgen] Silence warnings when big arrays are not in use on 64bits. 2014-06-04 13:34:44 -04:00
Rodrigo Kumpera f50822f39c [sgen] Make degrated_mode a size_t. 2014-06-04 13:34:43 -04:00
Rodrigo Kumpera 238f52088b [sgen] Make los usage of size_t cosnsitent. 2014-06-04 13:34:42 -04:00
Rodrigo Kumpera 828d4c9e60 [sgen] Use size_t consistently in the major collector for object sizes and number of memory blocks. 2014-06-04 13:34:40 -04:00
Rodrigo Kumpera a066f0d94b [sgen] Use size_t consistently in the nursery code. 2014-06-04 13:34:40 -04:00
Rodrigo Kumpera ba95eaba43 [sgen] Move the pinning code to use size_t internally. This makes this code 64bits clean. 2014-06-04 13:34:38 -04:00
Rodrigo Kumpera a5593126ad [sgen] Fix small localized warnings. 2014-06-04 13:34:37 -04:00
Rodrigo Kumpera 955c2e1010 [sgen] Fix win64 issues with longs and inline assembly. 2014-06-04 13:34:36 -04:00
Rodrigo Kumpera 16fe0d24af [runtime] Fix a bunch of warnings in threads.c related to int64 -> int32 lossy casts. 2014-06-04 13:34:35 -04:00
Rodrigo Kumpera c670b35edc [verifier] Silence a size mismatch warning in the verifier. 2014-06-04 13:34:34 -04:00
Rodrigo Kumpera 00643150c5 [runtime] Replace gulong with size_t to fix counter sizes in win64. 2014-06-04 13:34:33 -04:00
Rodrigo Kumpera 1505c43d70 [win64] Windows64 MSVC compiler dropped support for inline assembly. Move that code into a .asm file. 2014-06-04 13:34:32 -04:00
Rodrigo Kumpera d248c1516b [VS] Fix the solutions to work with win64. Update the file list to include some new sgen files. 2014-06-04 13:34:31 -04:00
Rodrigo Kumpera c9ef61d47a [runtime] Fix warnings in mono-threads. 2014-06-04 13:34:30 -04:00
Rodrigo Kumpera d1882a4dc3 [runtime] Replace gulong with size_t so it works on win64. 2014-06-04 13:34:29 -04:00
Rodrigo Kumpera 3fd79bd70e fix win thread size calc. 2014-06-04 13:34:28 -04:00
Marek Safar f7834aa3cf [mcs] Revert unwanted change from 9e5d5e5c90 2014-06-04 19:06:59 +02:00
Marek Safar 22ca1862ee Fixes build 2014-06-04 19:02:40 +02:00
Marek Safar 9e5d5e5c90 [mcs] Better error message for attribute value used for unsupported parameter type 2014-06-04 19:02:40 +02:00
Marek Safar d82542fb00 [mcs] Emit result type conversion for null coalescing operator on nullable type 2014-06-04 19:02:40 +02:00
Neale Ferguson 5348a0daca Correct op_seqpoint length 2014-06-04 10:50:03 -04:00
Neale Ferguson a2920353b6 Fix s390x soft debug 2014-06-04 10:48:43 -04:00
Neale Ferguson 4dfae5ba82 Architectural level set to z10 instruction set 2014-06-04 10:48:43 -04:00
Marek Safar 4f5ddeea8a [mcs] Add more checks to dynamic logical operations when lhs is not of dynamic type 2014-06-04 14:41:24 +02:00
Marek Safar ca13dbf1e1 [mcs] Don't wrap enum constants during folding when result is reduced 2014-06-04 14:41:24 +02:00
Marek Safar eb0edaa05e Merge pull request #1082 from esdrubal/bug19287
Improved JavaScriptSerializer.ConvertToType Nullable handling. Fixes #19287.
2014-06-04 13:02:04 +02:00
marcos henrich e28d8783c5 Improved JavaScriptSerializer.ConvertToType Nullable handling. Fixes #19287. ConvertToType was returning null even when the object was not a string. When the target type is Nullable, ConvertToType returns null if the object is an empty string, if the object is not a string and the target type is obtainable from a string then the object is converted to a string and the string to the target type. 2014-06-04 11:20:05 +01:00
marcos henrich 5e76deaf72 Test JavaScriptSerializer.Deserialize with nullable enums. Covers #19287. 2014-06-04 11:17:35 +01:00
Marek Safar 92e321f26f [mcs] null coalescing operator cannot reduce constants 2014-06-04 11:25:24 +02:00
Marek Safar 63b64977bc [msbuild] Implemented instance members on static property evaluation 2014-06-04 11:25:23 +02:00
Alex Rønne Petersen a0064f9d5a [System] Fix WebClientTest build in net_2_0.
CancellationTokenSource is a 4.0 thing.
2014-06-03 23:33:30 +02:00
Marek Safar 0828b8e574 [System.ServiceModel.Security] Exclude security forwarders from mobile builds 2014-06-03 22:29:51 +02:00
Alex Rønne Petersen 80c4c54dd7 Merge pull request #1079 from esdrubal/webclient_cancel
UploadStringAsync cancel
2014-06-03 20:27:58 +02:00
Zoltan Varga 1feb13fe25 [runtime] Add an EXTRA_DISABLED_TESTS make variable to disable tests on the command line. 2014-06-03 20:19:33 +02:00
Zoltan Varga 5006b465ce [bcl] Disable a test added by 3cf55e6016, it depends on precise gc behaviour. 2014-06-03 19:31:09 +02:00
marcos henrich e2e64fada5 Changed UploadStringAsync to handle UploadString encapsulated exceptions.
UploadString call UploadData that encapsulates all exceptions in a WebException. ThreadInterruptedException were encapsulated into a WebException, so UploadStringAsync now uses e.InnerException is ThreadInterruptedException instead of trying to catch it.
2014-06-03 16:23:22 +01:00
Marek Safar 77d18f7661 [mcs] Update new error codes 2014-06-03 16:53:32 +02:00
Zoltan Varga 5d0df9e2c0 [runtime] Applied patch from Kyle Edwards <[email protected]>. Fix isinf () check with clang. Fixes #20244. 2014-06-03 16:07:51 +02:00
Marek Safar 4e87c47d54 [corlib] Add CreateTypeInfo method 2014-06-03 11:56:47 +02:00
Marek Safar 6884bcd6b7 [mcs] Better error reporting for incorrect async lambdas 2014-06-03 11:32:02 +02:00
Alex Rønne Petersen 856ac29f9b Merge pull request #1080 from chillitom/patch-1
Add missing definitions to ClaimTypes
2014-06-03 00:42:57 +02:00
Tom Rathbone c1a7602394 Add new missing ClaimTypes entries
Added 2008 and 2009 definitions and fixed Email definition
2014-06-02 23:31:44 +01:00
marcos henrich 0b1ea4edc9 Test WebClient asynchronous uploads cancellation.
Tests that UploadStringAsync triggers UploadStringCompleted with Cancelled == true.
Tests that UploadDataAsync triggers UploadDataCompleted with Cancelled == true.
Tests that UploadValuesAsync triggers UploadValuesCompleted with Cancelled == true.
Tests that UploadFileAsync triggers UploadFileCompleted with Cancelled == true.
2014-06-02 19:04:43 +01:00
Zoltan Varga 03e5354c32 [llvm] Fix a native types problem. 2014-06-02 20:02:15 +02:00
Zoltan Varga 227ae7a873 Merge pull request #1070 from tpokorra/FixTarball
Fix tarball for master
2014-06-02 19:51:34 +02:00
Atsushi Eno 9494158a3d [xbuild/msbuild] fix previous ItemGroup definition (should be in <ItemGroup>). 2014-06-03 01:19:14 +09:00
Marek Safar 22dc82012b [mcs] Remove wrong comment 2014-06-02 17:19:51 +02:00
Marek Safar bd13be55c2 [mcs] Add more warnings for caller attributes 2014-06-02 17:13:50 +02:00
Atsushi Eno 1abe0a39b9 [xbuild/msbuild] fix build: fix Exists() argument. 2014-06-02 22:40:19 +09:00
Marek Safar 4681266d9d [mcs] Add support for await in catch clause 2014-06-02 14:53:12 +02:00
Marek Safar ed584e7751 Fixes build 2014-06-02 13:15:22 +02:00
Marek Safar 243f654837 [mcs] Extend possible unintended reference comparison check 2014-06-02 13:05:19 +02:00
Atsushi Eno 992fd970eb [msbuild/xbuild] use ToolLocationHelper.GetPathToStandardLibraries() to get corlib path, for new build engine.
This is enabled only with Microsoft.Build.dll because property function
support is not fully implemented in MS.Build.Engine.dll and simply fails.

Since the targets files are shared between xbuild and msbuild, I added
some well-known property for msbuild and used it in the targets file.
2014-06-02 19:28:21 +09:00
Atsushi Eno 1b41fd7635 [MS.Build] add MS.Build.dll-specific well-known property, to differentiate from MS.Build.Engine. 2014-06-02 19:28:20 +09:00
Atsushi Eno 5265579628 [xbuild] fix 4.0-only test condition. 2014-06-02 19:28:19 +09:00
Atsushi Eno 001edf133e [msbuild] build the projects via MSBuild task with appropriate configuration, not the entire projects in the solution. 2014-06-02 18:01:14 +09:00
Atsushi Eno 8498e0dbcc [MS.Build] ProjectOnErrorInstance should not cause build failure. 2014-06-02 17:59:30 +09:00
Atsushi Eno c29ae4c3e1 [MS.Build] added test for ToolLocationHelper.GetPathToStandardLibraries() to add target item.
It should be used in Microsoft.CSharp.targets to pass the path to mscorlib.dll
but it's not working yet, so I'm making it to work step by step.
2014-06-02 17:59:29 +09:00
Atsushi Eno 756f3740c2 [MS.Build] when evaluated as object, do not add extra quotes.
When the object is passed as argument to property function, it gets extra
" or ' and could result in unexpected value.
2014-06-02 17:59:28 +09:00
Atsushi Eno 867c2e5f31 [xbuild] ToolLocationHelper.GetPathToStandardLibraries() skips "" too.
Test is added too, but since it requires some environment setup, I didn't
enable it so far.
2014-06-02 17:59:27 +09:00
Atsushi Eno eb898301e5 [MS.Build] fix some issues around quoted string handling.
Since the parser didn't really detect those quotation chars unless they are
top of the next tokeniation, it was always starting from wrong position.
2014-06-02 17:59:26 +09:00
Atsushi Eno 5a23a8263c [MS.Build] add function call releated tests. 2014-06-02 17:58:54 +09:00
Atsushi Eno 57370802bc [MS.Build] '\\' is also escaped syntax, so parse it carefully too. 2014-06-02 17:58:53 +09:00
Atsushi Eno c0cb2bee54 [MS.Build] fix function call expression parsing wrt nested refs: $(X('$(Y)','$(Z)'))
Nested references inside quoted strings are not parsed correctly.
To resolve this issue, parse quoted expressions in more complicated way.
2014-06-02 17:58:52 +09:00
Atsushi Eno 331215cfb6 [ms.build] make sure that we don't skip any other kind of child under target element. 2014-06-02 17:58:51 +09:00
Atsushi Eno 95405ddfdf [MS.Build] simplify IBuildEngine.Build() implementation, and build the argument project, not the project that is being built by the BuildManager.
That was wrong recursion.
2014-06-02 17:58:51 +09:00
Atsushi Eno d86c100d20 [MS.Build] make env. properties are read only, and show initial properties in different manner.
Now it's easier to see project properties and other properties.
2014-06-02 17:58:50 +09:00
Atsushi Eno 30414940d2 [MS.Build] revise previous fix; only Items are in reverse order.
The previous change regressed at order of property evaluation. Now this fix
does not regress as well as F# project still builds.
2014-06-02 17:58:49 +09:00
Atsushi Eno f2d143e6c3 [MS.Build] ProjectInstance needs ChildrenReversed to evaluate items.
This behavioral difference between ProjectRootElement, Project and
ProjectInstance was discovered while trying to get F# project working
(where item order significantly matters).
2014-06-02 17:58:48 +09:00
Atsushi Eno ce1d55ff60 [MS.Build] load ImportGroup in root. 2014-06-02 17:58:47 +09:00
Atsushi Eno 0ef2316adb [ms.build] several fixes in BuildEngine4.
- InitialTargets also need to be executed.
- toolsVersion must be filled.
- HostServices object is also passed from the parent build.
2014-06-02 17:58:46 +09:00
Atsushi Eno 029044a956 [ms.build] pass DefaultToolsVersion from ProjectInstance to build request data. 2014-06-02 17:58:46 +09:00
marcos henrich 6a6631d883 Removed DeflateStream.UnmanagedRead Read loop. Fixes #19313.
If the base_stream was a NetworkStream UnmanagedRead loop would call base_stream.Read a second time and block until one byte was available to return. Without the loop UnmanagedRead will only read the base_stream once.
2014-06-02 08:22:33 +01:00
marcos henrich 19f48e7920 Test that DeflateStream.Read does read an empty stream. Covers #19313. 2014-06-02 08:21:08 +01:00
Marek Safar ef7d65f093 Merge pull request #1078 from LRFalk01/master
Null Exception in System.Security.Claims
2014-06-02 08:42:50 +02:00
Lucas 203320edc9 Null Exception in System.Security.Claims
This fixed a runtime exception when trying to get a ClaimsPrincipal from an IIdentity.
Noticed this work working with aspnet Identity in a Web Api 2 controller.
Exception fired when running User.Identity.IsAuthenticated.

Exception detail:
http://falk.pw:7777/tocehuhemo.xml
2014-06-01 18:21:11 -04:00
Alex Rønne Petersen 1eb8ba78f4 Merge pull request #1071 from bl8/cairo-additions
Cairo API additions in Context class
2014-06-01 21:52:18 +02:00
Alex Rønne Petersen 7474d008f1 Merge pull request #1075 from Meai1/patch-1
Update README.md
2014-06-01 21:51:14 +02:00
Alex Rønne Petersen a810af4524 Merge pull request #1077 from sethjackson/null-gc-sgen
Allow building with null-gc and sgen.
2014-06-01 21:50:47 +02:00
Alex Rønne Petersen e5e7fbaa6e Merge pull request #1076 from sethjackson/null-gc-msg
Print the correct GC type if compiling using --with-gc=none.
2014-06-01 21:48:30 +02:00
Seth Jackson 7fee3f491b Allow building with null-gc and sgen.
Previously if --with-gc=none --with-sgen=yes was specified the sgen runtime
would include the null GC and the sgen GC which would confuse the linker.

This change released uner the MIT license.
2014-06-01 11:08:32 -04:00
Seth Jackson 5511ba6d61 Print the correct GC type if compiling using --with-gc=none.
This change released under the MIT license.
2014-06-01 10:46:56 -04:00
Meai1 91d14d4d5a Update README.md 2014-05-31 20:25:33 +02:00
Miguel de Icaza a64dbc3e94 MemoryMappedFile fixes
This patch includes a few fixes:

	* CreateNew will actually create a memory map file, the previous logic
	  in MemoryMapImpl.Open was wrong, and would fail if the file did not
	  exist.   We now cope with this (bug #20052 was caused by this).

 	* Some exceptions were wrong, so this patch updates the
	  exceptions being thrown to be the right ones

	* On Mobile, we inverted the logic to ensure that capacity must be
	  bigger or equal than the file size (which is what the API needs to do),
	  previously it performed the opposite test.

Added tests that match the behavior on .NET for this.
2014-05-31 12:53:11 -04:00
Zoltan Varga 5f55a5c6a5 Merge pull request #1073 from DavidKarlas/logging
[Mono.Debugger.Soft] Using environment variable MONO_SDB_LOG as logfile path
2014-05-31 17:11:10 +02:00
Meai1 3b13098006 Update README.md
Add info on parallel installations which is going to be the case for 99% of people trying to compile and use mono from source.
2014-05-31 12:36:50 +02:00
Zoltan Varga 45362dc90b [sdb] Add a lower level lock and use it in place of the loader lock in some places. 2014-05-31 01:41:45 +02:00
marcos henrich 4449269d8f Changed TryPeek to handle race condition with Dequeue.
Dequeue sets the head.Value to its default. When TryPeek is interrupted in the process of retrieving the value some times Dequeue sets the value to its default. TryPeek now checks the head has not been changed before returning the value.
2014-05-30 20:31:47 +01:00
marcos henrich 02aacdb39e Added stress test to ConcurrentQueue.TryPeek.
The test checks that in some race condition the queue does not return null.
2014-05-30 20:22:21 +01:00
Jérémie Laval 610d1e7aaf Merge pull request #1068 from esdrubal/bug18421
Changed ConcurrentQueue to remove last ref/value. Fixes 18421
2014-05-30 14:50:35 -04:00
David Karlaš 610a5d2c08 [Mono.Debugger.Soft] Using environment variable MONO_SDB_LOG as logfile path 2014-05-30 20:10:54 +02:00
Rolf Bjarne Kvinge 103fd26cbb Merge pull request #1072 from esdrubal/bug19862
FileInfo members that rely on AccessControl are now inside a conditional block !MOBILE
2014-05-30 17:59:52 +02:00
marcos henrich b124b68759 FileInfo members that rely on System.Security.AccessControl are now inside a conditional block !MOBILE 2014-05-30 16:55:52 +01:00
Bertrand Lorentz 014d517bfb Mono.Cairo: Add Context.SetSourceColor(Color) convenience method
The Color property was obsoleted, but the suggested replacement
SetSourceRGBA has 4 double parameters, which can be unconvenient.

Add a SetSourceColor that takes a Cairo.Color parameter, make the Color
property use it, and update the message on the Obsolete attribute.
2014-05-30 17:11:55 +02:00
Bertrand Lorentz acc644b7a5 Mono.Cairo: Add Context.HasCurrentPoint property
The cairo_has_current_point function was added in cairo 1.6.
2014-05-30 17:10:28 +02:00
Bertrand Lorentz 382ed03051 Mono.Cairo: Add Context.InClip method
The cairo_in_clip function was added in cairo 1.10.
2014-05-30 17:05:04 +02:00
Rolf Bjarne Kvinge a9b8a73f68 [System.Xml] Use profile-specific file names for generated files.
Otherwise parallel builds will break randomly.
2014-05-30 16:57:54 +02:00
Marek Safar 090895472a [mcs] Add lang version 2014-05-30 15:13:19 +02:00
Timotheus Pokorra 399ba6758b make sure that the subdirectories of mcs/class/Facades are included in the tarball
to avoid errors like:
MCS     [net_4_5] System.Xml.Serialization.dll
/bin/sh: line 4: cd: System.Collections.Concurrent: No such file or directory
2014-05-30 15:04:39 +02:00
Timotheus Pokorra 993f477363 add files System.Configuration.dll and System.Security.dll to monolite directory in tarball
to avoid: error CS0006: Metadata file `System.Security.dll' could not be found
2014-05-30 15:01:48 +02:00
Marek Safar 8f5e512264 Merge pull request #1069 from esdrubal/bug16990
Changed ConcurrentDictionary.Contains(KeyValuePair) to also compare value. Fixes #16990.
2014-05-30 13:43:02 +02:00
marcos henrich db71dba1b7 Changed ConcurrentDictionary.Contains(KeyValuePair<TKey, TValue>) to also compare value. Fixes #16990. 2014-05-30 11:33:02 +01:00
marcos henrich ff441b11d3 Test ConcurrentDictionary.Contains(KeyValuePair<TKey, TValue>). Covers #16990. 2014-05-30 11:22:01 +01:00
Rodrigo Kumpera 2eaf6e71b3 [boehm] Implement the finalization extension API. 2014-05-29 21:52:29 -04:00
Rodrigo Kumpera a153eed835 [gc] Add finalizer API, implemented only on sgen.
The new finalizer API allows an embedder to be notified during a collector
when an object is queued for finalization.

This is a VERY low level interface, as this is called with the world stopped, so the
code MUST be async safe. If you don't precisely know what that means, don't use it.
2014-05-29 21:52:29 -04:00
Zoltan Varga 42de311ee3 [jit] Applied patch from Vladimir Kargov <[email protected]>. Fix a local register allocation problem involving global registers and x86 register constraints. 2014-05-30 02:57:48 +02:00
Alexis Christoforides 4b4a29f9c1 Bump 'master' branch version. 2014-05-29 18:12:35 -04:00
Sebastien Pouliot 822cbde2e2 [mobile] Add support for Environment.SetEnvironmentVariable in the mobile profile (e.g. iOS) 2014-05-29 15:29:52 -04:00
Zoltan Varga 0461967838 [sdb] Avoid clearning event requests if they reference an assembly which is unloaded. Instead, remove the assembly reference from the event request so it stays active. Fixes #19924. 2014-05-29 21:08:32 +02:00
marcos henrich 7c52a7bf5f Overwrites dequeued ref/value with default. Fixes 18421.
ConcurrentQueue was keeping the last dequeued ref/value.
2014-05-29 17:53:32 +01:00
marcos henrich 3cf55e6016 Test that ConcurrentQueue does not keep old references. Covers 18421. 2014-05-29 17:42:10 +01:00
Marek Safar adcc7740c8 [verifier] Set correctly stack type based on constrained type 2014-05-29 17:54:39 +02:00
Marek Safar fe911348c6 [mcs] If the overriding property is sealed, then the overridden accessors cannot be inaccessible 2014-05-29 14:32:27 +02:00
Marek Safar 8bed2a7525 Fixes build with newer mcs 2014-05-29 14:18:34 +02:00
Marek Safar 6a40d676aa [mcs] Use constrained prefix for enum calls too 2014-05-29 12:52:09 +02:00
Marek Safar c9042f1ed0 [verifier] Fix constrained type unwrap for enum types. Fixes #18371 2014-05-29 12:03:14 +02:00
Marek Safar db2d59eb4d Add System.ServiceModel.Security assembly. Fixes #20108 2014-05-29 09:50:44 +02:00
Zoltan Varga d4014f16df Merge pull request #1067 from esdrubal/bug19862
Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862.
2014-05-29 02:01:34 +02:00
Zoltan Varga 11098d2ba9 [amd64] Simplify mono_arch_handle_altstack_exception () by passing a MonoContext on the stack instead of an os specific sigctx structure which required special handling and broke when _XOPEN_SOURCE was defined. 2014-05-29 01:07:51 +02:00
Jeffrey Stedfast ae8cec1f33 [Mono.Debugger.Soft] minor code cleanup 2014-05-28 14:14:48 -04:00
Jeffrey Stedfast 286e99ace3 Merge pull request #1048 from DavidKarlas/cacheThreadsAndBulkFetch
[Mono.Debugger.Soft] Caching threads and bulk fetching StackFrames
2014-05-28 13:59:27 -04:00
marcos henrich 77b1aacb9d Removed NET_2_1 conditional blocks from FileInfo. Fixes #19862. 2014-05-28 18:24:16 +01:00
Marek Safar a9cf06d9fb [mcs] Fix betterness logic for default vs params parameters. Fixes #19754 2014-05-28 17:59:47 +02:00
Marek Safar a74c354454 Tests update 2014-05-28 16:35:01 +02:00
Sebastien Pouliot 1355ca90df [System] Ensure pinvoke into OXS/iOS CFNetwork framework (for proxy support) are 64bits safe 2014-05-28 10:33:57 -04:00
Marek Safar fad2723818 [mcs] Flow analysis of binary expressions not using logical operators. Fixes #20086 2014-05-28 16:24:37 +02:00
Sebastien Pouliot 789e27a9bf [System] Ensure pinvoke into OXS/iOS Security framework are 64bits safe 2014-05-28 09:49:03 -04:00
Sebastien Pouliot 93076a9c75 [corlib][ios] Fix 'write' pinvoke declaration to be 64bits safe 2014-05-28 09:06:44 -04:00
David Karlaš 8a4a61c13c Changed API for fetching StackFrames in bulk on multiple threads ThreadMirror.FetchFrames instead of automatically on VirtualMachine.GetThreads 2014-05-28 12:58:38 +02:00
Marek Safar edbadc8241 [mcs] Emit unmanaged version info from AssemblyFileVersion. Fixes #20057 2014-05-28 11:00:54 +02:00
Zoltan Varga 5ed69a0f8a [runtime] Call mono_threads_join_threads () to prevent running out of threads when the finalizer threads becomes blocked/backlogged. 2014-05-28 00:09:47 +02:00
Zoltan Varga 5df3fd4797 [llvm] Fix the loadable llvm build. 2014-05-27 22:36:51 +02:00
Rodrigo Kumpera eea7a21324 [runtime] Add a test for the type loading changes. 2014-05-27 15:42:05 -04:00
Rodrigo Kumpera 639e3b5b21 [runtime] Ensure reflection-based assembly load has a basedir set.
When loading assemblies, we must ensure that a basedir is provided otherwise
things like custom attributes and Type.GetType won't be able to load sibling
assemblies when basedir is not the same of the domain.
2014-05-27 15:42:05 -04:00
Miguel de Icaza d6c6b28516 [build] Address the System.Configuration test problem
The compiler seems to ignore reference assemblies with a full path when the
-lib: directive is passed, so things like:

      -lib:FOO -r:BAR/bar.dll

Would resolve bar.dll to FOO/bar.dll, instead of BAR/bar.dll.

This is a problem with the test suite as it needs to reference the
final build of System.Configuration from $(the_libdir_base) and not
the intermediate step.

To work around this issue, we introduce "test_remove" variable that is
a piece of text that will be removed from the TEST_COMPILE variable
when this is evaluated.

This means that it gets CSCOMPILE and then it removes the bits that we
are not interested in.
2014-05-27 14:59:33 -04:00
Zoltan Varga 7b09fdb830 [llvm] Fix support for native types. 2014-05-27 20:42:07 +02:00
Mark Probst 164d79525a [sgen] Remove unnecessary newline from warning. 2014-05-27 10:46:59 -07:00
Mark Probst aa7447a7c5 [sgen] Fix for ridiculously small nurseries. 2014-05-27 10:46:58 -07:00
Joao Matos 649a692f38 Fixed TLAB_ACCESS_INIT usages in MSVC by moving the macro expansions to the start of each block. 2014-05-27 17:29:45 +01:00
Joao Matos 0f060c8c22 Revert "Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block."
This will be fixed in a slightly different way.

This reverts commit aa7ab303ba.
2014-05-27 17:26:33 +01:00
Joao Matos 1342054e41 Replaced "__asm call $+5" pattern to get the IP with a label.
This was suggested by Kumpera as a work-around for the lack of support for $ in clang-cl.
2014-05-27 17:26:24 +01:00
Marek Safar aad8d4924b [corlib] Disable test 2014-05-27 18:14:27 +02:00
Marek Safar 3e36314d78 [mcs] More of correct error propagation 2014-05-27 18:14:27 +02:00
Rodrigo Kumpera d8eaf057ce [System.Configuration] Temporary fix for system.configuration test suite. 2014-05-27 11:04:42 -04:00
Marek Safar d1d81c9cb5 [system] Fix warnings 2014-05-27 17:04:24 +02:00
Marek Safar 9c07c63053 [mcs] Fix expression tree conversion type for lifted enum equality comparisons. Fixes #19938 2014-05-27 16:15:10 +02:00
Zoltan Varga 5ee706de7d [arm64] Fix mono_strtod (). 2014-05-27 15:29:17 +02:00
Marek Safar d79572f85c [mcs] Report error when named argument for param parameter is given but not all formal parameters are provided. Fixes #19878 2014-05-27 14:39:56 +02:00
marcos henrich da47aed900 Fixed bug 18482. Reseting all private key values to null is required because a new import may not overwrite existing values. 2014-05-27 12:11:32 +01:00
marcos henrich 1cc3bead45 Added test that covers bug 18482. 2014-05-27 12:06:55 +01:00
Alex Rønne Petersen 21b8b7da1e Merge pull request #1062 from sethjackson/sem_timedwait
OpenBSD has sem_timedwait().
2014-05-27 12:18:42 +02:00
Marek Safar fb220ceca1 [mcs] Unify reachable label lookup. Fixes #19887 2014-05-27 10:48:05 +02:00
Marek Safar 1f906df0a4 Merge pull request #1060 from rolfbjarne/logical-name-in-embedded-resources
[Microsoft.Build.Tasks] Add support for LogicalName in EmbeddedResources...
2014-05-27 09:32:55 +02:00
Atsushi Eno d75beb55c5 [ms.build] use appropriate ProjectCollection so that it can build the projects with appropriate settings.
Now a solution turns into a project with "BuildingSolutionFile" property
which is assigned by SolutionParser and subsequently gets _ExplicitReference
that is to store path to mscorlib.dll and thence projects build.
2014-05-27 14:11:49 +09:00
Atsushi Eno 1a5c229e9f [ms.build] follow xbuild to use version 12.0. 2014-05-27 14:11:48 +09:00
Atsushi Eno fcb70eeacb [ms.build] Add msbuild.rsp. 2014-05-27 14:11:47 +09:00
Seth Jackson 09456b827b OpenBSD has sem_timedwait().
This change released under the MIT license with permission from the original
author Robert Nagy.
2014-05-26 21:43:35 -04:00
Sebastien Pouliot dc872d9f5f [Mono.Security] Add new test files (form previous PR) to the build 2014-05-26 20:02:46 -04:00
Sebastien Pouliot 99b5aad5ee Merge pull request #1057 from lextm/master
[Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and Subj...
2014-05-26 20:00:43 -04:00
Zoltan Varga e8082e1bcc Merge pull request #1061 from sethjackson/L_cuserid
L_cuserid was removed from OpenBSD.
2014-05-27 01:50:32 +02:00
Joao Matos 1c3a2b526c Replaced C99 variable-length array with an alloca to work with MSVC. 2014-05-26 23:43:28 +01:00
Joao Matos d5061abf1f Fixed SGEN_HASH_TABLE_INIT usages to work in MSVC. 2014-05-26 23:43:20 +01:00
Joao Matos aa7ab303ba Fixed TLAB_ACCESS_INIT usages in MSVC by declaring the variables explicitly at the start of each block. 2014-05-26 23:43:11 +01:00
Sebastien Pouliot 13ff02dc31 [System.ServiceModel.Web] Fix issue with types explicitly implementing IDictionary or IDictionary<,>
Issue: The previous code, with new tests [1], failed when the linker was
enabled.

That was caused because the code looks for the Keys and Item properties
getter using reflection. The linker handled that imperfectly (it left
some holes), in part because:

* System.Collections.Generic.IDictionary`2 does not implement
  System.Collections.IDictionary; and

* It preserved the explicit methods - not the implicit one that were
  used the the reflection-based code;

That later fact is also a bug (without the linker involvment) and solved
by this commit. A unit test was added to show the issue (NRE).

The patch also avoid the use of reflection for IDictionary since we can
simply typecast to get the same result (without the additional cost).
2014-05-26 17:27:26 -04:00
Seth Jackson c38e27bc7b L_cuserid was removed from OpenBSD.
This change released under the MIT license with permission from the original
author Christian Weisgerber.
2014-05-26 17:21:27 -04:00
Rolf Bjarne Kvinge 6143b52b03 Use string.IsNullOrEmpty instead of .Length. 2014-05-26 18:53:05 +02:00
Marek Safar 122a67e4c8 [mcs] Don't release field address copy before it's used. Fixes #20040 2014-05-26 18:51:11 +02:00
Rolf Bjarne Kvinge 7134ec8abf [arm64] Fix another crash due to not using the right objc_msgSend signature.
Also simplify the code a little bit, there's no need to have separate
code paths for ARM64, since using the correct objc_msgSend signature
works on all architectures.
2014-05-26 18:29:25 +02:00
Rolf Bjarne Kvinge 4f2920cbc1 Fix a couple of compiler warnings. 2014-05-26 18:29:25 +02:00
Rolf Bjarne Kvinge f7879a61a9 [Microsoft.Build.Tasks] Add support for LogicalName in EmbeddedResources. 2014-05-26 18:22:34 +02:00
Lex Li 0ff2798265 [Mono.Security] Added AuthorityKeyIdentifierExtensionTest and SubjectKeyIdentifierExtensionTest. 2014-05-26 13:24:00 +00:00
Marek Safar ec28a5d4b7 [mcs] Fix error reporting propagation for loop statements. Fixes #20034 2014-05-26 15:16:10 +02:00
Zoltan Varga 5b860c3cf5 Merge pull request #1059 from ranma42/jenkins-warnings-cleanup
Cleanup of some MonoJenkins warnings
2014-05-26 11:49:12 +02:00
Marek Safar 97baa22e86 Merge pull request #1033 from godFather89/master
When dynamically compiling script with a class with a nested class defin...
2014-05-26 09:55:40 +02:00
Marek Safar 49e626f420 [mcs] Don't report hiding warnings for compiler generated fields 2014-05-26 09:55:11 +02:00
Marek Safar e014ce692b [mcs] Add cref handling of user operator documentation without parameters 2014-05-26 09:55:11 +02:00
Marek Safar e08d611cfa [eval] Add test for nested types 2014-05-26 09:55:11 +02:00
Andrea Canciani a0d84a2661 Fix non-prototype function declarations
MonoJenkins repeatedly complains about:
mono-counters.c:xxx:1: warning: function declaration isn't a prototype
[-Wstrict-prototypes]

This is caused by the missing declaration of the function arguments.

This change is released under the MIT license.
2014-05-26 09:22:26 +02:00
Andrea Canciani 9f7554e973 More C90 compatibility fixes
This silences the following gcc/clang warnings from MonoJenkins:
sgen-tarjan-bridge.c:395:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1942:2: warning: ISO C90 forbids mixed declarations and code
proflog.c:1999:3: warning: ISO C90 forbids mixed declarations and code
decode.c:2409:6: warning: ISO C90 forbids mixed declarations and code
decode.c:2433:6: warning: ISO C90 forbids mixed declarations and code

Moving the declarations to the beginning of the blocks is sufficient
to silence the warnings.

This change is released under the MIT license.
2014-05-26 09:21:52 +02:00
Alex Rønne Petersen 09126b1b21 Rename configure.in -> configure.ac. Based on PR #976. 2014-05-25 19:04:06 +02:00
Alex Rønne Petersen d61bf0d21b Merge pull request #1056 from ranma42/vc-compat-C90
Fix the build on Visual C++
2014-05-25 18:49:12 +02:00
Lex Li 74eee04f28 [Mono.Security] Added Encode to AuthorityKeyIdentifierExtension and SubjectKeyIdentifierExtension. 2014-05-25 12:25:08 +00:00
Andrea Canciani d6ffe17718 Fix the build on Visual C++
Visual C++ does not support intermixed declarations and code and
errors out with:
error C2275: 'guint' : illegal use of this type as an expression

This also silences gcc/clang warnings such as:
mono-counters.c:xxx:3: warning: ISO C90 forbids mixing declarations
and code

In this case this can be fixed easily by skipping the intermediate
variable.

Based on pull request #1043 by J-M <[email protected]>

This change is released under the MIT license.
2014-05-25 10:07:34 +02:00
Marek Safar f2df46f68e Merge pull request #1055 from josedonizetti/fix_datacontractserializer_tests
validate if attribute is defined before check IsAny
2014-05-25 09:27:34 +02:00
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza b5da7cd80d [System.Runtime.Remoting] Build if DBEUG Is defined 2014-05-25 00:41:55 -04:00
Miguel de Icaza a7eace18c1 [build] MSBuild setup: Add support for -keyfile and -delaysign, thanks to Marek Safar for the pointer 2014-05-25 00:33:21 -04:00
Miguel de Icaza ef0fdb0b2f [build] Drop AssemblyInfo from the sources in Mono.Cecil.Mdb 2014-05-25 00:32:18 -04:00
Miguel de Icaza 99574754c1 [build] Fix Mono.Cecil.Mdb build with xbuild 2014-05-25 00:07:57 -04:00
josedonizetti e30d3314e2 validate if attribute is defined before check IsAny 2014-05-24 21:08:09 -04:00
Marek Safar e1f9b1e084 Revert "[build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile"
This reverts commit 20872b3abe to fix the build
2014-05-24 08:24:42 +02:00
Miguel de Icaza 20872b3abe [build] Make Mono.Cecil use an [assmebly:AssemblyKeyFile] to specify keyfile
Currently the flag is passed on the command line, but this is
problematic for us since our xbuild implementation does not seem to support
the attribute that generates the /keyfile: argument
2014-05-23 22:40:24 -04:00
Rolf Bjarne Kvinge 8f478d0861 Fix TimeZoneTest to build properly with new-style XI assemblies. 2014-05-24 02:18:39 +02:00
Rolf Bjarne Kvinge 8722bb5e9c Remove unused namespace from LazyTest.cs 2014-05-24 02:18:39 +02:00
Miguel de Icaza f7c32488e8 [build] Fix the reference to ecma.pub 2014-05-23 18:03:46 -04:00
Rodrigo Kumpera 36a382c794 [runtime] Don't leak memory if the custom attribute constructor throws. 2014-05-23 17:34:31 -04:00
Rodrigo Kumpera 8565d8dc35 [runtime] Add regression tests for custom attribute loader errors. 2014-05-23 17:34:31 -04:00
Rodrigo Kumpera 25f6affd89 [reflection] Harder the custom attribute code against common type load errors.
Replace silent failures with exceptions.
2014-05-23 17:34:31 -04:00
Rodrigo Kumpera 4d56422960 [runtime] Change the semantics of mono_error_set_type_load_name to acquire alloc'd strings.
The use case for this function compared to the one that take MonoClass/MonoImage is for lookups
and the failed names are usually freshly alloc'd.

Fix a leak in class.c usage of mono_error_set_type_load_name.
2014-05-23 17:34:30 -04:00
Rodrigo Kumpera 5e905069c4 [reflection] Do proper error handling in more cases.
Remove all internal usages of mono_custom_attrs_construct and replace with mono_custom_attrs_construct_by_type
that takes a MonoError.

Introduce mono_custom_attrs_get_attr_checked and replace usage of the old one where it's needed.
2014-05-23 17:34:29 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Miguel de Icaza e5428041b2 [build] Fix location of the key file 2014-05-23 17:15:53 -04:00
Miguel de Icaza b9501aa28d [Managed.Windows.Forms] Disable TRACE code, since it is broken 2014-05-23 17:15:52 -04:00
Miguel de Icaza 965220e1ef [build] The ecma.pub is one directory above 2014-05-23 17:15:52 -04:00
Miguel de Icaza 56dc31d943 [msvc/scripts] Update order.xml file with Makefile changes, update generator 2014-05-23 17:15:52 -04:00
Miguel de Icaza ae90d07888 [build] Ensure that staged build directories are set on LOCAL_MCS_FLAGS
The LOCAL_MCS_FLAGS are passed to the compiler before the standard
directory for the profile.  This is important both for correctness,
and also assists the solution generator, since we can now precisely
determine which intermediate project must be referenced.
2014-05-23 17:15:52 -04:00
Marek Safar db92449f41 Fix warnings 2014-05-23 21:27:38 +02:00
Marek Safar 1eac449e69 [system] Add SendMailAsync methods 2014-05-23 21:27:38 +02:00
Miguel de Icaza 8eade95cf8 [mscorlib] Since .NET 4.5 some of the System.IdentityModel now is in the core, add this class 2014-05-23 15:11:32 -04:00
Jonathan Pryor d2b5279484 [Mono.Posix] Support OS X ENOATTR
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=19991

The original Mono.Unix.Native.Errno design used the Linux <errno.h>
constants and values...largely because it was easy.

As it turns out, this is also incomplete. The getxattr(2) defines
ENOATTR as a possible error code. On Linux, ENOATTR is an alias for
ENODATA [0]. On OS X, ENOATTR is _not_ an alias. Furthermore, since
ENOATTR is not a Linux errno value (it's an alias!),
Mono_Posix_ToErrno() couldn't check for the native ENOATTR value, so a
Syscall.GetLastError() call after a failing Syscall.getxattr() would
fail with a System.ArgumentOutOfRangeException:

	$ csharp -r:Mono.Posix.dll
	Mono C# Shell, type "help;" for help

	Enter statements below.
	csharp> using Mono.Unix.Native;
	csharp> byte[] value;
	csharp> Syscall.getxattr(".", "test", out value);
	-1
	csharp> Syscall.GetLastError();
	System.ArgumentOutOfRangeException: Current platform doesn't support this value.
	Parameter name: value
	93
		at Mono.Unix.Native.NativeConvert.ThrowArgumentException (System.Object value) [0x00000] in <filename unknown>:0
		at Mono.Unix.Native.NativeConvert.ToErrno (Int32 value) [0x00000] in <filename unknown>:0
		at Mono.Unix.Native.Stdlib.GetLastError () [0x00000] in <filename unknown>:0

The fix is to add an Errno.ENOATTR field [1].

The complication is one of what enum value to use: at present, the
Errno values are based on the Linux values. In the case of ENOATTR
(and others), there is no Linux value. Meanwhile, there is the
possibility of additional Linux error values; how do we future proof
ourselves?

This isn't a perfect solution, but it should punt the problem down the
road a bit: Errno is an `int` enum, and thus has large range. To
support the OS X values, we add 1000 to the OS X error value.

	/* OS X: <errno.h> */
	#define ENOATTR		93		/* Attribute not found */

	// C# Errno enum:
	public enum Errno : int {
		// ...
		ENOATTR = 1093,
	}

This gives us 0..1000 for POSIX+Linux error codes, 1000..2000 for OS X
specific error codes, and as new platforms require additional support
they can all start at multiples of 1000.

Hopefully no single *nix platform will add more than 1000 error codes...

[0]: http://linux.die.net/man/2/getxattr
[1]: Related part of the fix: add all the OTHER <errno.h> values that
     OS X includes but weren't included in the Errno enum.
2014-05-23 13:45:10 -04:00
Sebastien Pouliot 4bc2c11690 Revert "[system] Add new StreamWebSocket.cs file to the mobile profile list of sources"
This reverts commit 00ecc7392d.
2014-05-23 13:26:34 -04:00
Atsushi Eno 103f398dcc [xbuild] fix NET_2_0 build. 2014-05-24 01:28:00 +09:00
Atsushi Eno 8db521d6f3 [xbuild] implement ToolLocationHelper.GetPathToStandardLibraries(). 2014-05-24 01:27:59 +09:00
Miguel de Icaza 0a806a14eb [build] Add new project files based on the new staged build 2014-05-23 11:51:20 -04:00
Miguel de Icaza 44f6d288ad [build] Use LOCAL_MCS_FLAGS to give preference to the intermediate dir in System builds, and do not use temporary files for corlib builds 2014-05-23 11:35:20 -04:00
Marek Safar a6dccdaf6d Revert "Merge pull request #981 from methane/websocket"
This reverts commit 62cc262196, reversing
changes made to c1028cf912.
2014-05-23 17:24:45 +02:00
Miguel de Icaza ec3fb70d33 [System] Fix parsing of IPv6 addresses (bug #18574)
From Dick Porter:

The IPv6 address parser misses some syntax errors, and can become confused by
addresses that at first glance look IPv4 compatible.  The attach patch contains
the following fixes:

Don't fail to parse an address if we mistakenly thought it was IPv4 compatible
or mapped, just treat it as IPv6.

Fix IPv4-compatible and mapped address formatting in ToString().

Fix parsing of colons - specifically occurrences of ':::'.

Make sure blocks of digits are no longer than 4 characters.

Add some more parsing tests to Mono's NUnit test suite.

Add a NUnit test for bogus IPv6 addresses.
2014-05-23 11:05:09 -04:00
Miguel de Icaza bed972e170 Update order.xml 2014-05-23 11:05:09 -04:00
Sebastien Pouliot dead6f36cf [system] Small optimization for Xamarin.Mac (where we know we're executing on a Mac) 2014-05-23 09:15:26 -04:00
Atsushi Eno 44f97b131b [msbuild] implement CodeTaskFactory i.e. inline tasks. 2014-05-23 21:19:29 +09:00
Atsushi Eno 28f7a73690 [MS.Build] fix some TaskFactory related bugs uncovered by CodeTaskFactory impl.
- ITaskFactory could return null, so check the return value.
- UsingTask descendants could have property references, so use ExpandString.
- TaskBody was not appropriately passed to internal structure.
2014-05-23 21:19:28 +09:00
Atsushi Eno 2e16d9bb6a [MS.Build] fix default build targets to not return empty list in Project.
And since the code is almost the same as existing ProjectInstance one, just
make it identical. (Should be unified, but depends on members, hence TODO.)
2014-05-23 21:19:27 +09:00
Martin Baulig 55ef36a296 Small fix. 2014-05-23 13:15:25 +02:00
Martin Baulig c30f3763a3 Revert "Fix WebProxy.BypassProxyOnLocal logic."
This reverts commit 3f7ad8f457.

WebProxy.BypassProxyOnLocal is really broken!  There seems to be no
way of actually bypassing a proxy on local connections.
2014-05-23 13:13:48 +02:00
Alex Rønne Petersen 08aee65d94 Merge pull request #1052 from sethjackson/master
Don't define _XOPEN_SOURCE on OpenBSD.
2014-05-23 12:49:28 +02:00
Marek Safar f93fa0d582 Fix tests not to hang on failure 2014-05-23 11:15:37 +02:00
Marek Safar 7a415e3919 [mcs] Expand type parameter member change using effective base type 2014-05-23 10:57:48 +02:00
Martin Baulig 3f7ad8f457 Fix WebProxy.BypassProxyOnLocal logic. 2014-05-23 10:22:44 +02:00
Marek Safar d737b63512 [mcs] Handling of nested effective base classes 2014-05-23 09:27:58 +02:00
Marek Safar 051ffdfbde Merge pull request #1051 from josedonizetti/bug11916-DataContractSerializer
add IsAny=true support for DataContractSerializer
2014-05-23 06:44:42 +02:00
Seth Jackson 256ec5591a Don't define _XOPEN_SOURCE on OpenBSD. With _XOPEN_SOURCE defined mincore() is not visible.
This change is licensed under the MIT license.
2014-05-23 00:06:44 -04:00
Miguel de Icaza f3237b8eb1 [build/msbuild] Tool resolves assemblies based on exact match, not random-last 2014-05-22 23:04:22 -04:00
Jose Donizetti 1690b16a73 add IsAny=true support for DataContractSerializer 2014-05-22 23:01:16 -04:00
Zoltan Varga cede1a3a6a [arm64] Fix the definition of DWARF_PC_REG, it should be x30 (lr). 2014-05-22 23:49:47 +02:00
Rolf Bjarne Kvinge a4738c64b0 Fix casing in monotouch_Mono.CSharp.dll.sources 2014-05-22 15:18:29 +02:00
Enrico Sada 920c4fbc3c fix V547 Expression 'ccw->ref_count >= 0' is always true. Unsigned type value is always >= 0. 2014-05-22 09:51:25 +02:00
Enrico Sada 8251d2b335 fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0. 2014-05-22 09:51:14 +02:00
Enrico Sada 759115c188 fix V547 Expression 'index >= 0' is always true. Unsigned type value is always >= 0. 2014-05-22 09:50:56 +02:00
Enrico Sada a36b6a47ac fix V595 The 'method' pointer was utilized before it was verified against nullptr. Check lines: 302, 303. 2014-05-22 09:48:03 +02:00
Enrico Sada 9e566344cf fix V595 The 'amodule' pointer was utilized before it was verified against nullptr 2014-05-22 09:45:51 +02:00
Atsushi Eno 0be292818e Merge pull request #924 from marcusva/master
- Use the correct absolute path for relative paths within a rooted path
2014-05-22 16:40:17 +09:00
Marek Safar e00a400b3b Merge pull request #164 from LogosBible/AppSettingsFileChanges
Use the configuration file path directory for AppSettings File directory
2014-05-22 09:13:56 +02:00
Alex Rønne Petersen abf8af6b78 Merge pull request #1045 from sethjackson/master
kinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.
2014-05-22 09:01:02 +02:00
Alex Rønne Petersen 14fc4325f6 Merge pull request #1046 from sethjackson/null-gc
Allow building with no GC again.
2014-05-22 08:59:55 +02:00
Marek Safar c9f4ae33e0 [mcs] Emit better code for null coalescing operator with nullable return type. Fixes #19702 2014-05-22 08:38:42 +02:00
Seth Jackson 2bcf7bdaea Allow building with no GC again.
These changes are released under the MIT license.
2014-05-21 17:02:35 -04:00
Seth Jackson 11973b1b7e kinfo_proc2 was removed from OpenBSD. Use kinfo_proc instead.
This change is released under the MIT license with permission from the
original author Robert Nagy.
2014-05-21 16:54:18 -04:00
Alex Rønne Petersen 02d6d971f3 Merge pull request #1049 from ranma42/fix-check-gdi-sibling
Fix checking when libgdi is configured as "sibling"
2014-05-21 21:09:00 +02:00
Andrea Canciani c9304c4262 Fix checking when libgdi is configured as "sibling"
When libgdiplus is configured as sibling, it is available in the
libgdiplus_loc path. This path was added to runtime/mono/config, but
it was later overridden by the prefix-based path.

Using the same approach as for libMonoPosixHelper fixed the lookup of
the library (performed, for example, when testing
MonoTests.System.Drawing without installing libgdiplus).

This change is released under the MIT license.
2014-05-21 19:28:20 +02:00
Martin Baulig f7f1bb819c [Http]: Cleanup and simplify the ServicePoint's connection group list. 2014-05-21 18:47:41 +02:00
Alex Rønne Petersen 3598b336cf Merge pull request #1032 from miguelzf/master
[Jay] Fix memory corruptions: out-of-bounds and uninitialized value.
2014-05-21 17:59:34 +02:00
Alex Rønne Petersen da1f37b001 Merge pull request #1044 from ranma42/fix-icc-build
Fix building mono with icc
2014-05-21 17:10:31 +02:00
Andrea Canciani 239cad7f18 Fix building mono with icc
When compiling mono with icc (ICC) 14.0.0 20130728 the build fails on

  CC     libmonoruntimesgen_la-sgen-stw.lo

with the following error:

Assembler messages:
Error: suffix or operands invalid for `lea'

Apparently icc (or the assembler) dislikes the rip-based LEA
operation. This can be worked around by manually assembling the
instruction and replacing it with the corresponding byte sequence.

This change is released under the MIT license.
2014-05-21 14:18:56 +02:00
David Karlaš 52b168e336 [Mono.Debugger.Soft] Caching VirtualMachine threads, caching frames in ThreadMirror and fetching StackFrames in bulk for all threads 2014-05-21 13:13:44 +02:00
Marek Safar 36f7dd787f [mcs] Add explicit array conversion involving type parameters. Fixes #18474 2014-05-21 12:50:55 +02:00
Marek Safar 7a550bd91a [mcs] Undo implicit object prefix for cref interface references 2014-05-21 12:50:55 +02:00
Atsushi Eno 348fa2580e [MS.Build] fix support for MSBuildExtensionsPath* to try more than one paths.
So, it seems that where MSBuildExtensionsPath* is evaluated should be likely
evaluated multiple times, and find actually matching files in one of those.
F# build .targets file expects that.
Since it is almost impossible to assume in which usage scenario it is going
to be evaluated multiple times (those properties can be used anywhere by
simple $(...) syntax), it limits the attempts only for Import() so far.
Old xbuild actually does so too. That way, the particular F# issue is fixed.
2014-05-21 19:03:33 +09:00
Atsushi Eno b5349f25ff [MS.Build] Fix metadata item parsing wrong indexing. 2014-05-21 19:03:33 +09:00
Marek Safar 35a8179e1d [mcs] Explicit type parameter conversion to generic parameter 2014-05-21 10:19:25 +02:00
Rodrigo Kumpera f304ca8be1 [GC] Make size dependent vars use size_t instead of glong or int.
This opens the door for huge nurseries.
2014-05-21 00:03:52 -04:00
Miguel de Icaza b8799913fa [vsbuild] Update Makefiles to not generate the VS metadata for the 'basic' profile 2014-05-20 22:31:49 -04:00
Miguel de Icaza 8eb943998c [build] Kill OpenSystem.C from the Makefile 2014-05-20 22:31:44 -04:00
Miguel de Icaza a6eaaffb4c [build] Revert change in Facades parellism patch, since it works great for builds, but not for other recursive targets (ie: update-csproj, maybe others 2014-05-20 22:30:29 -04:00
Miguel de Icaza 783b24aeac [build] Kill OpenSystem.C, nobody ever used this 2014-05-20 22:17:14 -04:00
Miguel de Icaza e62f341e57 [build] Fix the build for NET_4_5 (and maybe other profiles) from the pull request 981 2014-05-20 22:04:29 -04:00
Martin Baulig e49d56e8d1 [Http]: Cleanup chained async operations; bug #19161. 2014-05-21 02:26:48 +02:00
Sebastien Pouliot 00ecc7392d [system] Add new StreamWebSocket.cs file to the mobile profile list of sources 2014-05-20 17:29:12 -04:00
Sebastien Pouliot 8f51223150 [facades] Build the facades assemblies defined for the profile being built 2014-05-20 16:57:12 -04:00
Zoltan Varga f29c547b65 [sdb] Make sure the ids of unloading assemblies is the same in the ASSEMBLY_UNLOAD event as it was in the ASSEMBLY_LOAD event. 2014-05-20 21:28:31 +02:00
Zoltan Varga 75a7c3219c [runtime] Clean up an #ifdef block. 2014-05-20 20:01:23 +02:00
Marek Safar 62cc262196 Merge pull request #981 from methane/websocket
[websocket] Implement HttpListenerContext.AcceptWebSocketAsync()
2014-05-20 19:56:13 +02:00
Marek Safar c1028cf912 [corlib] Fix public api 2014-05-20 19:35:25 +02:00
Zoltan Varga 628aa55e74 [llvm] Update to the llvm backend to work with llvm a82b09c3a3efbfaf2ce39adc113f9a5458cde398. 2014-05-20 19:09:31 +02:00
Sebastien Pouliot d6eaeb508a [System.Core][ios] Fix value for ENAMETOOLONG (typo?) internal constant in System.IO.MemoryMappedFiles.MemoryMappedFile 2014-05-20 11:24:40 -04:00
Marek Safar b7adbe3140 [corlib] Add Guid hex format parsing with whitespaces. Fixes #19915 2014-05-20 16:37:48 +02:00
Zoltan Varga dbb6cfa908 [llvm] Detect the cpu architecture and pass it to EngineBuilder, recent llvm versions require this to be able to support sse etc. 2014-05-20 15:00:35 +02:00
Marek Safar feaba5a270 [mcs] Use correct parent type in partial type base context 2014-05-20 14:05:38 +02:00
Alexis Christoforides 256e54e232 Merge pull request #1040 from ermshiperete/bug-xamarin-19856
[MWF] Fix opacity of form (#19856)
2014-05-20 07:22:56 -04:00
Marek Habersack 0c62f05785 Add a missing assembly name to full type specification.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=19839
2014-05-20 10:13:25 +02:00
Atsushi Eno 957b3a4a5d [MS.Build] add internal expression debugging helper strings. 2014-05-20 16:20:56 +09:00
Atsushi Eno 79492ddd92 [MS.Build] process Choose/When/Otherwise elements (they were left forgotten). 2014-05-20 16:20:55 +09:00
Atsushi Eno 375c8f755c [ms.build] remove unused code. 2014-05-20 16:20:54 +09:00
Marek Safar 80f19dc90f [xbuild] Add ReferenceOutputAssembly filter 2014-05-20 07:12:15 +02:00
Marek Safar eb35c311f1 Remove 2.0 defines 2014-05-20 07:12:15 +02:00
Miguel de Icaza 28df1505c6 [build] Record extra library builds for our Visual Studio input files
Added local targets (csproj-local) to all the assemblies that have
staged builds to dump their build information for the underlying
dependencies.

This information is needed to create the new Visual Studio csproj
files.

This commit also updates the collected build metadata from running:

     make update-csproj
     make package-inputs

As described in msvc/scripts/README
2014-05-19 22:55:00 -04:00
Joao Matos de46a3dd58 Added System.IO.Compression implementation based on SharpCompress. 2014-05-19 22:24:41 +01:00
Joao Matos d4c8e67b63 Added SharpCompress Zip archive implementation.
This copy is based on our own fork at mono/sharpcompress.
2014-05-19 22:24:37 +01:00
Rodrigo Kumpera 13a26cd03e [corlib] Fix the 2.0 testsuite. 2014-05-19 10:19:26 -04:00
Atsushi Eno 84892f7051 [MS.Build] add "OS" _undocumented_ predefined property.
It is used by Xamarin.Android to determine which compiler to use (csc or smcs)
and lack of this property simply caused Csc build task failure.
2014-05-19 19:38:52 +09:00
Atsushi Eno e29bf81fe6 [MS.Build] now ITaskItem impl. in BuildEngine4 behaves consistent with MS.Build.Tasks.
To be precise, now the implementation returns ItemSpec for ToString().
WriteLinesIntoFile task writes ITaskItem[] lines into a file, without calling
ItemSpec.
Maybe it is better to fix Tasks.dll but I'm unsure about xbuild compatibility.

This missing ToString() override caused target framework monikor output
to become invalid source file (i.e. it used to write ItemSpec as code(!) but
this ITaskItem impl. in BuildEngine4 just wrote its type name as .ToString()
result).
2014-05-19 17:54:59 +09:00
Marek Safar c2d39344f3 [System.Net.Http] Parsing productinfo like headers with missing version. Fixes #19881 2014-05-19 10:03:07 +02:00
Marek Safar 9543a375a7 [mcs] Add handling for special case cref types/members 2014-05-19 10:03:07 +02:00
Marek Safar fcd79ef5c1 [xbuild] Add missing apis 2014-05-19 10:03:07 +02:00
Marek Safar 9036c4c51a [xbuild] Add string to char[] argument conversion 2014-05-19 10:03:07 +02:00
Miguel de Icaza dad7d32075 [build] System.Configuration: fix signatures.
We must use the secxml library directory to reference System, not
bare.

The bare build does not contain a full signature for some interfaces
(there is a using XmlNode = object in a few interfaces that
System.Configuration depends on).

So System.Configuration must reference the System that has been
compiled with XML support.
2014-05-18 23:11:29 -04:00
Zoltan Varga c1f711e373 Merge pull request #1042 from xplicit/fixdocs
[docs] added mising closing h4 tag
2014-05-18 12:41:53 +02:00
xplicit cba0492522 [docs] closing h2 tag 2014-05-18 07:43:13 +07:00
xplicit bb90bc9e4d added closing h4 tag 2014-05-18 05:23:49 +07:00
Zoltan Varga 2537c96476 [sdb] Avoid waiting for an answer for the START_BUFFERING/STOP_BUFFERING commands. 2014-05-17 23:39:22 +02:00
Zoltan Varga 13e32b3fed [sdb] Add support for client side packet buffering. 2014-05-17 23:27:46 +02:00
Zoltan Varga e0d791f7a5 [sdb] Add ability to buffer reply packets in the wire protocol when running on high latency links like usb. Uses a pair of START_BUFFERING/STOP_BUFFERING protocol commands. 2014-05-17 21:45:19 +02:00
Miguel de Icaza 0f5cc494a7 [build/Facades] Parallelize the Facades directory build
The parallelization is done by overriding the default "all" target
and instead of using the serial subdirectory processing that goes
over the SUBDIR and xx_SUBDIR rules, we turn the list of
subdirectories into the name of the target, for example:

     System.Collections.Concurrent

becomes:

     ../../class/lib/net_4_5/Facades/System.Collections.Concurrent.dll

Then a pattern is added to handle that rule:

     $(target_dir)/%.dll:

This allows the build to be parallized.
2014-05-16 21:48:47 -04:00
Rodrigo Kumpera 1531d4f34d [System] Throw IOE in more cases when dealing with an invalid Process object. Fixes #19864 2014-05-16 16:30:56 -04:00
Rodrigo Kumpera 17f8e4142f [corlib] Fix ClaimsIdentity default ctor. 2014-05-16 16:04:22 -04:00
Miguel de Icaza a3de5976ed Merge pull request #1041 from mono/staged-cyclic-builds
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies.   This deals directly with
the following cycle:

    System.dll requires:
	System.Configuration.dll
	Mono.Security.dll
	System.Xml.dll

	They all require System.dll to be built

    System.Xml requires:
	System.dll
	System.Configuration.dll

    System.Security.dll requires:
	System.dll
	Mono.Security.dll
	System.Xml.dll

Principle
=========

The patch works by directing the build infrastructure to place
intermediate build steps on their own directory.  For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".

The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.

The third time is the final build, and that one ends in the profile
directory.

The same principle is applied to System.Xml.

Better Dependency Tracking
==========================

To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies.  This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.

Bug fixes
=========

We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support.  This patch introduces back the changes to build System.Xml
in two steps.

This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).

Details
=======

library.make:

	Introduces a new "the_libdir_base" which is the raw directory
	where the final output will go.   This points to the same location
	that libdir_base previously pointed to.

	The existing libdir_base is modified to contain an optional
	"intermediate" directory, where intermediate builds can be
	placed.
2014-05-16 15:48:41 -04:00
Eberhard Beilharz 2614e55bee [MWF] Fix opacity of form (#19856) 2014-05-16 18:50:37 +02:00
Miguel de Icaza 89e0b257d4 Merge pull request #1039 from joelmartinez/master
[monodoc] removed erroneous instance of 'FOO' string.
2014-05-16 12:13:53 -04:00
Miguel de Icaza 39ad7e3786 Merge pull request #943 from ermshiperete/bug-novell-325669
[MWF] Implement multi-display support on Linux (Fixes #325669)
2014-05-16 10:54:22 -04:00
Stephen McConnel 809bd8c9b6 [MWF] Fix ComboBox list to not display offscreen (#15462)
The fix mimics the behavior of Windows/.NET.
2014-05-16 16:21:59 +02:00
Stephen McConnel c4ce5cce49 [MWF] Fix Screen.FromRectangle (#8271)
The Screen.FromRectangle method was too simple minded.  It did not try to
find the best match for a screen when the system has more than one screen.
The new implementation makes at least some effort to find the closest
screen with the most overlap with the rectangle.
2014-05-16 16:21:58 +02:00
Eberhard Beilharz e1b7ecdb7b [MWF] Implement multi-display support on Linux (Fixes #325669)
The number of displays and sizes can be retrieved with the help of
libXinerama. The implementation was done in a way that is backwards
compatible, so on non-Linux systems or when libXinerama is not
available the behavior will be the same as before.

Also fixed the implementation of FormStartPosition.CenterScreen to
bring up the form centered on the current display (with the current
display being either the screen the top left corner of the owner
form is on, or if there is no owner the screen that has the mouse
pointer). This fixes Novell bug #325669 on Linux
(https://bugzilla.novell.com/show_bug.cgi?id=325669).
2014-05-16 16:21:51 +02:00
Joel Martinez 4de2bc52c5 [monodoc] removed erroneous instance of 'FOO' string. 2014-05-16 09:52:14 -04:00
Atsushi Eno 4930f612ae [MS.Build] for item metadata access expression, remove surrounding ' and ".
The test case would explain what is not desired there.
2014-05-16 22:00:05 +09:00
Atsushi Eno 554dc2983e [MS.Build] more cleanup (remove debugging, kill extra code). 2014-05-16 14:50:59 +09:00
Miguel de Icaza 524f732a6d Merge pull request #993 from ancailliau/fix-datacontract-json-serialization
[Fix] DataContractJsonSerializer fails serializing/deserializing collections
2014-05-15 17:34:53 -04:00
Miguel de Icaza bf2e5e58df Merge pull request #925 from ermshiperete/novell-bug-602934
[Printing] Fix for Novell bug #602934: improve values that printer settings return
2014-05-15 17:27:39 -04:00
Miguel de Icaza 4f61b92ce0 Merge pull request #942 from ermshiperete/MessageBoxBugs
[MWF] Improvements to MessageBox width
2014-05-15 17:26:13 -04:00
Miguel de Icaza 8a28f5d152 Merge pull request #948 from ermshiperete/bug-xamarin-2394
[MWF] Fixes related to Height and MinimumHeight in DataGridView
2014-05-15 17:22:31 -04:00
Miguel de Icaza 96edd46e16 Merge pull request #926 from ermshiperete/novell-bug-674098
[MWF] Fix hang if clipboard source application closes down
2014-05-15 17:21:55 -04:00
Mika Aalto ef4ed1a61f Removed unneeded NET_2_0 ifdefs 2014-05-15 17:17:44 -04:00
Mika Aalto ccd93fc95a Added implementation and unit tests for GetFieldValue, GetStream and GetTextReader methods in DbDataReader class.
Used https://github.com/matthid/mono/commit/51e808b3836e9ba32901762ea23941ee60b2746d as reference.
2014-05-15 17:17:44 -04:00
Miguel de Icaza 69cd9d1b14 Merge pull request #954 from ermshiperete/bug-xamarin-8907
[MWF] Fix TableLayoutPanel layout bug (#8907)
2014-05-15 17:13:21 -04:00
Miguel de Icaza 48496cae2b Merge pull request #952 from ermshiperete/bug-xamarin-2912
[MWF] Fix AutoSize behavior of FlowLayoutPanel (#2912)
2014-05-15 17:12:51 -04:00
Miguel de Icaza b60bbdc365 Merge pull request #951 from ermshiperete/bug-xamarin-2462
[MWF] Fix clipping of last line of dropdown (#2462)
2014-05-15 17:11:46 -04:00
Miguel de Icaza adc40c3f99 Merge pull request #950 from ermshiperete/bug-xamarin-2787
[MWF] Release capture when clicking LinkLabel (Fixes #2787)
2014-05-15 17:11:14 -04:00
Miguel de Icaza 6bc565c1f7 Merge pull request #949 from ermshiperete/bug-novell-463149
[MWF] Fix text position on buttons (#463149)
2014-05-15 17:08:54 -04:00
Miguel de Icaza 80b9d3ac18 Merge pull request #1038 from ermshiperete/bug-xamarin-19818
[MWF] Don't try to remove non-child control (#19818)
2014-05-15 16:10:21 -04:00
Miguel de Icaza e0137c416b Drop mono.web.pc 2014-05-15 15:54:18 -04:00
Rodrigo Kumpera a9b07ba04b [runtime] Fix hazard pointer usage in the suspend sequence.
We now have a pair of functions to match mono_thread_info_safe_suspend_sync.
They should be used instead of mono_thread_resume as they do the right thing
WRT to hazard pointers.
2014-05-15 15:52:55 -04:00
Rodrigo Kumpera 2285b4c10f [runtime] Fix a hazard pointer leakage in mono_thread_info_resume.
mono_thread_info_lookup leaves the current value on hazard pointer 1,
so all callers must clean it afterwards. This was not done in all cases
by mono_thread_info_resume.
2014-05-15 15:52:54 -04:00
Rodrigo Kumpera eaa625e707 [runtime] Pass the MonoThreadInfo explicitly to mono_thread_state_init_from_handle to avoid nested hazzard point usage.
This function was called from code that uses hazard pointers, so their values could get overridden.
Besides that, we did not clean up the hazard pointer table afterwards, which is wrong too.
2014-05-15 15:52:54 -04:00
Miguel de Icaza 34b0d2d87f [Mono.Web] Further steps to kill Mono.web, this time the pkg-config files 2014-05-15 15:45:01 -04:00
Alexis Christoforides 60dc549a32 [io-layer] Added missing handle type in _wapi_handle_struct_size... 2014-05-15 15:27:55 -04:00
Miguel de Icaza 3cd9b7e003 Merge pull request #1034 from joelmartinez/msdoc-import2
Second pass of Microsoft Documentation import
2014-05-15 14:48:07 -04:00
Marek Safar 563a83943e [System.ComponentModel.DataAnnotations] Add UrlAttribute type. 2014-05-15 19:44:20 +02:00
Alexis Christoforides 509ce4486f [io-layer] Fixed error condition in _wapi_handle_struct_size. 2014-05-15 13:27:22 -04:00
Zoltan Varga 8d9e02de31 [runtime] Fix decoding of jagged arrays in custom attributes. Fixes #19825. 2014-05-15 19:27:10 +02:00
Marek Safar c065a43742 Fixes 60d7997e02 commit 2014-05-15 19:25:37 +02:00
Miguel de Icaza d5c37b6a12 [System.Security.Claims] Add ClaimsPrincipal 2014-05-15 12:54:16 -04:00
Miguel de Icaza 2aed7bc797 [System.Security.Claims] Add basic support for Claims 2014-05-15 12:54:16 -04:00
Marek Safar 9a252dffbc [xbuild] Property Functions implementation 2014-05-15 17:45:39 +02:00
Eberhard Beilharz 29d8e275d5 [MWF] Don't try to remove non-child control (#19818)
When removing a control from a controls collection we have to
check that the control is part of the collection. Otherwise
we shouldn't do anything.
2014-05-15 17:28:57 +02:00
Eberhard Beilharz 2b1086994f [MWF] Add unit test for #19818 2014-05-15 17:21:08 +02:00
Alexis Christoforides 58834ddfd6 [io-layer] Precise memcpy of handle structs.
First issue found by AddressSanitizer.
2014-05-15 10:57:11 -04:00
Atsushi Eno 60d7997e02 [MS.Build] cleanup ITaskItem evaluation related old code. 2014-05-15 23:55:20 +09:00
Atsushi Eno 16c9f61199 [MS.Build] now ITaskItems are collected while evaluating expression and metadata is filled later.
It is kind of reverting previous implementation of item metadata for expression.
Code cleanup should follow.
2014-05-15 23:55:19 +09:00
Atsushi Eno 89417f1bef [MS.Build] skip null string entry as input to string.Join(). 2014-05-15 23:55:19 +09:00
Atsushi Eno 2091b968fd [msbuild] ongoing ITaskItem input parameter handling improvements.
Right now all the input parameters are computed based on string, and any
metadata items are simply chopped out when it is passed to a Task.
To fix this, we need to replace ExpandString() use with more complicated
evaluator that takes ITaskItem into consideration.

(It is not complete as of now; evaluation method needs to be replaced and
any regressions need to be fixed.)
2014-05-15 23:55:18 +09:00
Atsushi Eno 51034e6056 [MS.Build] more of the same (remove obsolete comment). 2014-05-15 23:55:18 +09:00
Atsushi Eno ed2f443041 [MS.Build] remove extraneous expression evaluation code. 2014-05-15 23:55:17 +09:00
Atsushi Eno 45c5657c3e [MS.Build] add another expression expansion test. 2014-05-15 23:55:17 +09:00
Atsushi Eno 35dda9dacd [MS.Build] output item was dropping metadata after running task. 2014-05-15 23:55:16 +09:00
Ludovic Henry 962b14ae36 [mprof-report] Add counter filter when not in verbose mode
This will reduce the amount of printed counters in non verbose mode.
2014-05-15 09:50:16 -04:00
Ludovic Henry 858db2fabc [mprof-report] Extract the counter key prefix of dump_counters_value 2014-05-15 09:50:15 -04:00
Zoltan Varga bf4c6fe295 [runtime] Avoid calling mono_thread_current () in sgen_thread_detach (), since it can construct objects. Fixes #19755. 2014-05-15 14:05:03 +02:00
Miguel de Icaza effaf02382 Adjust the path for Mono.Security 2014-05-14 23:25:28 -04:00
Miguel de Icaza 4b3977ecef Last of the cycles is gone 2014-05-14 23:06:19 -04:00
Jonathan Pryor c4775a55b8 [mdoc] Fix NullReferenceException when importing @name attribute.
(Reported by directhex on #mono 2014-05-14 at 14:28 EDT.)

When importing Microsoft XML Documentation, if a //altmember/@name,
//exception/@name, or //permission/@name attribute is encountered then
mdoc will die with a NullReferenceException:

	mdoc: System.NullReferenceException: Object reference not set to an instance of an object
	  at Mono.Documentation.MsxdocDocumentationImporter.ImportDocumentation (Mono.Documentation.DocsNodeInfo info)
	  at Mono.Documentation.MDocUpdater.MakeDocNode (Mono.Documentation.DocsNodeInfo info)
	  at Mono.Documentation.MDocUpdater.UpdateMember (Mono.Documentation.DocsNodeInfo info)
	  at Mono.Documentation.MDocUpdater.MakeMember (System.Xml.XmlDocument doc, Mono.Documentation.DocsNodeInfo info)
	  at Mono.Documentation.MDocUpdater.DoUpdateType2 (System.String message, System.Xml.XmlDocument basefile, Mono.Cecil.TypeDefinition type, System.String output, Boolean insertSince)
	  at Mono.Documentation.MDocUpdater.StubType (Mono.Cecil.TypeDefinition type, System.String output)
	  at Mono.Documentation.MDocUpdater.DoUpdateType (Mono.Cecil.TypeDefinition type, System.String basepath, System.String dest)
	  at Mono.Documentation.MDocUpdater.DoUpdateAssembly (Mono.Cecil.AssemblyDefinition assembly, System.Xml.XmlElement index_types, System.String source, System.String dest, System.Collections.Generic.HashSet`1 goodfiles)
	  at Mono.Documentation.MDocUpdater.DoUpdateAssemblies (System.String source, System.String dest)
	  at Mono.Documentation.MDocUpdater.Run (IEnumerable`1 args)
	  at Mono.Documentation.MDoc.Run (System.String[] args)
	  at Mono.Documentation.MDoc.Main (System.String[] args)

The cause of the NullReferenceException is due to inconsistent
checking: we check that _either_ `child.Attributes["cref"]` OR
`child.Attributes["name"]` is not null, and if one of them IS non-null
then we just grab `child.Attributes["cref"].Value`, which will throw a
NullReferenceException if the @name attribute was present but not the
@cref attribute.

The fix is to be consistent: once we grab an XmlAttribute, use the
already looked up XmlAttribute, don't re-look it up.
2014-05-14 16:09:10 -04:00
Zoltan Varga 4d388f07d4 [runtime] Avoid passing commands to lldb using the python api, it doesn't seem to work well in script files. Fixes #19732. 2014-05-14 21:23:48 +02:00
Michael Hutchinson cb33b94c85 [xbuild] Fix parsing messages with empty/blank origin 2014-05-14 14:22:01 -04:00
Zoltan Varga abaceb24f4 [runtime] Fix Process.TotalProcessorTime becoming negative. Fixes #19739. 2014-05-14 19:17:57 +02:00
Jonathan Pryor 4c45fe93a1 [system.net.http] Set version to 4.0.0.0 on MOBILE
For a variety of reasons, we need to bump the assembly version of
System.Net.Http.dll to "4.0.0.0" (from 2.0.5.0) on our MOBILE
profiles, lest much pain and suffering occur, e.g.:

	http://motzcod.es/post/78863496592/portable-class-libraries-httpclient-so-happy

> For some reason at compile time the facades don’t kick in
> properly and it tries to use the NuGet version of
> System.Net.Http which has some specific functionality for
> older platforms. ...
> All you need to do is create a new app.config file in your
> Android and iOS project.

The need to create a custom app.config is ugly and something
to be avoided. Setting our System.Net.Http.dll version to
v4.0.0.0 removes the need for the custom app.config.
2014-05-14 13:02:10 -04:00
Jeffrey Stedfast 2ad48abb5d Merge pull request #1037 from DavidKarlas/fixingParamName
Fixing regression from previous commit
2014-05-14 11:14:44 -04:00
David Karlaš f8d7ff9249 [Mono.Debugger.Soft] Fixing regression from previous commit where type name instead of parameter name was used 2014-05-14 16:56:46 +02:00
Jeffrey Stedfast a8f3f7754f Merge pull request #1036 from DavidKarlas/cacheSdbLocking
[Mono.Debugger.Soft] Adding thread locking on access to tokensCache dictionary
2014-05-14 06:47:53 -04:00
David Karlaš 98137aad31 [Mono.Debugger.Soft] Adding thread locking on access to tokensCache dictionary 2014-05-14 06:41:43 +02:00
Jeffrey Stedfast 1495baabf4 Merge pull request #1035 from DavidKarlas/cacheSdb
[Mono.Debugger.Soft] More caching
2014-05-13 19:39:38 -04:00
Rodrigo Kumpera 701e303006 [runtime] Fix a pair of thread abort races in classic abort code.
The two races in question are:

In signal_thread_state_change we need to block the target from
further waiting before we signal it or otherwise it might miss the
broadcast asking it to wakeup.

In mono_thread_request_interruption we need to ensure we self interrupt
before returning from the signal handler.
2014-05-13 19:19:43 -04:00
Rodrigo Kumpera 56130af322 [jit] Unblock more critical signals at startup.
Unblock the GC suspend/restart signals and SIGCHLD. Those are required to make the GC
and process watching work.

The SIGCHLD issue was found on mod_mono that fork a process with that signal blocked.

The GC signals are been preemptively unblocked as we can never know what sort of sig mask
we'll start with.
2014-05-13 19:19:38 -04:00
Rodrigo Kumpera dd77c09cae [gc] Add mono_gc_get_restart_signal. 2014-05-13 19:19:36 -04:00
Rodrigo Kumpera faef3b958e [sgen] Implement mono_gc_get_restart_signal. 2014-05-13 19:19:30 -04:00
Rodrigo Kumpera 0d368edf3f [boehm] Implement mono_gc_get_restart_signal. 2014-05-13 19:10:57 -04:00
Miguel de Icaza c60aaa3af6 [System.IO.KeventWatcher] Introduce enums with the KEvent flags and constants
This merely introduces a more readable version of some of the constants that
were hardcoded on the source code.

There is a suspect value "20" that was on the original source code, that
stands for VNodeLink and VNodeExtend, but perhaps the original author
meant to say VNodeRename.   In any case, it seems like we should catch all
of them (except for Revoke).
2014-05-13 18:11:57 -04:00
Zoltan Varga a4f595060b [bcl] Fix Process.PrivateMemorySize64 on osx, we now return task_baic_info.resident_size. Fixes #19738. 2014-05-13 23:51:58 +02:00
Zoltan Varga fc9d536e74 Clean up the usage of FILETIME structures, avoid accessing them as gint64 since that would lead to alignment problems. Hopefully fixes #19739. 2014-05-13 23:40:48 +02:00
David Karlaš d4c5107882 [Mono.Debugger.Soft] Caching tokens resolving 2014-05-13 20:20:46 +02:00
David Karlaš f7b5ab5d9f [Mono.Debugger.Soft] Using cached GetParameters when fetching GetLocals 2014-05-13 20:18:26 +02:00
Ludovic Henry c162b07256 [mprof-report] Fix crash in case no counters values were sampled because of too short run time 2014-05-13 13:49:07 -04:00
Zoltan Varga 5f54be7af1 [sdb] Avoid stack overflows when a boxed vtype recursively references itself using fields. Fixes #18914. 2014-05-13 18:32:12 +02:00
Paolo Molaro aca422f6ac [profiler] Add managed backtrace support to sampling mode for the signal-based impl. 2014-05-13 17:42:04 +02:00
Ludovic Henry 3fe3529a45 [mprof-report] Fix bug where no counters would be printed if --verbose or --counters-sort=category were not passed 2014-05-13 09:50:06 -04:00
Paolo Molaro 6e81eda0e4 [profiler] Filter more event types in mprof-report based on time (more xambug #11904). 2014-05-13 15:18:22 +02:00
Paolo Molaro fa59a719c0 [profiler] In mprof-report fix handling of the time filter when starting from 0 (xambug #11904). 2014-05-13 13:20:50 +02:00
Paolo Molaro d33d022896 [profiler] Emit statistical samples at 1 second intervals and fix race condition. 2014-05-13 12:59:06 +02:00
Ludovic Henry f51237aa3e Merge pull request #1020 from ludovic-henry/pr7-system-counters
[counters] Add system counters
2014-05-12 17:19:34 -04:00
Ludovic Henry 3b5527fa00 [counters] Edit according to Kumpera review 2014-05-12 16:37:20 -04:00
Joel Martinez e9068ebf5b [docs] documentation import for 'returns' elements. 2014-05-12 14:52:53 -04:00
Joel Martinez 891e93e1fe [docs] Import of additional member documentation that contain generic parameteres 2014-05-12 14:52:48 -04:00
Joel Martinez d4fcdb95b4 [docs] namespace documentation import. 2014-05-12 14:52:47 -04:00
Joel Martinez b7293faf40 [docs] type parameter documentation impport. 2014-05-12 14:52:47 -04:00
Joel Martinez aef2cb86cb [docs] Additional parameter documentation import. 2014-05-12 14:52:47 -04:00
Marek Habersack 92f2a76fea [system.web] remove some more remnants of Mono.Web.dll to fix Xamarin Studio activation
The section mapping system wasn't being initialized and used properly since some ifdefs had
been left in the source code. This caused a null reference exception while trying to perform
some HTTP requests and, as the result, broke Xamarin Studio activation.
2014-05-12 19:33:10 +02:00
Zoltan Varga ca4ebb4f67 [arm] Add support for the new compare instructions used by native types. 2014-05-12 18:20:28 +02:00
Ludovic Henry 0b2833cca0 [decode] Edit according to Paolo review 2014-05-12 11:02:44 -04:00
Ludovic Henry 74e49cef38 [decode] Fix sample difference parsing 2014-05-12 11:02:43 -04:00
Ludovic Henry 8d9661bd1f [decode] Add command line counters options parsing 2014-05-12 11:02:43 -04:00
Ludovic Henry 6e3fdba3fe [decode] Add dump_counters
Two main way to dump :
 - per Time : equivalent to a --stats but every seconds, useful to see the overall evolution of all counters
 - per Category : print sample values grouped per category and counters, useful to see the evolution of a specific counter over time
2014-05-12 11:02:43 -04:00
Ludovic Henry 5ff75a022f [decode] Add parsing for TYPE_SAMPLE_COUNTERS 2014-05-12 11:02:43 -04:00
Ludovic Henry 384e15f7c9 [decode] Add parsing for TYPE_SAMPLE_COUNTERS_DESC 2014-05-12 11:02:42 -04:00
Ludovic Henry cbd1950ad9 [decode] Add functions to transform mono-counters enum to strings 2014-05-12 11:02:42 -04:00
Ludovic Henry 6552bcff44 [decode] Add functions to manipulate counters, counters_sections and counters_timestamps
This variables are respectively :
 - the list of all counters
 - the list of all counters grouped by sections
 - the list of all counters groupes by sample value timestamps and sections
2014-05-12 11:02:42 -04:00
Ludovic Henry 8f60e4edc0 [decode] Add Counter, CounterValue, CounterList, CounterSection and CounterTimestamp structs
Counter : contains metadata concerning a counter. There is one in memory per counter index (right now ~100).
CounterValue : represent a sample value of a counter.
CounterList : it is a utility struct that contains a list of counters.
CounterSection : represent all the counters that are in this sections. Used only when we sort counters per category.
CounterTimestamp : represent all the counters that have a sample value at this timestamp. Used only when we sort counters per time.
2014-05-12 11:02:42 -04:00
Ludovic Henry 034494dd99 [decode] Add check for computer endianness on startup 2014-05-12 11:02:41 -04:00
Marek Safar 4fbb65ae05 [http] Convert string output data using BOM header when available. Fixes #19667 2014-05-12 15:24:57 +02:00
Marek Safar 8090e090cb [system.net.http] Fix encoding of Content-MD5. Based on patch by nberardi. Fixes #19644 2014-05-12 13:26:04 +02:00
godFather89 b2a6ea31bd When dynamically compiling script with a class with a nested class defined, the collection would be null.
Example:
class test
{
 class asd
 {
 }
}
2014-05-12 05:29:51 -04:00
Zoltan Varga 068462ab14 [sdb] Fix a deadlock in the assembly cache invalidation code. 2014-05-12 00:47:00 +02:00
Zoltan Varga 8d56fb591f [sdb] Avoid placing implicit sequence points at offsets where the IL stack is empty when using symbol file based sequence points. Fixes #13640. 2014-05-11 23:08:13 +02:00
Zoltan Varga 475f989405 [jit] Add a test for lrem_un. 2014-05-11 21:53:36 +02:00
Zoltan Varga a60a9fe456 [sdb] Fix the serialization of variables with address mode VTADDR. 2014-05-11 21:14:31 +02:00
Miguel de Icaza 6eb9bbd1d7 [build] Untangle the System.Web build, just like System and System.Core 2014-05-09 21:59:49 -04:00
Miguel de Icaza 140040fd65 [build] Drop most uses of LIBRARY_USE_INTERMEDIATE_FILE, clean debug targets 2014-05-09 21:16:52 -04:00
Zoltan Varga 079c2e126f [eglib] Remove test-glib code, we don't have to maintain compatibility with glib any more. Fixes #19638. 2014-05-10 03:07:37 +02:00
Michael Hutchinson 88cf2f1f92 [xbuild] Make tool output parsing more robust
It's now also much more compatible with the subtleties of
the MS .NET parser and includes a substantial test suite.

Fixes BXC19542 - Broken F# Error Reports
2014-05-09 19:59:51 -04:00
Zoltan Varga 04c2e60603 [runtime] Remove an assert from inner_start_thread () on win32 which is not needed. 2014-05-10 01:00:16 +02:00
Miguel Ferreira ea6c2b2267 [Jay] Fix memory corruptions: out-of-bounds and uninitialized value. 2014-05-09 21:33:16 +01:00
Mark Probst b9db795648 [tests] Fix a trivial consistency issue in a test case. 2014-05-09 13:12:26 -07:00
Marek Safar fc061e3296 [xbuild] Implement WriteCodeFragment task 2014-05-09 18:53:12 +02:00
Marek Safar fa5dd111c1 [xbuild] Add ItemDefinitionGroup basic handling 2014-05-09 18:53:12 +02:00
Marek Safar f0ad5f592c [xbuild] Evaluate Choose and PropertyGroup elements in order of appearance 2014-05-09 18:53:12 +02:00
Marek Safar bb4d539b35 [xbuild] Simplify and speedup ConditionFunctionExpression 2014-05-09 18:53:12 +02:00
Miguel de Icaza 9adb22769b [build] Prevent cyclic targets from being built in parallel
Since we are invoking make recursively to satisfy the dependencies
for any of the cyclic components, we need to inform make to not try
to parallelize any work on any of the cyclic dependencies, otherwise
multiple builds will execute building the same binary, and the result
will be truncated outputs.

For example, System's Makefile would launch all the parallel builds for
the dependencies:

        $(secxml_libdir)/System.dll             \
        $(the_libdir_base)System.Xml.dll        \
        $(the_libdir_base)Mono.Security.dll     \
        $(bare_libdir)/System.dll

They could be launched in parallel, and in turn the makefiles on those
directories might try simultaneously to invoke recursively a component
that has not been built yet.

So we use .NOTPARALLEL to flag all the cyclic dependencies on a given
directory to instruct make to not run those in parallel.
2014-05-09 11:27:53 -04:00
Miguel de Icaza 366c13fc51 Drop the extra separator 2014-05-09 11:27:53 -04:00
Miguel de Icaza 8cb819d880 Use LOCAL_MCS_FLAGS to prepend the directories 2014-05-09 11:27:53 -04:00
Miguel de Icaza 7dcf097763 [System.Core] Add explicit cycle dependency tracking to System.Core
This patch is a continuation of the previous work on System to remove
the multi-stage build configuration in Mono's class libraries and avoid
the overwriting of assemblies in a multi-stage build setup.
2014-05-09 11:27:53 -04:00
Miguel de Icaza e0e3f3cd4f [build] Staged setup for building assemblies with cyclic dependencies
This patch introduces an infrastructure to stage the builds for the core
assemblies that have cyclic dependencies.   This deals directly with
the following cycle:

    System.dll requires:
	System.Configuration.dll
	Mono.Security.dll
	System.Xml.dll

	They all require System.dll to be built

    System.Xml requires:
	System.dll
	System.Configuration.dll

    System.Security.dll requires:
	System.dll
	Mono.Security.dll
	System.Xml.dll

Principle
=========

The patch works by directing the build infrastructure to place
intermediate build steps on their own directory.  For example the
first System.dll build that only takes a dependency in mscorlib.dll is
placed not under the final directory but on a subdirectory called
"bare".

The second time that System.dll is built (after Mono.Security and
System.Xml have been built) is placed on the "secxml" directory.

The third time is the final build, and that one ends in the profile
directory.

The same principle is applied to System.Xml.

Better Dependency Tracking
==========================

To handle the multiple stages, the new Makefiles for the various
parties involved in this loop are now able to build their
dependencies.  This means that typing "make" on System.Security or
System.Xml or System will build all of the intermediate steps as
required, without needing the toplevel Makefile to perform multiple
build shots to incrementally build the result.

Bug fixes
=========

We must have regressed at some point the build of System.Xml as we
were only doing one build of it, one without System.Configuration
support.  This patch introduces back the changes to build System.Xml
in two steps.

This patch fixes the setup where we end up rebuilding System.dll and
overwriting it two times as the build progresses as a side effect
(this is what required LIBRARY_USE_INTERMEDIATE_FILE).

Details
=======

library.make:

	Introduces a new "the_libdir_base" which is the raw directory
	where the final output will go.   This points to the same location
	that libdir_base previously pointed to.

	The existing libdir_base is modified to contain an optional
	"intermediate" directory, where intermediate builds can be
	placed.

Other cycles
============

The System.Design assembly was listed as having cycles, but while this
cycle exists in theory, in practice we have not implemented any of the
code that brings the cycle in System.Windows.Forms.Design's
ImageListImageEditor and chances are, we wont any time soon.
2014-05-09 11:27:53 -04:00
Marek Habersack 69a1519d25 Remove last traces of Mono.Web 2014-05-09 16:01:45 +02:00
Zoltan Varga 3f8134d3fd Merge pull request #1028 from DavidKarlas/sdbTypesCaching
[Mono.Debugger.Soft] Caching Assemblies and Types
2014-05-09 14:52:28 +02:00
Atsushi Eno 7df6ef4d03 assign project FullPath before creating ProjectInstance so that properties are assigned appropriately. 2014-05-09 21:51:25 +09:00
Atsushi Eno 120920f90f MSBuildExtensionsPath32/64 should default to MSBuildExtensionsPath value. 2014-05-09 21:51:24 +09:00
Atsushi Eno d3e5522fa3 fix previous change (huh, I was blind, no such option -f, use -p). 2014-05-09 18:09:06 +09:00
Atsushi Eno 085fc8638a use mkdir -f to ignore "directory already exists" error. 2014-05-09 18:04:53 +09:00
Zoltan Varga 0bb0e8a6b8 Merge pull request #1029 from ranma42/dont_free_global_codeman-cleanup
[runtime] Remove the last bits of mono_dont_free_global_codeman
2014-05-09 03:03:40 +02:00
Sebastien Pouliot 37fd3b5e65 [mono-api-html] Add the [Obsolete] message for API additions and removals
Less common case - unless the API difference has a large delta.

Some additional spacing is added to ease readability: if an entry takes two line then it needs a empty line.
2014-05-08 20:18:02 -04:00
Andrea Canciani 07a9e93298 [runtime] Remove the last bits of mono_dont_free_global_codeman
All uses of the mono_dont_free_global_codeman variable (including its
definition) have been removed in
4a1ae4694a.

Its declaration should be removed as well to keep the codebase clean.
2014-05-09 01:25:09 +02:00
Zoltan Varga f9504523d5 [runtime] Wait for the finalizer thread to exit in both code paths where waiting for it succeeded. 2014-05-09 01:00:13 +02:00
Zoltan Varga 07f5a5dc25 Fix make runtest-managed in tests/. 2014-05-09 00:56:35 +02:00
Zoltan Varga ce77f52e00 Fix make check in tests/ 2014-05-09 00:44:09 +02:00
David Karlaš 01876c5c2c [Mono.Debugger.Soft] Catching AssemblyMirror in AppDomainMirror and TypeMirror in AssemblyMirror 2014-05-09 00:41:37 +02:00
Zoltan Varga 4a1ae4694a [runtime] Remove the mono_dont_free_global_codeman hack, it shouldn't be needed now that we actually wait for threads to exit. 2014-05-09 00:36:33 +02:00
Zoltan Varga 17f9fa1afe [jit] Disable the interval based linear scan algorithm in aot+debug mode, since it doesn't respect cfg->disable_reuse_registers, leading to problems during debugging when registers are shared between variables. 2014-05-08 23:03:28 +02:00
Jeffrey Stedfast 3fd97814cd [Mono.Debugger.Soft] Added TypeMirror.IsNested 2014-05-08 16:38:44 -04:00
Ludovic Henry 9da5058dee Merge pull request #1024 from ludovic-henry/pr10-proflog-counters
[proflog] Add counters support to proflog
2014-05-08 16:26:09 -04:00
Ludovic Henry c453aa1469 [proflog] Edit according to Paolo review 2014-05-08 16:21:29 -04:00
Alex Rønne Petersen e20beda857 Update MONO_CPU_ARCH description in man/mono.1. 2014-05-08 20:33:04 +02:00
Marek Habersack fc4874fac3 Merge Mono.Web back into System.Web and remove the Mono.Web module 2014-05-08 20:30:53 +02:00
Jeffrey Stedfast 9fe7e76b3d Merge pull request #1026 from DavidKarlas/cacheThreadInfo
[Mono.Debugger.Soft] Adding caching of ThreadInfo in ThreadMirror
2014-05-08 14:05:46 -04:00
Sebastien Pouliot 9296b4b2d7 [mono-api-html] Refactor to ensure the RegEx (if used) is applied everywhere
* The existing regex was not always used (e.g. new sections);

* It's now possible to use a regex on 'removed' (not just added) elements;

* It's possible to use the same regex for both (or have different ones);
2014-05-08 13:31:27 -04:00
Ludovic Henry e1397e1776 [counters] Fix operator precedence 2014-05-08 11:29:01 -04:00
Ludovic Henry d8a2ed3f1b [counters] Edit dump_counter to use mono_counters_sample and accessors 2014-05-08 11:26:59 -04:00
Zoltan Varga 664ff2167e [gsharedvt] Add tests for large structs. 2014-05-08 17:10:38 +02:00
Rolf Bjarne Kvinge 62deaefea1 Initialize out parameters to NULL.
Fixes a crash in the debugger, where we were freeing random pointers:

(lldb)
frame #2: 0x000dc981 monotouchtest`method_commands_internal(command=<unavailable>, method=<unavailable>, domain=<unavailable>, p=0x7f52aca4, end=<unavailable>, buf=<unavailable>) + 9009 at debugger-agent.c:8116
   8113			g_free (il_offsets);
   8114			g_free (line_numbers);
   8115			g_free (column_numbers);
-> 8116			g_free (end_line_numbers);
   8117			g_free (end_column_numbers);
   8118			g_free (source_files);
   8119			g_ptr_array_free (source_file_list, TRUE);
2014-05-08 17:01:27 +02:00
David Karlaš 8a536f371f [Mono.Debugger.Soft] Adding caching of ThreadInfo in ThreadMirror 2014-05-08 10:51:40 +02:00
Marek Safar fc5f457120 [corlib] Use invariant culture for GetTempFileName generator 2014-05-08 10:26:29 +02:00
Marek Safar 4631b47277 [xbuild] Don't crash when reporting top level unknown elements 2014-05-08 10:26:29 +02:00
Sebastien Pouliot 7fefa95e63 [System.Core] Fix MOBILE-implementation of MemoryMappedFile
Internal API was updated only for the non-MOBILE part. Public/shared API requires them in sync.
2014-05-07 19:33:45 -04:00
Ludovic Henry 3cc9e4968e [counters] Fix -1 array access in case counter is of type string and value is null 2014-05-07 18:40:11 -04:00
Rodrigo Kumpera c941e03b0a [counters] Improve the documentation of the counters API. 2014-05-07 17:55:54 -04:00
Rodrigo Kumpera 51e760f771 [counters] Fix the build and do some error handling. 2014-05-07 17:55:20 -04:00
Rodrigo Kumpera 0e3b816a04 Merge pull request #1022 from ludovic-henry/pr9-string-counters
[counters] Add support for string values
2014-05-07 17:40:10 -04:00
Ludovic Henry 8accb3121e [counters] Fix potential overflow in string sampling 2014-05-07 17:34:11 -04:00
Sebastien Pouliot 0cd8e6b022 [mono-api-html] Prettier output when dealing with arrays ([] or [][]), nullable (?) and pointers (*). 2014-05-07 17:25:04 -04:00
Ludovic Henry 8a7181b6c1 [counters] Edit get process pid and /proc/loadavg according to Paolo review 2014-05-07 17:06:20 -04:00
Ludovic Henry ce7dfe8479 [proflog] Increment LOG_DATA_VERSION 2014-05-07 16:59:34 -04:00
Ludovic Henry 0c7e37856d [proflog] Add integration of counters_init and counters_sample
counters_init is called at the end of runtime initialization, on runtime_initialized hook
counters_sample is called in the helper_thread at least once per second
2014-05-07 16:55:00 -04:00
Ludovic Henry 9ccb2fdeb7 [proflog] Add counters_init and counters_sample functions 2014-05-07 16:54:33 -04:00
Ludovic Henry 739eb1b3cb [proflog] Add counters enum type and documentation 2014-05-07 16:29:19 -04:00
Ludovic Henry 2c947ab445 [proflog] Add counters option parsing 2014-05-07 16:28:02 -04:00
Ludovic Henry 3a1ebe87ae [proflog] Add emit_string and emit_double functions 2014-05-07 16:18:40 -04:00
Marek Safar cad2f3ac42 Merge pull request #1023 from LogosBible/NetworkStreamBeginWriteInnerException
Include inner exception when BeginWrite fails due to exception from Sock...
2014-05-07 19:10:27 +02:00
Ludovic Henry b430745186 [counters] Add support for string values
Add new function mono_counters_register_with_size which let the counters API now what is going to be the max size of the string.
The type of the value passed when MONO_COUNTER_STRING is passed must be char* (instead of char** previously). This is to guarantee that, if we want to change the value of the counter, we do not reallocate and free the old value, but we change the value in place. Thus to avoir race condition and access to freed memory.
2014-05-07 13:03:46 -04:00
Tom Philpot 323255c174 Include inner exception when BeginWrite fails due to exception from Socket.BeginSend. 2014-05-07 09:48:31 -07:00
Marek Safar 8d02439588 Undo project change from 073fe7a39c which should not be included 2014-05-07 17:01:37 +02:00
Alex Rønne Petersen 7848571e6f Fix the check in 4660f44381 for special files. 2014-05-07 16:57:12 +02:00
Marek Safar 073fe7a39c [mcs] Fix completion for `new {' input 2014-05-07 16:51:08 +02:00
Marek Safar 8ada649a15 [mcs] Don't report interface implementation errors for optional implementations. Fixes #18030 2014-05-07 15:10:37 +02:00
Zoltan Varga 1e4e2bd449 Fix the build. 2014-05-07 14:50:29 +02:00
Marek Safar 4660f44381 [system.core] Fix some MemoryMappedFile argument checks 2014-05-07 14:19:57 +02:00
Zoltan Varga 4044cb7c07 [sdb] Add end lines/end columns to line number information. 2014-05-07 14:02:28 +02:00
Zoltan Varga 97dc571fe2 Add end line/end column information to the mdb file format and pdb2mdb. 2014-05-07 14:02:28 +02:00
Marek Safar b787868fa8 [corlib] Rethrow user not initialization exception when lazy initialization throws. Fixes #19564 2014-05-07 13:13:08 +02:00
Rodrigo Kumpera fd27e16386 Fix copyright. 2014-05-06 23:11:25 -04:00
Sebastien Pouliot 6bdf1e274e [mono-api-html] Allow a lax processing mode of the XML files
This is useful when the files needs to be pre-processed (e.g. a major change between the assemblies internals) and where some duplicate entries might be created (e.g. merged types/namespaces).

Note: normally the mono-api* tools should not produce such files (so it's better not used unless required)
2014-05-06 20:20:25 -04:00
Sebastien Pouliot 05876475d1 [mono-api-html] Prettier output using singular and plural forms in sections 2014-05-06 20:20:25 -04:00
Ludovic Henry da2e4c791d [counters] Add system counters
After discussion with Kumpera, it was decided to load them lazily when calling mono_counters_foreach for the first time. It has to be inside the mono runtime, and not in a profiler because it accesses proclib API which is all MONO_INTERNAL functions.
2014-05-06 20:09:42 -04:00
Rodrigo Kumpera d8dc2fb2fa [counters] Fix --stat to not dump counters for all sections. 2014-05-06 17:26:39 -04:00
Miguel de Icaza 41858f8b42 Merge pull request #1018 from ermshiperete/xamarin-19567
[MWF] Clear currentCell before disposing (fixes #19567)
2014-05-06 17:24:51 -04:00
Rodrigo Kumpera 5ae3f41410 [sgen-bridge] Add color duplication pathology. 2014-05-06 15:39:29 -04:00
Rodrigo Kumpera a89e635840 [sgen] Improve bridge comparison code a bit. 2014-05-06 15:39:29 -04:00
Rodrigo Kumpera 2e088c49d3 [sgen-bridge] Add the tarjan-coloring bridge.
The tarjan-coloring bridge is significant departure from the old bridge. It's design is based
on the Tarjan Strongly Connected Component algorithm.

SCC links are calculated as part of the Tarjan dfs on the second scan to calculate the low index and
form the components.

The algorithm does inspect all children after they have been processed, which enables us to do backward
propagation of the reachable SCCs.

In order to avoid the xref mess of the old algorithm, we color each component based on the sum of all
reachable components (colors). This means no matter how many non-bridge objects are in between two bridges,
they will all receive the same color and be represented in the final output as a single node in the SCC
graph.

This allows for a reasonably compact output graph as it will only include colors with no bridges when
a single object has multiple bridges reachable.

Said that, the basic algorithm received a series of optimizations:

1)Flag based merging, great idea from Mark, it bounds color and xref merging to be linear on the number of
colors found.

2)Objects and Colors bucket allocation. Instead of using expansible arrays we use fixed size buckets that
form a linked list. This allow us to use direct pointers instead of indexes. It avoid the expensive expansions.
Another benefit is that it reduces the work by sgen's malloc, which can be really slow.

3)Replace the object hash table with header patching. We tag objects with both pinning and forwarded bits and
store a pointer in the lock word. This eliminates the hashtable, a big source of perf issues. Patching objects
back at the end of bridge processing is much much cheaper than free'ing all the hashtable entries.

4)Color deduplication. It's possible to produce duplicated colors due to mutually unreachable paths that
both points to the same set of bridges. A cache is introduced to reduce it for colors points to 2 or 3 others.

The way we build colors allow us in the future to fix the hub object problem (SetupDoubleFan).

Experimental results with sgen-bridge-pathologies shows this implementation been 2-3x faster than the new one.
2014-05-06 15:39:29 -04:00
Rodrigo Kumpera f41a9ecabf [bridge] change the log entry name to make it easier to read logs. 2014-05-06 15:39:28 -04:00
Rodrigo Kumpera 7623a52cdc [sgen-bridge] Each bridge needs it own internal mem type as their sizes differ. 2014-05-06 15:39:28 -04:00
Miguel de Icaza 4d1a5dd977 Merge pull request #1010 from davidmoore1/bug-19304
Prevent call to OwnerLostFocusHandler for disposed object
2014-05-06 14:19:43 -04:00
Marek Safar 686ee099af [mcs] Include more unicode categories in parsing identifier part character. Fixes #18229 2014-05-06 19:59:36 +02:00
Eberhard Beilharz 3505e01e30 [MWF] Clear currentCell before disposing (fixes #19567)
If currentCell still has a value when we call Columns.Clear() we
might try to end the editing. Because the columns got disposed
before calling Columns.Clear() we get a crash. This patch fixes
the problem by setting currentCell to null.
2014-05-06 19:09:29 +02:00
Eberhard Beilharz 414ce39e1d [MWF] Unit test for DataGridView bug (#19567) 2014-05-06 19:06:50 +02:00
Rodrigo Kumpera 46cccd7feb Merge pull request #992 from ludovic-henry/ludovic-counters-pr1
[counters] Add sample and accessors to mono counters API
2014-05-06 12:34:42 -04:00
Marek Safar 549c4df9c5 [mcs] Emit null constant value for default parameters of generic types to indicate not missing value. Fixes #19033 2014-05-06 17:56:50 +02:00
Marek Safar 7e389f425d [mcs] Report error for invalid unary nullable predefined operators 2014-05-06 17:19:15 +02:00
Marek Safar 1ef93c5318 [mcs] Do type parameter conversion involving type parameters using dependency rules. Fixes #18473 2014-05-06 16:52:24 +02:00
Marek Safar 48742484f7 Merge pull request #1017 from akoeplinger/fix-monocc
[Mono.CodeContracts] Always build debug file for the test assembly
2014-05-06 15:39:23 +02:00
Alexander Köplinger 520091343a [Mono.CodeContracts] Always build debug file for the test assembly
The tests require that the debug file is available, however in the net_4_0 profile this file isn't generated by default.
We now ensure the debug file is always generated for the test assembly.
2014-05-06 15:37:16 +02:00
Sebastien Pouliot c15721382c [mono-api-html] Prettier output of ref and out (instead of &) 2014-05-06 08:55:50 -04:00
Sebastien Pouliot d3b101db33 [mono-api-html] Make the [Obsolete] a bit prettier when no text message is available 2014-05-06 08:54:56 -04:00
Zoltan Varga 934b12770a [sdb] Add a new TypeMirror.NewInstance () method which can create valuetypes without a ctor. 2014-05-05 23:39:46 +02:00
Jeffrey Stedfast c049f307f1 [Mono.Debugger.Soft] Modified TypeMirror.NewInstance() to check that the method is a .ctor 2014-05-05 17:20:07 -04:00
Sebastien Pouliot d9aaa0985f [mono-api-html] Report [Obsolete] members in a separate section (not as both removed and added with an [Obsolete]). That makes it easier to read long API diff reports 2014-05-05 16:17:54 -04:00
Ludovic Henry d70ae3f463 [counters] Disable register filter on valid_mask
This was previously used to not store counters that were not going to be dumped, but because we can now sample them, we have to make sure that they are stored, even if we do not plan to dump or sample them.
2014-05-05 14:10:48 -04:00
Marek Safar 0137058a18 [dlr] Emit correct code for convert of nullable types. Fixes #19500 2014-05-05 19:16:11 +02:00
Ludovic Henry 8da4b9b1b4 [counters] Fix type issue on mini counters
Used MONO_COUNTER_WORD for gint32 variable, crashed on 64bits platform.
2014-05-05 12:23:20 -04:00
Ludovic Henry fe6bc0068b [counters] Use macro to copy counter in sampling, and use sizeof directly instead of mono_counter_get_size
The use of sizeof will enable compilers optimization on memcpy.
2014-05-05 12:20:59 -04:00
Marek Safar dba4ec7936 [mcs] Emit all method like members in same order as they appear in source code. Fixes #19509 2014-05-05 17:53:26 +02:00
Tom Philpot dbee33d41c Add tests for AppSettingsSection. 2014-05-05 08:18:02 -07:00
Ludovic Henry 84fb018c7e [counters] Sample should fail if buffer size is too small 2014-05-05 10:47:23 -04:00
Ludovic Henry 5b538b8c30 [counters] Add sample and accessors functions 2014-05-05 10:47:23 -04:00
Marek Safar 34241c020f [mcs] Convert extended underlying enum constants to their underlying type. Fixes #18866 2014-05-05 14:57:57 +02:00
Miguel de Icaza d518bd927a [corlib] Remove stale comments 2014-05-04 17:34:12 -04:00
Miguel de Icaza 3d04a49a2c System: Fix the previous bulid 2014-05-04 17:33:51 -04:00
Miguel de Icaza 705da187cf [System] Fix build warnings 2014-05-04 17:15:18 -04:00
Zoltan Varga 47db8f756f [jit] Register the Mono_UnhandledException_internal icall when TARGET_ANDROID is set. 2014-05-03 21:50:52 +02:00
Zoltan Varga 9c4f0a3bea [runtime] Fix some automake conditionals in scripts/, they should be in the beginning of the line. 2014-05-03 19:29:42 +02:00
Zoltan Varga b55efe4e71 [runtime] Fix a warning which happens because we store the thread tid as a guint64. 2014-05-03 18:47:35 +02:00
Tom Philpot 8553af0d71 Use the configuration file path directory as the working directory for the file attribute of the appSettings section instead of the current working directory. 2014-05-03 06:42:00 -07:00
Mark Probst ad626249b9 [sgen-bridge] Don't forward a node to itself. 2014-05-02 14:02:57 -07:00
Mark Probst 9f7bc87b6b [sgen-bridge] Compare xrefs between bridge implementations, too. 2014-05-02 14:02:57 -07:00
Mark Probst 0aba200f1f [sgen-bridge] Compare SCCs between bridge implementations. 2014-05-02 14:02:57 -07:00
Mark Probst c6a3beb160 [sgen-bridge] Allow second bridge implementation to run alongside the active one. 2014-05-02 14:02:57 -07:00
Mark Probst ee61a6e168 [sgen-bridge] Small refactoring. 2014-05-02 14:02:56 -07:00
Mark Probst a852c7a94b [sgen-bridge] Move bridge debug option handling to sgen-bridge.c. 2014-05-02 14:02:56 -07:00
Mark Probst 68b306dcb2 [sgen-bridge] Set bridge_processing_in_progress in sgen-bridge.c. 2014-05-02 14:02:56 -07:00
Mark Probst a8a03927be [sgen-bridge] Also separate old bridge into pre- and post-callback. 2014-05-02 14:02:56 -07:00
Mark Probst a697fec8db [sgen-bridge] Move processing of API data structures to sgen-bridge.c, for sgen-new-bridge.c. 2014-05-02 14:02:55 -07:00
Mark Probst eeaba286c3 [sgen-bridge] Separate before- and after-callback in new bridge. 2014-05-02 14:02:55 -07:00
Mark Probst a92f9ab4c1 [sgen-bridge] Special-case ptr array for 1 entry without allocating. 2014-05-02 14:02:55 -07:00
Mark Probst c236dcd475 [sgen-bridge] Use bit field for is_visited and finishing_time. 2014-05-02 14:02:54 -07:00
Mark Probst e3dfcd2918 [sgen-bridge] Make finishing_time a 32 bit unsigned int. 2014-05-02 14:02:54 -07:00
Mark Probst 362674f49b [sgen-bridge] Fix forwarding.
We can't forward to HashEntry's because they are volatile - the
hash table will resize, and the entries move.  We need to point to
the objects, and then look them up via the hash.  Also, we have
to forward chains of forwards.
2014-05-02 14:02:54 -07:00
Mark Probst e225acdd52 [sgen-bridge] Remove redundant object pointer in hash table entry. 2014-05-02 14:02:54 -07:00
Mark Probst c8fb0ce1e5 [sgen-bridge] Separate DFS1 and DFS2 fields in HashEntry. 2014-05-02 14:02:53 -07:00
Mark Probst 996405bee5 [sgen-bridge] Add a new bridge (non-)pathology. 2014-05-02 14:02:53 -07:00
Mark Probst 9714ba95a9 [sgen-bridge] object_is_live() should be called object_needs_expansion(). 2014-05-02 14:02:53 -07:00
Mark Probst 69a6d8f3f3 [sgen-bridge] Debugging option to dump whole bridge object graph. 2014-05-02 14:02:53 -07:00
Mark Probst 5238cc8fc7 [sgen-bridge] Remove single-reference non-bridge objects from graph. 2014-05-02 14:02:52 -07:00
Mark Probst 0c7470aefc [sgen-bridge] Added test case with bridge performance pathologies.
This is not meant as part of the test suite, but as a reference for
where the bridge has performance issues.
2014-05-02 14:02:52 -07:00
Mark Probst 83eee1ecd7 [sgen-bridge] Copy-on-write for DynArrays.
This eliminates a pathological case for the old algorithm, where a
large array of SCCs is copied from one node to the next without
modification.
2014-05-02 14:02:52 -07:00
Mark Probst 56a2887d69 [sgen-bridge] Remove dead DynArray merging code. 2014-05-02 14:02:52 -07:00
Mark Probst 1cbc22a12b [sgen] Heavy hash table statistics. 2014-05-02 14:02:51 -07:00
Mark Probst ca8c0f110b [sgen-bridge] Make merging in old xrefs algorithm much more efficient.
Instead of merging the two lists by keeping them sorted, use the flag on
the SCCs the indicate whether an SCC has already been merged in, and
just append it if not.  This makes it as fast as the new algorithm on one
test case where it was pathologically slow, while not exhibiting another
pathology that the new algorithm has.
2014-05-02 14:02:51 -07:00
Mark Probst da71185b3a [sgen-bridge] New xrefs graph optimization for nodes with incoming order 1. 2014-05-02 14:02:51 -07:00
Mark Probst 1cedf05d43 [sgen-bridge] Don't merge xrefs in DFS2. Speeds up some cases by orders of magnitude. 2014-05-02 14:02:51 -07:00
Neale Ferguson 0b078d3e36 Support the datetime2 parameter type 2014-05-02 16:39:24 -04:00
Jeffrey Stedfast d8ab5a6b6b [Mono.Debugger.Soft] Fixed the ILInterpreter to catch ArgumentExceptions from ObjectMirror.GetValue() 2014-05-02 12:52:09 -04:00
Jeffrey Stedfast 0acac62678 [Mono.Debugger.Soft] Make the ObjectMirror.GetValues() exception a bit more useful 2014-05-02 12:51:24 -04:00
Marek Safar 31da1c8b2f [mcs] Don't apply reference type is optimization for dynamic expressions. Fixes #19423 2014-05-02 18:02:29 +02:00
Rodrigo Kumpera 6baafcebca Merge pull request #1013 from ranma42/fix-19380
Fix 19380
2014-05-02 11:45:53 -04:00
Marek Safar 688dc29cf1 [mcs] Inflate anonymymous method with correct type arguments when async this requires hoisting in parent type. Fixes #19176 2014-05-02 15:32:10 +02:00
Marek Safar 1e17a61f72 [mcs] Fix using type relationship check for type parameters. Fixes #18639 2014-05-02 10:12:59 +02:00
Andrea Canciani 29f0d0fa91 Document MONO_PATH behaviour for relative paths
Tha previous behaviour of MONO_PATH for relative paths (that implied
using the paths as relative to the current directory when loading
assemblies) was not yet documented and led to some failures when
executing tests.

In order to fix the failures, a new behaviour has been introduced:
relative paths are resolved at launch time, so that the folders which
are examined when loading assemblies do not depend on the current path
of the program.

This patchset is released under the MIT license.
2014-05-01 21:42:09 +02:00
Andrea Canciani 75ae368e7e Canonicalize folders when setting up assemblies_path
When MONO_PATH contains relative folders, they are meant as relative
from where the application is launched, not from the current directory
of each assembly load.

Fixes #19380.
2014-05-01 21:41:44 +02:00
Alex Rønne Petersen bdd4d5bec5 Put the "degraded allocation" warning behind a log level.
We generally shouldn't print stuff to stdout/stderr unless we're
about to fatally crash or something.
2014-05-01 17:25:07 +02:00
Andrea Canciani 53899e397a Fix minor memleak
Instead of just dropping empty strings from the assemblies_path array,
they should be freed to avoid leaking them.
2014-05-01 13:00:47 +02:00
Marek Safar e1d0655aa3 Disable failing test on partical day only 2014-04-30 17:56:19 +02:00
Rodrigo Kumpera de7bffa0be Revert "wip". This idiot here pushed a working branch.
This reverts commit 1bcf96fae0.
2014-04-30 11:37:23 -04:00
Rodrigo Kumpera 196bc4bfcc Revert "might be working" Stupid me pushed a working branch. Glad it had no swearing.
This reverts commit a9d74622fd.
2014-04-30 11:36:58 -04:00
Rodrigo Kumpera 92aeb68b3b [runtime] Fix use before null-check crasher. Found by PVS Studio. 2014-04-30 11:33:43 -04:00
Rodrigo Kumpera a9d74622fd might be working 2014-04-30 11:26:29 -04:00
Rodrigo Kumpera 1bcf96fae0 wip 2014-04-30 11:26:28 -04:00
Marek Safar 93f44693ce [mcs] Better fix for 0d11522afe to consider full member accesibility 2014-04-30 16:16:02 +02:00
Miguel de Icaza 2bd0a1fb21 Updated HTML reference test output 2014-04-30 10:07:20 -04:00
Marek Safar b2b76edc29 [mcs] Caching of type argument types should not happen under error conditions. Fixes #18282 2014-04-30 15:32:09 +02:00
Marek Safar c8ec5331fc Merge pull request #966 from ermshiperete/bug-xamarin-18511
[mcs] Fix recursive resolving of crefs (#18511)
2014-04-30 12:06:54 +02:00
Marek Safar f1790decb8 [linq] Use hashtable lookup instead of linear scan for groupby keys. Fixes #18673 2014-04-30 11:55:17 +02:00
Marek Safar 47f76bb61e Merge pull request #1011 from Fabian-Koenig/master
[DbDataReader] Implement GetFieldValue<T> function to make mono working with EntityFramework 6.x
2014-04-30 08:23:39 +02:00
Alex Rønne Petersen dc16bfe2fe Backport some changes from nunit/nunitv2 that hopefully fix some test agent hangs. 2014-04-30 00:02:52 +02:00
Alex Rønne Petersen 9954763927 Add .gitignore file in mono/arch/arm64. 2014-04-30 00:02:52 +02:00
Alex Rønne Petersen a860232c6e Add a check target to mcs/errors/Makefile. 2014-04-30 00:02:52 +02:00
Fabian König bc69c64bea [DbDataReader] Implement GetFieldValue<T> function to make mono working with EntityFramework 6.x 2014-04-29 23:35:12 +02:00
Miguel de Icaza 626b3929bd Small touchups to the UI, remove some extra space, use a bold, large font for the text 2014-04-29 17:31:26 -04:00
Michael Hutchinson 8989a87902 Merge pull request #1008 from lambdalice/master
[xbuild] Add GetAssemblyIdentity task to Microsoft.Common.tasks
2014-04-29 17:14:43 -04:00
Marek Safar 0d11522afe [mcs] Private member can still have base members when in nested types. Fixes #19378 2014-04-29 19:52:47 +02:00
Paolo Molaro d4a3cc50d3 Adjust the test check to look for the correct heapshot number in the profile data. 2014-04-29 18:48:57 +02:00
Marek Safar 491da5c899 [mcs] Make unused event warning reporting consistent to csc. Fixes #19095 2014-04-29 18:44:54 +02:00
Paolo Molaro 1dbd5e22fa Fix regression in thread name reporting in the profiler.
metadata/threads.c: fix regression from the 695b17f8d5 change and
avoid useless memory allocation. Report thread name to the profiler at
thread startup if it was set before that.
profiler/decode.c: fix typo.
profiler/proflog.c: ensure we get a consistent first buffer header at runtime
initialization.
2014-04-29 17:25:16 +02:00
Paolo Molaro aa181455bb Make assembly resolve events more compatible with the MS runtime.
We now try and trigger assembly resolve events for referenced assemblies
in a way that is more compatible with the MS runtime behaviour. If that still
fails we continue falling back and looking in the same directory as the referencing
image as before to keep compatibility with code that relies on the previous mono
behaviour.
The assemblyresolve_event3.cs test that used to fail on the MS runtime has been fixed
so it works now with both engines.
2014-04-29 15:00:46 +02:00
Marek Safar 9845ce1ea5 [mcs] Add parent storey reference only when this is not captured directly. Fixes #19077 2014-04-29 13:24:35 +02:00
David Moore a32e725b0c Prevent call to OwnerLostFocusHandler for disposed object
bugzilla.xamarin.com bug reference: Bug 19304
ComboBox reverts to original selection when it loses focus.
The LostFocus handler for the internal ComboTextBox class
was being called after it had been disposed.  The dispose
was correctly called when the ComboBoxStyle changed from
it's initial default value to DropDownList.  However, when
the ComboBox control lost focus later on, the LostFocus event handler
was called, which resulted in the Text value for the ComboBox
being overwritten by the value in the disposed object.

Could not see how to write a unit test within the ComboBoxTest.cs
that would simulate losing focus so only providing fix.

Change-Id: I9ca4cc75da5711a7d7c1dd166d5f52d580f44df1
2014-04-29 01:52:36 -04:00
Alexis Christoforides ea464418b5 Merge pull request #920 2014-04-28 18:51:41 -04:00
Miguel de Icaza 1b936ba7e3 Merge pull request #1009 from joelmartinez/msdoc-import
[docs] monodoc style update for blockquote attribution.
2014-04-28 17:55:02 -04:00
Joel Martinez 9d463c4b29 [docs] monodoc style update for blockquote attribution.
Handles the case for method lists, which are contained in blockquotes.
2014-04-28 17:27:32 -04:00
Alexis Christoforides 2d9b230c73 Merge pull request #971
+ trivial adjustments on test timers to prevent intermittent failures.
2014-04-28 17:13:42 -04:00
Alexis Christoforides 4c2a8ed3dd Extended test time for timer-sensitive tests. 2014-04-28 16:52:25 -04:00
Rodrigo Kumpera d5d49b2d59 Drop Events and Items units in favor of Count as they represent pretty much the same thing. 2014-04-28 16:35:22 -04:00
Rodrigo Kumpera 71642b547b [counters] Only dump monotonic counters as variable ones are meaningless during shutdown. 2014-04-28 16:35:22 -04:00
Rodrigo Kumpera 0f66803aaf [counters] Restore the previous behavior of mono_counters_dump, add variance filtering and reorg the bitfield.
The previous behavior when using mono_counters_dump was to pass -1 as the section and get all
counters dumped. This commit restore this behavior.

In addition to that, we want to enable callers to filter by variance as non monotonic counters are not useful
to be dumped at shutdown. To do so you just OR the variance with the sections you want. So what the runtime wants is:

	mono_counters_dump (MONO_COUNTER_SECTION_MASK | MONO_COUNTER_MONOTONIC, stdout);

Dump all counters that are monotonic. Perfect.

Finally, to make the above neat, a reorg of the type bitfield was needed. Variance is now using a bit per kind.
Variance and unit where shrunk to 4 bits each, to open space for more sections.
2014-04-28 16:35:21 -04:00
Rodrigo Kumpera 607c882c43 [counters] Document mono_counters_foreach. 2014-04-28 16:35:21 -04:00
Rodrigo Kumpera 2c31356e6c [counters] Install mono-counters.h since it's part of the public API. 2014-04-28 16:35:21 -04:00
Rodrigo Kumpera a31f1b33a9 [mono-counters] Bring MONO_COUNTER_TIME_INTERVAL back. 2014-04-28 16:35:21 -04:00
Rodrigo Kumpera 401c2f1828 Revert "[counters] Simplify things a bit by removing unsigned counter types."
This reverts commit 2fa83d9a8c.
2014-04-28 16:35:20 -04:00
Miguel de Icaza f34f996a11 genproj: add support for Alias in project references 2014-04-28 15:16:07 -04:00
Miguel de Icaza f57daf91e1 [genproj] For Path.GetFullPath to work, we must use convert Windows paths to Unix paths 2014-04-28 15:16:07 -04:00
Alexis Christoforides 2d2d90eeb2 Merge pull request #961 from ermshiperete/bug-xamarin-18118
[System.XML] XSL bugfixes for #18118 #18114 #18113
2014-04-28 14:16:46 -04:00
Alexander Köplinger 3f6a2ee3b7 [Mono.Parallel] Removed broken Mono.Threading.Tasks code
The code in MonoTaskExtensions.cs relied on the internal method Execute(Action<Task>) in System.Threading.Tasks.Task which was removed in 0a66e60.
2014-04-28 18:17:22 +02:00
Alex Rønne Petersen 7b48e454d7 Emit profiler enter/leave instrumentation calls as icalls.
This is more portable than using the mono_arch_instrument_* functions and
thus isn't prone to nasty arch-specific bugs. In particular, the old way
of instrumenting function prologues/epilogues resulted in a somewhat elusive
stack corruption bug on Android (ARM). Eventually, we should get rid of these
functions entirely and only use icalls, with JIT opcodes for special cases
(such as saving arguments for --trace).

This new way of doing things also makes profiler instrumentation AOT-safe,
since we're now going through the proper channels to emit references to the
runtime functions (mono_profiler_method_enter/leave) and to embed MonoMethod
pointers.

Since we're using icalls without wrappers to do this, there should be no
visible performance impact from this commit.
2014-04-28 16:52:58 +02:00
Eberhard Beilharz 7e69ca21ce [MWF] Fix AutoSize behavior of FlowLayoutPanel (#2912)
A FlowLayoutPanel that has AutoSize set needs to resize if the
contained controls wrap.
2014-04-28 16:22:10 +02:00
Eberhard Beilharz 96b68424a4 [MWF] Add unit tests for AutoSize behavior of FlowLayoutPanel 2014-04-28 16:20:17 +02:00
Alice a5e7519b33 [xbuild] Add GetAssemblyIdentity task to Microsoft.Common.tasks 2014-04-28 22:45:50 +09:00
Marek Safar 038456fe38 Merge pull request #1005 from ranma42/race-free-parallel-build
Use mktemp instead of $RANDOM to generate unique names
2014-04-28 09:21:50 +02:00
Miguel de Icaza e84755ae4c Merge pull request #1006 from joelmartinez/msdoc-import
Import of Microsoft BCL Documentation
2014-04-27 23:08:02 -04:00
Joel Martinez a341c136e6 [docs] Minor update to monodoc html template.
Handles the case where a bullet list has only a paragraph rather than a term
2014-04-27 22:37:25 -04:00
Joel Martinez 6999270099 [docs] Import of Microsoft BCL Documentation.
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00
Joel Martinez 7c67e309d8 [docs] Schema additions, and monodoc template updates.
- Expanded monodoc-ecma schema to support the 'preserve-mono' attribute, and the attribution tag.
- Added preserve-mono to several pieces of documentation that we would like to preserve across future automated documentation imports: CipherSuitesCallback, ServicePointManager, CultureInfo, Environment+SpecialFolder.xml
- XSL template changes for monodoc HTML generation to support <attribution>
2014-04-27 21:32:54 -04:00
Zoltan Varga f244461065 [arm] Fix some native types issues. 2014-04-26 12:44:32 +02:00
Marek Habersack 34fb07d05f Include support for SSL/TLS right in System when building for the MONODROID profile
This patch builds upon commit 96a8500795 which placed parts of Mono.Security
responsible for dealing with SSL/TLS certificates for the purpose of certificate verification. The code enables
validation of the certifcates even if the user does not provide their own validation callback. The changes as related to
the original commit are few, basically consisting of enabling the same code used by MonoTouch in the MonoDroid context with
the only actual code change being the certificate validation bit mentioned above.

Since the change involves adding a subset of Mono.Security files to the monodroid version of System.dll, it is
also necessary to remove Mono.Android's dependence on Mono.Security.dll. The reason is that the code in AndroidPlatform
which looks up TLS support methods in Mono.Android.dll would use a type (X509CertificateCollection) that is now part of
System.dll but is *also* in Mono.Security.dll referenced by Mono.Android.dll and therefore the lookup would fail since
we'd have two distinct types from the reflection point of view.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=18962
2014-04-25 21:39:53 +02:00
Rodrigo Kumpera f964245f21 [sgen-bridge] Fix the bridge with forwarded objects. 2014-04-25 14:49:16 -04:00
Marek Safar b3c6f228b3 [corlib] Fix extra await context switch when custom SynchronizationContext does not change. Fixes #17878 2014-04-25 18:03:43 +02:00
Rolf Bjarne Kvinge 19f49f93f9 Revert "Revert "Merge branch 'master' of https://github.com/mono/mono""
This reverts commit 8f09dad435.

8f09dad435 is reverting a merge commit,
which will not do what you think it does. It will revert much more,
so revert the revert to get back the unintentionally reverted commits.

It looks like the next commit (1a15d4ec54)
is doing the original intention (reverting 164f9cbec4),
so this revert will leave the tree in a good state, with no pending
reverts.
2014-04-25 16:57:01 +02:00
Rolf Bjarne Kvinge f37e86ff58 [mono-api-html] Print string fields with no (or null) value without an NRE. 2014-04-25 16:01:39 +02:00
Alex Rønne Petersen 436328d91d Merge pull request #916 from akoeplinger/fix-gac-test
[MSBuild] Fixed a test that failed when the GAC wasn't available
2014-04-25 12:29:43 +02:00
Rodrigo Kumpera 242cc0df76 [sgen-bridge] Implement type based dfs1 filtering.
Some types are statically known to never lead to a bridge. Objects like
string or int[]. By filtering them out very early in dfs1 we save memory by
not inserting them into the hashtable and reduce work done by all further steps.
2014-04-24 19:09:31 -04:00
Rodrigo Kumpera ee99d7e569 [sgen-bridge] Fix counters. They were not zeroed after each collection. 2014-04-24 19:09:31 -04:00
Rodrigo Kumpera 57829a6492 [sgen-bridge] Use an extra vtable bit to flag opaque objects. 2014-04-24 19:09:30 -04:00
Rodrigo Kumpera d7b60ebe61 [runtime] Fix bitfield comments. 2014-04-24 19:09:30 -04:00
Joao Matos 26ec7f63a0 Revert "Added our own slightly modified copy of Ionic.Zip library."
This is currently breaking the build for Mono Droid.

This reverts commit bb3f24e999.
2014-04-24 14:49:00 +01:00
Joao Matos dc79b5bff7 Revert "Added System.IO.Compression implementation."
This is currently breaking the build for Mono Droid.

This reverts commit b175675ad9.
2014-04-24 14:48:57 +01:00
Rolf Bjarne Kvinge 924c113d86 [System.Xml] Use profile-specific file names for generated files.
Otherwise parallel builds will break randomly.
2014-04-24 13:21:47 +02:00
Alex Rønne Petersen fea1cd4278 Merge pull request #1002 from ranma42/make-check-no-install
Fix 'make check' when mono is not installed
2014-04-24 12:08:02 +02:00
Marek Safar 994661d0b9 Merge pull request #1003 from robertpi/Bug12211
Allow .NET 4.0 + users to use the ConnectSocket property
2014-04-24 11:28:31 +02:00
Robert Pickering fb2f5e0a2f Allow .NET 4.0 + users to use the ConnectSocket property 2014-04-24 07:34:27 +02:00
Atsushi Eno 3e6f644393 Fix bug #9541 by Bart Verthé - do not reset document schema when reading an element. 2014-04-24 12:26:01 +09:00
Rodrigo Kumpera ff938b5960 [sgen-bridge] Add the new bridge to the testing matrix. 2014-04-23 20:10:23 -04:00
Rodrigo Kumpera 7767167ecc [sgen-bridge] New bridge implementation - currently is just a copy of the old one.
The bridge implementation can be picked by having bridge-implementation=old|new in
MONO_GC_PARAMS.

This commit just prepared the ground to land experimental improvements to the bridge
while retaining an working implementation by default.
2014-04-23 20:10:22 -04:00
Rodrigo Kumpera 83341e8416 [sgen-bridge] Move the bridge implementation behind a pointer table.
This change is in preparation to introduce two implementations of the bridge.

The current implementation is now know as old.
2014-04-23 20:10:16 -04:00
Mark Probst aed957b65e [sgen] Fix time logging. We inflated durations by a factor of 10.
SGEN_TV_GETTIME reports via mono_100ns_ticks(), but we treated the
values as if they were in us.
2014-04-23 16:19:54 -07:00
Joao Matos b175675ad9 Added System.IO.Compression implementation. 2014-04-23 22:12:06 +01:00
Joao Matos bb3f24e999 Added our own slightly modified copy of Ionic.Zip library.
The changes are documented in the Xamarin.txt file.
2014-04-23 22:11:55 +01:00
Andrea Canciani e3592a0091 Fix 'make check' when mono is not installed
When the xbuild_12 profile is verified, the corlib from the net_4_5
profile should be in the MONO_PATH, otherwise the verification will
fail with:

The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `.../mono/4.5/mscorlib.dll' directory.
2014-04-23 22:53:14 +02:00
Alexis Christoforides 1a15d4ec54 Revert "Mono version is now pulled in to configure.in from MONO_VERSION"
This reverts commit 164f9cbec4.
2014-04-23 14:57:38 -04:00
Alexis Christoforides 8f09dad435 Revert "Merge branch 'master' of https://github.com/mono/mono"
This reverts commit 9dd632fb9e, reversing
changes made to 164f9cbec4.
2014-04-23 14:56:39 -04:00
Alexis Christoforides 9dd632fb9e Merge branch 'master' of https://github.com/mono/mono 2014-04-23 14:44:48 -04:00
Alexis Christoforides 164f9cbec4 Mono version is now pulled in to configure.in from MONO_VERSION
This makes it easier to grab&use the version elsewhere in the future (e.g. in packaging)
2014-04-23 14:42:45 -04:00
Zoltan Varga 62342d9f56 [jit] Add some comments to register_icall (). 2014-04-23 17:31:54 +02:00
Marek Habersack 73f09870a1 Update test description to include full bug report url 2014-04-23 17:24:37 +02:00
Marek Habersack 3df23604a4 Correctly apply DST offset if the date being converted falls after Jan 1st and is within the last year's DST zone
The adjustment rule must take into account that DST can start in the previous year and extend to some initial period
of the DateTime's year. This patch makes the code take that into account and correctly applies the DST offset to the
date being converted to some target timezone.

Fixes xambug https://bugzilla.xamarin.com/show_bug.cgi?id=17155
2014-04-23 17:15:18 +02:00
Rodrigo Kumpera 9143696db6 Revert "Disable bug-18026.exe when running tests in the CI environment"
This reverts commit 5699e87d5b.

We don't disable tests that reveal regressions. This is one of such cases.
2014-04-23 09:45:36 -04:00
Andrea Canciani 9b78ea6412 Use mktemp instead of $RANDOM to generate unique names
Using $RANDOM is not safe because collisions can occur. An example of
such a failure is available here:
https://s3.amazonaws.com/archive.travis-ci.org/jobs/23572639/log.txt

Using mktemp avoids this issue and removes the dependency on bash.
2014-04-23 15:11:12 +02:00
Marek Habersack 44c0689534 A couple of fixes for TimeZoneInfo.ConvertTime.
* ConvertTime (DateTime, TimeZoneInfo) now correctly takes the date kind from the DateTime parameter
      and uses it to select the source time zone according to this criteria:

         if DateTime kind is Utc, use TimeZoneInfo.Utc as source, in all other cases use TimeZoneInfo.Local

    * Move argument checks in ConvertTime (DateTime, TimeZoneInfo, TimeZoneInfo) so that there's no risk of a NREX
      should sourceTimeZone be null.

Added relevant tests for all of the above changes.
2014-04-23 14:53:01 +02:00
Rodrigo Kumpera b3920c6fda [sgen] Add a bunch of clear-at-gc variants to the test matrix. 2014-04-23 08:50:23 -04:00
Rolf Bjarne Kvinge 810306d84b [Mono.CSharp] Fix compilation for the monotouch profile with new exception filter support in mcs.
Otherwise this happens:

    MCS     [monotouch] Mono.CSharp.dll
    ../../mcs/codegen.cs(294,7): error CS1061: Type `System.Reflection.Emit.ILGenerator' does not contain
    a definition for `BeginExceptFilterBlock' and no extension method `BeginExceptFilterBlock' of
    type `System.Reflection.Emit.ILGenerator' could be found. Are you missing an assembly reference?
2014-04-23 12:25:28 +02:00
Zoltan Varga cad503aafd Merge pull request #1000 from ranma42/disable-18026-on-wrench
Disable bug-18026.exe when running tests in the CI environment
2014-04-23 09:44:11 +02:00
Andrea Canciani 5699e87d5b Disable bug-18026.exe when running tests in the CI environment
The test performed in bug-18026.exe can sometimes fail if the hazard
table gets full. Disabling it in CI testing avoids unwanted noise.

See https://bugzilla.xamarin.com/show_bug.cgi?id=19235
2014-04-23 08:56:38 +02:00
Zoltan Varga 2facf4db1f [sdb] Add support for DebuggerNonUserCodeAttribute. 2014-04-22 23:16:53 +02:00
Zoltan Varga 66aa6bb316 [arm64] Add AOT support. 2014-04-22 19:35:00 +02:00
Zoltan Varga 924fb2a51a [arm64] Add JIT support. 2014-04-22 19:34:26 +02:00
Zoltan Varga 6b94388f8e [arm64] Add sgen support. 2014-04-22 19:34:25 +02:00
Zoltan Varga 80ec6b529b [arm64] Add context/mach support. 2014-04-22 19:34:25 +02:00
Zoltan Varga a4c4a5120a [arm64] Add basic port infrastructure. 2014-04-22 19:34:25 +02:00
Antoine Cailliau b2b269b1e8 [Fix] DataContractJsonSerializer fails serializing/deserializing collections 2014-04-16 15:10:17 +02:00
yjoly a4a65eda9a Fix the date time set in file by removing the ':'.
This is the same code than the one under SendCore. The date time should
not have the : (time zone offset) to be able to use the file.
2014-04-15 15:41:40 -04:00
INADA Naoki f69cdd00ba Remove checking Origin header.
RFC requires Origin header for browser client.
Non browser client may be omit Origin header.
2014-04-13 16:03:22 +09:00
INADA Naoki c54a3f5d9d Fix indent of author. 2014-04-12 14:55:53 +09:00
INADA Naoki 32462f8089 Fix handling fragment and opcode. 2014-04-12 14:53:46 +09:00
INADA Naoki e4f842adf5 Use do ... while (true) 2014-04-12 03:23:31 +09:00
INADA Naoki 8f3f12726a Support receiving frame larger than buffer. 2014-04-12 03:21:01 +09:00
INADA Naoki e63e21edc2 Support CloseStatus 2014-04-12 03:06:36 +09:00
INADA Naoki 298e70c307 Fix some bugs. 2014-04-12 02:49:08 +09:00
INADA Naoki 4239b4cb2e Reimplement StreamWebSocket. 2014-04-11 23:15:24 +09:00
INADA Naoki 7a8efe928c [websocket] Don't use string += 2014-04-07 14:40:43 +09:00
INADA Naoki 0efffb11d8 [websocket] Use string.Equals instead of String.Compare 2014-04-07 14:26:20 +09:00
INADA Naoki 69b3e44b11 [websocket] Better hijacking. 2014-04-07 11:08:18 +09:00
INADA Naoki 69ff10cc32 [websocket] Cleaner closing. 2014-04-07 10:53:43 +09:00
INADA Naoki 7e221721de [websocket] Implement HttpListenerContext.AcceptWebSocketAsync(). 2014-04-07 10:36:03 +09:00
Craig Minihan 3c759e3969 [Fix] Bugzilla #18213 - System.Runtime.Caching.MemoryCache doesn't honor SlidingExpiration 2014-03-26 17:32:01 -07:00
Eberhard Beilharz ecc5430d31 [mcs] Fix recursive resolving of crefs (#18511) 2014-03-21 18:23:59 +01:00
Eberhard Beilharz 88031ccb8d [mcs] Adding unit test for #18511 2014-03-21 18:23:58 +01:00
Damien Daspit f01a48e5b4 [System.XML] Fix handling of space in XSL value-of elements (#18113) 2014-03-17 16:22:50 +01:00
Damien Daspit bc802fe9ff [System.XML] Add unit test for XSL value-of bug (#18113) 2014-03-17 16:22:34 +01:00
Damien Daspit ef1b6fb63c [System.XML] Fix XSL node-set bug (#18114)
XSL node-set function now behaves more like MS version.
2014-03-17 16:12:02 +01:00
Damien Daspit bdde4c4147 [System.XML] Add unit test for XSL note-set bug (#18114) 2014-03-17 16:04:12 +01:00
Damien Daspit edf75ac255 [System.XML] Fix handling of global variables in XSLs (#18118) 2014-03-17 15:19:39 +01:00
Damien Daspit c1d5e5ca14 [System.XML] Add unit test for #18118 2014-03-17 15:16:04 +01:00
MarkS 707051b342 [MWF] Partially implement Help.ShowHelp 2014-03-17 12:30:16 +01:00
Stephen McConnel 9b21123d56 [MWF] Fix TableLayoutPanel layout bug (#8907)
This fixes the TableLayoutPanel implementation to check for control names
as well as the the controls themselves in looking up the row and column
values.
2014-03-14 11:59:22 +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
Eberhard Beilharz 41ee671083 [MWF] Fix clipping of last line of dropdown (#2462)
The height we calculate is the inner height, so we need to add the top
and bottom borders when setting the height of the listbox. The width
however is the outer width so we need to subtract the left and right
borders when setting the client width.
2014-03-13 16:53:27 +01:00
Eberhard Beilharz 8584903ca6 [MWF] Release capture when clicking LinkLabel (Fixes #2787)
When clicking on a LinkLabel we need to release the mouse capture
otherwise the UI might lock up.

This fixes Xamarin bug #2787.
2014-03-13 12:47:13 +01:00
Eberhard Beilharz 85d54839fe [MWF] Fix text position on buttons (#463149)
Vertically centered text on buttons didn't show up centered. The
referenced bug reports it on Windows. Matters were worse on Linux.
This patch tries to fix the problem on both Windows and Linux. On Linux
the positioning is improved although probably still not perfect.

This fixes Novell bug #463149
(https://bugzilla.novell.com/show_bug.cgi?id=463149).
2014-03-13 11:40:55 +01:00
Eberhard Beilharz e11d2f4816 [MWF] Don't allow Height become less than MinimumHeight
In RowHeightInfoNeededEventArgs we need to check that the new
Height value isn't larger than the current MinimumHeight.
2014-03-12 16:45:44 +01:00
Eberhard Beilharz 5a9e3af896 [MWF] Add unit tests for DataGridViewRowHeightInfoNeededEventArgs 2014-03-12 16:45:44 +01:00
Eberhard Beilharz 4a2aff77aa [MWF] Fix crash when setting Row.Height (Fixes #2394)
When setting both Row.Height and MinimumHeight we need to set the
MinimumHeight first otherwise we will get a crash if the new Height
value is less than the old MinimumHeight value.
2014-03-12 16:45:43 +01:00
Eberhard Beilharz e5335d8a7f [MWF] Unit test for Row.Height/MinimumHeight bug (#2394)
This change adds unit tests that demonstrate the bug #2394
where setting Row.Height below MinumumHeight in a DataGridView
doesn't work as expected. The unit tests also document the
behavior of .NET which isn't documented in MSDN.
2014-03-12 16:45:43 +01:00
Eberhard Beilharz 1c98779dab [MWF] Adjust DataGridViewRow.Height according to MinimumHeight
When the MinimumHeight gets changed to a value less than Height
we set height to the new minimum height (and fire the
DataGridView.RowMinimumHeightChanged event). This matches the
behavior on .NET.

When the user tries to set Height to a value less than MinimumHeight
we silently set the height to the minimum height (instead of
throwing an exception). This matches also the behavior on .NET.
2014-03-12 16:42:44 +01:00
Eberhard Beilharz 5d1887a377 [MWF] Refactor DataGridViewRow.MinimumHeight tests
- fix the tests (tests made partially wrong assumptions which didn't
  match the behavior of .NET).
- split MinimumHeight test in multiple smaller tests that test only
  one thing.
- add a few more tests for MinimumHeight and Row.
2014-03-12 16:42:44 +01:00
Stephen McConnel 17cf11f433 [MWF] Better account for icon width in MessageBox
This fixes Xamarin bug #16374.
2014-03-10 16:47:25 +01:00
Stephen McConnel 4c88b53785 [MWF] Fix MessageBox to wrap texts reasonably
Wrap text in MessageBox window so that the message box has a reasonable
width.  This fixes Xamarin bug #15504.
2014-03-10 16:45:16 +01:00
Eberhard Beilharz 61f9fca85e [MWF] Fix size of text area on message box (Fixes #2090)
Previously some characters might have been concatenated on a message
box that displayed an icon because the size of the text area was
calculated wrong. This fixes bug #2090
(https://bugzilla.xamarin.com/show_bug.cgi?id=2090).
2014-03-10 16:45:10 +01:00
Tom Hindle 4813a70a29 [MWF] Fix hang if clipboard source application closes down (fixes #674098)
This change adds a timeout to the Clipboard.Enumerating loop, making a
hang less likely. This fixes Novell bug #674098
(https://bugzilla.novell.com/show_bug.cgi?id=674098).
2014-02-28 17:31:22 +01:00
Eberhard Beilharz 049a349dae [Printing] Improve reported printer settings (Fixes #602934)
Report the actual values of the printer driver in printer settings
instead of using hard coded default values. This fixes Novell bug
#602934 (https://bugzilla.novell.com/show_bug.cgi?id=602934).
2014-02-28 16:45:46 +01:00
Eberhard Beilharz 4ee69bbd30 [Printing] Add unit test for Novell bug #602934
This unit test demonstrates the problem reported as #602934
(https://bugzilla.novell.com/show_bug.cgi?id=602934).
2014-02-28 16:36:26 +01:00
Marcus von Appen 1870f70369 - Use the correct absolute path for relative paths within a rooted path 2014-02-27 20:48:26 +01:00
Eberhard Beilharz 0dd29f1e7f [Sys.Data] Fix Novell Bug #519648
Don't throw an exception when passing "new object[] {null}" to
DataRowCollection.Find. This makes the behaviour more compatible
with .NET. This fixes bug #519648
(https://bugzilla.novell.com/show_bug.cgi?id=519648).
2014-02-27 17:35:54 +01:00
Eberhard Beilharz 6505533785 [Sys.Data] Add unit tests for Novell bug #519648
These unit tests demonstrate the difference to .NET
(https://bugzilla.novell.com/show_bug.cgi?id=519648).
2014-02-27 17:33:06 +01:00
Alexander Köplinger f9c6ed950e [MSBuild] Fixed a test that failed when the GAC wasn't available
The test tried to resolve an assembly from the GAC, which doesn't work on a
clean machine without an existing Mono installation.
We now check if the GAC directory is missing and ignore the test in that case.
2014-02-25 21:21:10 +01:00
11544 changed files with 964548 additions and 619819 deletions

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
# ensure LF endings on all checkouts
configure.in crlf=input
configure.ac crlf=input
# ensure native line endings on checkout
*.c crlf
+2
View File
@@ -69,6 +69,7 @@ config.status
config.sub
configure
configure.scan
cygconfig.h
depcomp
install-sh
libtool
@@ -79,6 +80,7 @@ releases
stamp-h
stamp-h1
stamp-h.in
/test-driver
*~
*.swp
*.o
+8
View File
@@ -16,6 +16,7 @@
[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 +26,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
[submodule "external/reference-assemblies"]
path = external/reference-assemblies
url = git://github.com/mono/reference-assemblies.git
+15 -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,4 +68,17 @@ 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
Occasionally, a pull request sits for several months without any
response from the author. This isn't necessarily an issue, but we may
sometimes decide to close pull requests that have not seen any
progress for a long time. This is in interest of keeping the pull
request list clean so that other pull requests don't get lost in the
clutter.
If we do close your pull request due to inactivity, you're more than
welcome to submit it anew after you address any comments or issues that
were brought up on the original pull request.
+11 -5
View File
@@ -1,12 +1,14 @@
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WERROR_CFLAGS)
MONOTOUCH_SUBDIRS = $(libgc_dir) eglib/src mono
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
@@ -17,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
@@ -48,7 +50,11 @@ GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
rm -rf `find $(top_distdir)/external -path '*\.git' -and -type d`
rm -rf `find $(top_distdir)/external -path '*\.git'`
rm -f `find $(top_distdir)/external -path '*\.exe'`
rm -f `find $(top_distdir)/external -path '*\.dll' -not -path '*/reference-assemblies/v4\.0*'`
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:
# test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
@@ -160,9 +166,9 @@ package-inputs:
done
echo "</root>" >> msvc/scripts/order.xml
# Update llvm version in configure.in to the output of $LLVM_DIR/bin/llvm-config --version
# Update llvm version in configure.ac to the output of $LLVM_DIR/bin/llvm-config --version
update-llvm-version:
if test "x$$LLVM_DIR" = "x"; then echo "Set the make variable LLVM_DIR to the directory containing the LLVM installation."; exit 1; fi
REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.in > tmp && mv tmp configure.in && echo "Version set to $$REV."
REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.ac > tmp && mv tmp configure.ac && echo "Version set to $$REV."
+122 -241
View File
@@ -1,146 +1,61 @@
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.
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 | centos-s390x | windows-amd64 |
|:------------:|:-----------:|:------------:|:-------------:|
| [![debian-amd64](http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-amd64/badge/icon)](http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-amd64/) | [![debian-i386](http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-i386/badge/icon)](http://jenkins.mono-project.com/job/test-mono-mainline/label=debian-i386/) | [![centos-s390x](http://jenkins.mono-project.com/job/test-mono-mainline/label=centos-s390x/badge/icon)](http://jenkins.mono-project.com/job/test-mono-mainline/label=centos-s390x/) | [![windows-amd64](https://ci.appveyor.com/api/projects/status/1e61ebdfpbiei58v/branch/master?svg=true)](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.
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`
@@ -148,8 +63,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:
@@ -158,17 +151,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,
@@ -261,30 +253,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.
@@ -292,7 +260,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.
@@ -399,13 +367,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.
@@ -439,7 +407,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
@@ -458,89 +425,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
+4 -4
View File
@@ -22,11 +22,11 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*)
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|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*)
@@ -158,7 +158,7 @@ modeok=false
tagok=false
for arg in "$[]@"; do
case "$arg" in
--silent) ;;
--silent) ;;
--mode=compile) modeok=true ;;
--tag=CC|--tag=CXX) tagok=true ;;
--quiet) ;;
+98
View File
@@ -0,0 +1,98 @@
#
# 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
#
# 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
+5 -6
View File
@@ -37,7 +37,7 @@ if [ -z "$LIBTOOL" ]; then
fi
fi
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtool' installed to compile Mono."
@@ -47,8 +47,8 @@ fi
}
}
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
grep "^AM_GNU_GETTEXT" $srcdir/configure.ac >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`gettext' installed to compile Mono."
@@ -95,7 +95,7 @@ xlc )
esac
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
${LIBTOOL}ize --force --copy
@@ -123,7 +123,6 @@ if test x$has_ext_mod = xtrue; then
popd
else
cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
cat mono/metadata/Makefile.am.in > mono/metadata/Makefile.am
fi
@@ -138,7 +137,7 @@ aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AC_CONFIG_HEADERS" configure.in >/dev/null; then
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
+1 -1
View File
@@ -57,7 +57,7 @@ function setup ()
CROSS_DLL_DIR="$CROSS_DIR/bin"
PATH=$CROSS_BIN_DIR:$PATH
MONO_VERSION=`grep AC_INIT configure.in | cut -d ',' -f 2|tr -d '\[ \]'`
MONO_VERSION=`grep AC_INIT configure.ac | cut -d ',' -f 2|tr -d '\[ \]'`
if [ -d ./.git ]; then
MONO_GIT_COMMIT="`git log -1 --format=format:%t`"
+3757
View File
File diff suppressed because it is too large. Load diff
-3750
View File
File diff suppressed because it is too large. Load diff
+4 -17
View File
@@ -1,8 +1,4 @@
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
@@ -12,7 +8,7 @@ EXTRA_DIST = \
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-nunit.pc.in mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh mono.web.pc.in system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in \
dtrace-prelink.sh system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in \
reactive.pc.in xbuild12.pc \
net_1_1/machine.config \
gdb/mono-gdb.py \
@@ -26,20 +22,11 @@ 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 mono.web.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 mono.web.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
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)
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 mono.web.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE) mono-sgen-gdb.py
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
mono_DATA = config \
browscap.ini
+8 -5
View File
@@ -10,12 +10,15 @@
<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="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"/>
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libgdk-x11-2.0" target="@GDKX11@" os="!windows"/>
<dllmap dll="libgtk-x11-2.0" target="@GTKX11@" os="!windows"/>
<dllmap dll="libXinerama" target="@XINERAMA@" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
@@ -26,8 +29,8 @@
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdi32" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdi32.dll" target="@prefix@/lib/libgdiplus@libsuffix@" os="!windows"/>
<dllmap dll="gdiplus" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32.dll" target="@libgdiplus_install_loc@" os="!windows"/>
</configuration>
-4
View File
@@ -1,4 +0,0 @@
Name: Mono.Web
Description: Mono ASP.NET extension classes
Version: 2.0.0.0
Libs: -r:@prefix@/lib/mono/gac/Mono.Web/2.0.0.0__0738eb9f132ed756/Mono.Web.dll
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
@@ -24,7 +24,7 @@
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
@@ -24,7 +24,7 @@
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
@@ -24,7 +24,7 @@
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
+4 -4
View File
@@ -82,7 +82,7 @@ TOOL_MAKE=$(MAKE) -f $(srcdir)/docs.make topdir=$(srcdir)/../mcs srcdir=$(srcdir
monoapi.zip: monoapi.tree
monoapi.tree: $(srcdir)/docs.make $(srcdir)/Makefile.am $(srcdir)/toc.xml $(srcdir)/deploy/.stamp
-mkdir deploy
-mkdir -p deploy
cp -f $(srcdir)/api-style.css deploy
$(TOOL_MAKE) $@
@@ -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
@@ -23,7 +23,7 @@
<h4><a name="api:mono_custom_attrs_from_property">mono_custom_attrs_from_property</a></h4>
<h4><a name="api:mono_custom_attrs_has_attr">mono_custom_attrs_has_attr</a></h4>
<h2>
<h2></h2>
<h4><a name="api:mono_module_file_get_object">mono_module_file_get_object</a></h4>
<h4><a name="api:mono_module_get_object">mono_module_get_object</a></h4>
<h4><a name="api:mono_method_body_get_object">mono_method_body_get_object</a></h4>
+22 -22
View File
@@ -19,12 +19,12 @@
<h4><a name="api:CreateMutex">CreateMutex</a></h4>
<h4><a name="api:CreatePipe">CreatePipe</a></h4>
<h4><a name="api:CreateProcess">CreateProcess</a></h4>
<h4><a name="api:CreateProcessWithLogonW">CreateProcessWithLogonW</a>
<h4><a name="api:CreateProcessWithLogonW">CreateProcessWithLogonW</a></h4>
<h4><a name="api:CreateSemaphore">CreateSemaphore</a></h4>
<h4><a name="api:CreateThread">CreateThread</a></h4>
<h4><a name="api:DeleteCriticalSection">DeleteCriticalSection</a></h4>
<h4><a name="api:DeleteFile">DeleteFile</a></h4>
<h4><a name="api:DuplicateHandle">DuplicateHandle</a>
<h4><a name="api:DuplicateHandle">DuplicateHandle</a></h4>
<h4><a name="api:EnterCriticalSection">EnterCriticalSection</a></h4>
<h4><a name="api:EnumProcesses">EnumProcesses</a></h4>
<h4><a name="api:EnumProcessModules">EnumProcessModules</a></h4>
@@ -35,14 +35,14 @@
<h4><a name="api:FindFirstFile">FindFirstFile</a></h4>
<h4><a name="api:FindNextFile">FindNextFile</a></h4>
<h4><a name="api:FlushFileBuffers">FlushFileBuffers</a></h4>
<h4><a name="api:FormatMessage">FormatMessage</a>
<h4><a name="api:FormatMessage">FormatMessage</a></h4>
<h4><a name="api:GetCurrentDirectory">GetCurrentDirectory</a></h4>
<h4><a name="api:GetCurrentProcess">GetCurrentProcess</a></h4>
<h4><a name="api:GetCurrentProcessId">GetCurrentProcessId</a></h4>
<h4><a name="api:GetCurrentThread">GetCurrentThread</a></h4>
<h4><a name="api:GetCurrentThreadId">GetCurrentThreadId</a></h4>
<h4><a name="api:GetDiskFreeSpaceEx">GetDiskFreeSpaceEx</a>
<h4><a name="api:GetDriveType">GetDriveType</a>
<h4><a name="api:GetDiskFreeSpaceEx">GetDiskFreeSpaceEx</a></h4>
<h4><a name="api:GetDriveType">GetDriveType</a></h4>
<h4><a name="api:GetExitCodeProcess">GetExitCodeProcess</a></h4>
<h4><a name="api:GetExitCodeThread">GetExitCodeThread</a></h4>
<h4><a name="api:GetFileAttributesEx">GetFileAttributesEx</a></h4>
@@ -50,14 +50,14 @@
<h4><a name="api:GetFileSize">GetFileSize</a></h4>
<h4><a name="api:GetFileTime">GetFileTime</a></h4>
<h4><a name="api:GetFileType">GetFileType</a></h4>
<h4><a name="api:GetFileVersionInfo">GetFileVersionInfo</a>
<h4><a name="api:GetFileVersionInfoSize">GetFileVersionInfoSize</a>
<h4><a name="api:GetFileVersionInfo">GetFileVersionInfo</a></h4>
<h4><a name="api:GetFileVersionInfoSize">GetFileVersionInfoSize</a></h4>
<h4><a name="api:GetLastError">GetLastError</a></h4>
<h4><a name="api:GetLogicalDriveStrings">GetLogicalDriveStrings</a></h4>
<h4><a name="api:GetModuleBaseName">GetModuleBaseName</a></h4>
<h4><a name="api:GetModuleFileNameEx">GetModuleFileNameEx</a>
<h4><a name="api:GetModuleInformation">GetModuleInformation</a>
<h4><a name="api:GetPriorityClass">GetPriorityClass</a>
<h4><a name="api:GetModuleFileNameEx">GetModuleFileNameEx</a></h4>
<h4><a name="api:GetModuleInformation">GetModuleInformation</a></h4>
<h4><a name="api:GetPriorityClass">GetPriorityClass</a></h4>
<h4><a name="api:GetProcessId">GetProcessId</a></h4>
<h4><a name="api:GetProcessTimes">GetProcessTimes</a></h4>
<h4><a name="api:GetProcessWorkingSetSize">GetProcessWorkingSetSize</a></h4>
@@ -86,7 +86,7 @@
<h4><a name="api:ReleaseMutex">ReleaseMutex</a></h4>
<h4><a name="api:ReleaseSemaphore">ReleaseSemaphore</a></h4>
<h4><a name="api:RemoveDirectory">RemoveDirectory</a></h4>
<h4><a name="api:ReplaceFile">ReplaceFile</a>
<h4><a name="api:ReplaceFile">ReplaceFile</a></h4>
<h4><a name="api:ResetEvent">ResetEvent</a></h4>
<h4><a name="api:ResumeThread">ResumeThread</a></h4>
<h4><a name="api:RevertToSelf">RevertToSelf</a></h4>
@@ -98,7 +98,7 @@
<h4><a name="api:SetFilePointer">SetFilePointer</a></h4>
<h4><a name="api:SetFileTime">SetFileTime</a></h4>
<h4><a name="api:SetLastError">SetLastError</a></h4>
<h4><a name="api:SetPriorityClass">SetPriorityClass</a>
<h4><a name="api:SetPriorityClass">SetPriorityClass</a></h4>
<h4><a name="api:SetProcessWorkingSetSize">SetProcessWorkingSetSize</a></h4>
<h4><a name="api:ShellExecuteEx">ShellExecuteEx</a></h4>
<h4><a name="api:SignalObjectAndWait">SignalObjectAndWait</a></h4>
@@ -110,12 +110,12 @@
<h4><a name="api:TlsFree">TlsFree</a></h4>
<h4><a name="api:TlsGetValue">TlsGetValue</a></h4>
<h4><a name="api:TlsSetValue">TlsSetValue</a></h4>
<h4><a name="api:TransmitFile">TransmitFile</a>
<h4><a name="api:TransmitFile">TransmitFile</a></h4>
<h4><a name="api:TryEnterCriticalSection">TryEnterCriticalSection</a></h4>
<h4><a name="api:UnlockFile">UnlockFile</a></h4>
<h4><a name="api:VerLanguageName">VerLanguageName</a>
<h4><a name="api:VerQueryValue">VerQueryValue</a>
<h4><a name="api:WaitForInputIdle">WaitForInputIdle</a>
<h4><a name="api:VerLanguageName">VerLanguageName</a></h4>
<h4><a name="api:VerQueryValue">VerQueryValue</a></h4>
<h4><a name="api:WaitForInputIdle">WaitForInputIdle</a></h4>
<h4><a name="api:WaitForMultipleObjectsEx">WaitForMultipleObjectsEx</a></h4>
<h4><a name="api:WaitForMultipleObjects">WaitForMultipleObjects</a></h4>
<h4><a name="api:WaitForSingleObjectEx">WaitForSingleObjectEx</a></h4>
@@ -136,9 +136,9 @@
APIs.
<h4><a name="api:mono_once">mono_once</a></h4>
<h4><a name="api:wapi_clear_interruption">wapi_clear_interruption</a>
<h4><a name="api:wapi_current_thread_desc">wapi_current_thread_desc</a>
<h4><a name="api:wapi_interrupt_thread">wapi_interrupt_thread</a>
<h4><a name="api:wapi_self_interrupt">wapi_self_interrupt</a>
<h4><a name="api:wapi_thread_clear_wait_handle">wapi_thread_clear_wait_handle</a>
<h4><a name="api:wapi_thread_set_wait_handle">wapi_thread_set_wait_handle</a>
<h4><a name="api:wapi_clear_interruption">wapi_clear_interruption</a></h4>
<h4><a name="api:wapi_current_thread_desc">wapi_current_thread_desc</a></h4>
<h4><a name="api:wapi_interrupt_thread">wapi_interrupt_thread</a></h4>
<h4><a name="api:wapi_self_interrupt">wapi_self_interrupt</a></h4>
<h4><a name="api:wapi_thread_clear_wait_handle">wapi_thread_clear_wait_handle</a></h4>
<h4><a name="api:wapi_thread_set_wait_handle">wapi_thread_set_wait_handle</a></h4>
+2
View File
@@ -1,5 +1,7 @@
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WERROR_CFLAGS)
if HOST_WIN32
SUBDIRS = m4 src
else
+3 -3
View File
@@ -22,11 +22,11 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|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*)
+7 -13
View File
@@ -88,7 +88,7 @@ case $host in
esac
case $target in
arm*-darwin*)
arm*-darwin*|aarch64*-*)
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE"
;;
i*86-*-darwin*)
@@ -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/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)
@@ -235,18 +236,11 @@ AC_ARG_WITH(crosspkgdir, [ --with-crosspkgdir=/path/to/pkg-config/dir Chan
fi
)
dnl
dnl No, you can not replace the call below with a pkg.m4 macro
dnl
have_glib=false
if test "x$PKG_CONFIG" != "xno"; then
if $PKG_CONFIG --atleast-version=$GLIB_REQUIRED_VERSION glib-2.0; then
have_glib=true;
else
have_glib=false;
fi
AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
AC_SUBST([WERROR_CFLAGS])
AC_SUBST(GPOINTER_TO_INT)
AC_SUBST(GPOINTER_TO_UINT)
+3
View File
@@ -1,5 +1,7 @@
noinst_LTLIBRARIES = libeglib.la libeglib-static.la
AM_CFLAGS = $(WERROR_CFLAGS)
win_files = \
eglib-config.hw \
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c \
@@ -30,6 +32,7 @@ libeglib_la_SOURCES = \
garray.c \
gbytearray.c \
gerror.c \
vasprintf.h \
ghashtable.c \
giconv.c \
gmem.c \
+6
View File
@@ -273,3 +273,9 @@
#define g_utf8_get_char_validated monoeg_utf8_get_char_validated
#define g_utf8_prev_char monoeg_utf8_prev_char
#define g_utf8_to_ucs4 monoeg_utf8_to_ucs4
#define g_log_default_handler monoeg_log_default_handler
#define g_log_set_default_handler monoeg_log_set_default_handler
#define g_set_print_handler monoeg_set_print_handler
#define g_set_printerr_handler monoeg_set_printerr_handler
+2
View File
@@ -30,6 +30,8 @@
#include <string.h>
#include <glib.h>
#include "vasprintf.h"
GError *
g_error_new (gpointer domain, gint code, const char *format, ...)
{
+15 -23
View File
@@ -49,12 +49,6 @@
G_BEGIN_DECLS
#ifdef G_OS_WIN32
/* MSC and Cross-compilatin will use this */
int vasprintf (char **strp, const char *fmt, va_list ap);
#endif
/*
* Basic data types
*/
@@ -182,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);
@@ -609,10 +602,14 @@ void g_assertion_message (const gchar *format, ...) G_GNUC_NORETURN
#define g_message(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_MESSAGE, __VA_ARGS__)
#define g_debug(...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, __VA_ARGS__)
#endif /* ndef HAVE_C99_SUPPORT */
#define g_log_set_handler(a,b,c,d)
#define G_GNUC_INTERNAL
typedef void (*GLogFunc) (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data);
typedef void (*GPrintFunc) (const gchar *string);
void g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data);
GLogFunc g_log_set_default_handler (GLogFunc log_func, gpointer user_data);
GPrintFunc g_set_print_handler (GPrintFunc func);
GPrintFunc g_set_printerr_handler (GPrintFunc func);
/*
* Conversions
*/
@@ -727,8 +724,16 @@ GUnicodeBreakType g_unichar_break_type (gunichar c);
#define G_UNLIKELY(x) (x)
#endif
#if defined(_MSC_VER)
#define eg_unreachable() __assume(0)
#elif defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 5)))
#define eg_unreachable() __builtin_unreachable()
#else
#define eg_unreachable()
#endif
#define g_assert(x) G_STMT_START { if (G_UNLIKELY (!(x))) g_assertion_message ("* Assertion at %s:%d, condition `%s' not met\n", __FILE__, __LINE__, #x); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); } G_STMT_END
#define g_assert_not_reached() G_STMT_START { g_assertion_message ("* Assertion: should not be reached at %s:%d\n", __FILE__, __LINE__); eg_unreachable(); } G_STMT_END
/*
* Unicode conversion
@@ -1008,19 +1013,6 @@ glong g_utf8_pointer_to_offset (const gchar *str, const gchar *pos);
#define G_PRIORITY_DEFAULT 0
#define G_PRIORITY_DEFAULT_IDLE 200
/*
* Empty thread functions, not used by eglib
*/
#define g_thread_supported() TRUE
#define g_thread_init(x) G_STMT_START { if (x != NULL) { g_error ("No vtable supported in g_thread_init"); } } G_STMT_END
#define G_LOCK_DEFINE(name) int name;
#define G_LOCK_DEFINE_STATIC(name) static int name;
#define G_LOCK_EXTERN(name)
#define G_LOCK(name)
#define G_TRYLOCK(name)
#define G_UNLOCK(name)
#define GUINT16_SWAP_LE_BE_CONSTANT(x) ((((guint16) x) >> 8) | ((((guint16) x) << 8)))
#define GUINT16_SWAP_LE_BE(x) ((guint16) (((guint16) x) >> 8) | ((((guint16)(x)) & 0xff) << 8))
+167 -92
View File
@@ -31,87 +31,51 @@
#include <stdlib.h>
#include <glib.h>
#include "vasprintf.h"
/* The current fatal levels, error is always fatal */
static GLogLevelFlags fatal = G_LOG_LEVEL_ERROR;
static GLogFunc default_log_func;
static gpointer default_log_func_user_data;
static GPrintFunc stdout_handler, stderr_handler;
#if PLATFORM_ANDROID
#include <android/log.h>
static android_LogPriority
to_android_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ANDROID_LOG_FATAL;
case G_LOG_LEVEL_CRITICAL: return ANDROID_LOG_ERROR;
case G_LOG_LEVEL_WARNING: return ANDROID_LOG_WARN;
case G_LOG_LEVEL_MESSAGE: return ANDROID_LOG_INFO;
case G_LOG_LEVEL_INFO: return ANDROID_LOG_DEBUG;
case G_LOG_LEVEL_DEBUG: return ANDROID_LOG_VERBOSE;
}
return ANDROID_LOG_UNKNOWN;
}
static void
out_vfprintf (FILE *ignore, const gchar *format, va_list args)
{
/* TODO: provide a proper app name */
__android_log_vprint (ANDROID_LOG_ERROR, "mono", format, args);
}
#elif MONOTOUCH && defined(__arm__)
#include <asl.h>
static int
to_asl_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ASL_LEVEL_CRIT;
case G_LOG_LEVEL_CRITICAL: return ASL_LEVEL_ERR;
case G_LOG_LEVEL_WARNING: return ASL_LEVEL_WARNING;
case G_LOG_LEVEL_MESSAGE: return ASL_LEVEL_NOTICE;
case G_LOG_LEVEL_INFO: return ASL_LEVEL_INFO;
case G_LOG_LEVEL_DEBUG: return ASL_LEVEL_DEBUG;
}
return ASL_LEVEL_ERR;
}
static void
out_vfprintf (FILE *ignore, const gchar *format, va_list args)
{
asl_vlog (NULL, NULL, ASL_LEVEL_WARNING, format, args);
}
#else
static void
out_vfprintf (FILE *file, const gchar *format, va_list args)
{
vfprintf (file, format, args);
}
#endif
static void default_stdout_handler (const gchar *string);
static void default_stderr_handler (const gchar *string);
void
g_print (const gchar *format, ...)
{
char *msg;
va_list args;
va_start (args, format);
out_vfprintf (stdout, format, args);
if (vasprintf (&msg, format, args) < 0)
return;
va_end (args);
if (!stdout_handler)
stdout_handler = default_stdout_handler;
stdout_handler (msg);
free (msg);
}
void
g_printerr (const gchar *format, ...)
{
char *msg;
va_list args;
va_start (args, format);
out_vfprintf (stderr, format, args);
if (vasprintf (&msg, format, args) < 0)
return;
va_end (args);
if (!stderr_handler)
stderr_handler = default_stderr_handler;
stderr_handler (msg);
free (msg);
}
GLogLevelFlags
@@ -138,42 +102,16 @@ g_log_set_fatal_mask (const gchar *log_domain, GLogLevelFlags fatal_mask)
void
g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, va_list args)
{
#if PLATFORM_ANDROID
__android_log_vprint (to_android_priority (log_level), log_domain, format, args);
#elif MONOTOUCH && defined(__arm__)
asl_vlog (NULL, NULL, to_asl_priority (log_level), format, args);
#else
char *msg;
if (!default_log_func)
default_log_func = g_log_default_handler;
if (vasprintf (&msg, format, args) < 0)
return;
#ifdef G_OS_WIN32
printf ("%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#else
#if MONOTOUCH
FILE *target = stderr;
#else
FILE *target = stdout;
#endif
fprintf (target, "%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
msg);
#endif
default_log_func (log_domain, log_level, msg, default_log_func_user_data);
free (msg);
if (log_level & fatal){
fflush (stdout);
fflush (stderr);
}
#endif
if (log_level & fatal){
abort ();
}
}
void
@@ -194,6 +132,143 @@ g_assertion_message (const gchar *format, ...)
va_start (args, format);
g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
va_end (args);
abort ();
}
#if PLATFORM_ANDROID
#include <android/log.h>
static android_LogPriority
to_android_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ANDROID_LOG_FATAL;
case G_LOG_LEVEL_CRITICAL: return ANDROID_LOG_ERROR;
case G_LOG_LEVEL_WARNING: return ANDROID_LOG_WARN;
case G_LOG_LEVEL_MESSAGE: return ANDROID_LOG_INFO;
case G_LOG_LEVEL_INFO: return ANDROID_LOG_DEBUG;
case G_LOG_LEVEL_DEBUG: return ANDROID_LOG_VERBOSE;
}
return ANDROID_LOG_UNKNOWN;
}
void
g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
{
__android_log_write (to_android_priority (log_level), log_domain, message);
if (log_level & fatal)
abort ();
}
static void
default_stdout_handler (const gchar *message)
{
/* TODO: provide a proper app name */
__android_log_write (ANDROID_LOG_ERROR, "mono", message);
}
static void
default_stderr_handler (const gchar *message)
{
/* TODO: provide a proper app name */
__android_log_write (ANDROID_LOG_ERROR, "mono", message);
}
#elif defined(HOST_IOS)
#include <asl.h>
static int
to_asl_priority (GLogLevelFlags log_level)
{
switch (log_level & G_LOG_LEVEL_MASK)
{
case G_LOG_LEVEL_ERROR: return ASL_LEVEL_CRIT;
case G_LOG_LEVEL_CRITICAL: return ASL_LEVEL_ERR;
case G_LOG_LEVEL_WARNING: return ASL_LEVEL_WARNING;
case G_LOG_LEVEL_MESSAGE: return ASL_LEVEL_NOTICE;
case G_LOG_LEVEL_INFO: return ASL_LEVEL_INFO;
case G_LOG_LEVEL_DEBUG: return ASL_LEVEL_DEBUG;
}
return ASL_LEVEL_ERR;
}
void
g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
{
asl_log (NULL, NULL, to_asl_priority (log_level), "%s", message);
if (log_level & fatal)
abort ();
}
static void
default_stdout_handler (const gchar *message)
{
asl_log (NULL, NULL, ASL_LEVEL_WARNING, "%s", message);
}
static void
default_stderr_handler (const gchar *message)
{
asl_log (NULL, NULL, ASL_LEVEL_WARNING, "%s", message);
}
#else
void
g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
{
FILE *target = stdout;
fprintf (target, "%s%s%s\n",
log_domain != NULL ? log_domain : "",
log_domain != NULL ? ": " : "",
message);
if (log_level & fatal) {
fflush (stdout);
fflush (stderr);
abort ();
}
}
static void
default_stdout_handler (const gchar *string)
{
fprintf (stdout, "%s", string);
}
static void
default_stderr_handler (const gchar *string)
{
fprintf (stderr, "%s", string);
}
#endif
GLogFunc
g_log_set_default_handler (GLogFunc log_func, gpointer user_data)
{
GLogFunc old = default_log_func;
default_log_func = log_func;
default_log_func_user_data = user_data;
return old;
}
GPrintFunc
g_set_print_handler (GPrintFunc func)
{
GPrintFunc old = stdout_handler;
stdout_handler = func;
return old;
}
GPrintFunc
g_set_printerr_handler (GPrintFunc func)
{
GPrintFunc old = stderr_handler;
stderr_handler = func;
return old;
}
+2 -2
View File
@@ -126,7 +126,7 @@ g_ptr_array_remove_index(GPtrArray *array, guint index)
gpointer removed_node;
g_return_val_if_fail(array != NULL, NULL);
g_return_val_if_fail(index >= 0 || index < array->len, NULL);
g_return_val_if_fail(index < array->len, NULL);
removed_node = array->pdata[index];
@@ -147,7 +147,7 @@ g_ptr_array_remove_index_fast(GPtrArray *array, guint index)
gpointer removed_node;
g_return_val_if_fail(array != NULL, NULL);
g_return_val_if_fail(index >= 0 || index < array->len, NULL);
g_return_val_if_fail(index < array->len, NULL);
removed_node = array->pdata[index];
+27 -2
View File
@@ -41,6 +41,10 @@
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -49,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>
@@ -209,6 +217,23 @@ write_all (int fd, const void *vbuf, size_t n)
return nwritten;
}
#ifndef G_OS_WIN32
static int
g_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
}
#endif
gboolean
g_spawn_command_line_sync (const gchar *command_line,
gchar **standard_output,
@@ -252,7 +277,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 = g_getdtablesize () - 1; i >= 3; i--)
close (i);
/* G_SPAWN_SEARCH_PATH is always enabled for g_spawn_command_line_sync */
@@ -413,7 +438,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 = g_getdtablesize () - 1; i >= 3; i--)
close (i);
}
+2
View File
@@ -32,6 +32,8 @@
#include <ctype.h>
#include <glib.h>
#include "vasprintf.h"
/* This is not a macro, because I dont want to put _GNU_SOURCE in the glib.h header */
gchar *
g_strndup (const gchar *str, gsize n)
+24
View File
@@ -88,12 +88,24 @@ merge_lists (list_node *first, list_node *second, GCompareFunc func)
static inline list_node *
sweep_up (struct sort_info *si, list_node *list, int upto)
{
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
/*
* GCC incorrectly thinks we're writing below si->ranks array bounds.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
int i;
for (i = si->min_rank; i < upto; ++i) {
list = merge_lists (si->ranks [i], list, si->func);
si->ranks [i] = NULL;
}
return list;
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
#pragma GCC diagnostic pop
#endif
}
/*
@@ -124,6 +136,14 @@ sweep_up (struct sort_info *si, list_node *list, int upto)
static inline void
insert_list (struct sort_info *si, list_node* list, int rank)
{
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
/*
* GCC incorrectly thinks we're writing below si->ranks array bounds.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
int i;
if (rank > si->n_ranks) {
@@ -149,6 +169,10 @@ insert_list (struct sort_info *si, list_node* list, int rank)
si->n_ranks = i + 1;
si->min_rank = i;
si->ranks [i] = list;
#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
#pragma GCC diagnostic pop
#endif
}
#undef stringify2
+11
View File
@@ -0,0 +1,11 @@
#ifndef __VASPRINTF_H
#define __VASPRINTF_H
#include <stdarg.h>
#include <config.h>
#ifndef HAVE_VASPRINTF
int vasprintf(char **ret, const char *fmt, va_list ap);
#endif
#endif /* __VASPRINTF_H */
-18
View File
@@ -37,26 +37,8 @@ test_eglib_LDADD = ../src/libeglib.la $(LIBICONV)
run-eglib: all
srcdir=`readlink -f $(srcdir)` ./test-eglib
if HAVE_GLIB
noinst_PROGRAMS = test-glib test-eglib
test_glib_SOURCES = $(SOURCES)
test_glib_CFLAGS = `pkg-config --cflags glib-2.0` -DDRIVER_NAME=\"GLib\"
test_glib_LDFLAGS = `pkg-config --libs glib-2.0 gmodule-2.0`
run-glib: all
srcdir=`readlink -f $(srcdir)` ./test-glib
run-both: run-glib run-eglib
else
noinst_PROGRAMS = test-eglib
run-both: run-eglib
endif
MAINTAINERCLEANFILES = Makefile.in
+1 -1
View File
@@ -115,7 +115,7 @@ test_file ()
#ifndef G_OS_WIN32 /* FIXME */
gchar *sympath;
gint ignored;
gint ignored G_GNUC_UNUSED;
#endif
res = g_file_test (NULL, 0);
+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 7dc4e513ea.
Vendored
+1 -1
Submodule external/rx updated: 00c1aadf14...b29a4b0fda.
+7 -1
View File
@@ -486,11 +486,15 @@ static void* JNIEnv_vtable[] =
0 // jlong JNICALL GetDirectBufferCapacity(jobject buf);
};
JNIEXPORT void** JNICALL ikvm_GetJNIEnvVTable()
void** ikvm_GetJNIEnvVTable(void);
JNIEXPORT void** JNICALL ikvm_GetJNIEnvVTable(void)
{
return JNIEnv_vtable;
}
void* JNICALL ikvm_MarshalDelegate(void* p);
JNIEXPORT void* JNICALL ikvm_MarshalDelegate(void* p)
{
return p;
@@ -498,6 +502,8 @@ JNIEXPORT void* JNICALL ikvm_MarshalDelegate(void* p)
typedef jint (JNICALL *PJNI_ONLOAD)(JavaVM* vm, void* reserved);
jint JNICALL ikvm_CallOnLoad(PJNI_ONLOAD method, JavaVM* vm, void* reserved);
JNIEXPORT jint JNICALL ikvm_CallOnLoad(PJNI_ONLOAD method, JavaVM* vm, void* reserved)
{
return method(vm, reserved);
+12
View File
@@ -61,16 +61,22 @@
#include <sys/mman.h>
#include "jni.h"
void* JNICALL ikvm_LoadLibrary(char* psz);
JNIEXPORT void* JNICALL ikvm_LoadLibrary(char* psz)
{
return g_module_open(psz, 0);
}
void JNICALL ikvm_FreeLibrary(GModule* handle);
JNIEXPORT void JNICALL ikvm_FreeLibrary(GModule* handle)
{
g_module_close(handle);
}
void* JNICALL ikvm_GetProcAddress(GModule* handle, char* name, jint argc);
JNIEXPORT void* JNICALL ikvm_GetProcAddress(GModule* handle, char* name, jint argc)
{
void *symbol;
@@ -83,16 +89,22 @@
return NULL;
}
void* JNICALL ikvm_mmap(int fd, jboolean writeable, jboolean copy_on_write, jlong position, jint size);
JNIEXPORT void* JNICALL ikvm_mmap(int fd, jboolean writeable, jboolean copy_on_write, jlong position, jint size)
{
return mmap(0, size, writeable ? PROT_WRITE | PROT_READ : PROT_READ, copy_on_write ? MAP_PRIVATE : MAP_SHARED, fd, position);
}
int JNICALL ikvm_munmap(void* address, jint size);
JNIEXPORT int JNICALL ikvm_munmap(void* address, jint size)
{
return munmap(address, size);
}
int JNICALL ikvm_msync(void* address, jint size);
JNIEXPORT int JNICALL ikvm_msync(void* address, jint size)
{
#if defined(__native_client__) && defined(USE_NEWLIB)
+1 -1
View File
@@ -68,7 +68,7 @@ libmonogc_static_la_LDFLAGS = -static
EXTRA_DIST += alpha_mach_dep.S mips_sgi_mach_dep.s sparc_mach_dep.S
AM_CFLAGS = @GC_CFLAGS@
AM_CFLAGS = $(WERROR_CFLAGS) @GC_CFLAGS@
if CPLUSPLUS
extra_checks = test_cpp
+1 -1
View File
@@ -331,7 +331,7 @@ DOC_FILES= README.QUICK doc/README.Mac doc/README.MacOSX doc/README.OS2 \
TESTS= tests/test.c tests/test_cpp.cc tests/trace_test.c \
tests/leak_test.c tests/thread_leak_test.c tests/middle.c
GNU_BUILD_FILES= configure.in Makefile.am configure acinclude.m4 \
GNU_BUILD_FILES= configure.ac Makefile.am configure acinclude.m4 \
libtool.m4 install-sh configure.host Makefile.in \
aclocal.m4 config.sub config.guess \
include/Makefile.am include/Makefile.in \
+3 -3
View File
@@ -5,8 +5,8 @@ This is a modified version of Boehm GC 6.1 for Mono.
- Makefile changes:
libgc has a lot of configurable options which are AC_DEFINE()d in its
configure.in. To make it easier to build and bundle it with Mono, I
replaced most of the orignal configure.in and the makefiles with custom
configure.ac. To make it easier to build and bundle it with Mono, I
replaced most of the orignal configure.ac and the makefiles with custom
versions which just define what we actually need for Mono.
This means that you can just run configure in this directory and it'll
@@ -58,7 +58,7 @@ This is a modified version of Boehm GC 6.1 for Mono.
cvs diff -u -r LIBGC
When importing new upstream versions, don't import the new configure.in or any of the
When importing new upstream versions, don't import the new configure.ac or any of the
Makefile.am's; they've been replaced by custom versions. Just import all the new source
files and it should be fine.
+3 -3
View File
@@ -22,11 +22,11 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*)
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|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*)
+5 -5
View File
@@ -22,7 +22,7 @@ if [ -z "$LIBTOOL" ]; then
fi
fi
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtool' installed to compile Mono."
@@ -32,8 +32,8 @@ fi
}
}
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
grep "^AM_GNU_GETTEXT" $srcdir/configure.ac >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`gettext' installed to compile Mono."
@@ -80,7 +80,7 @@ xlc )
esac
if grep "^AC_PROG_LIBTOOL" configure.in >/dev/null; then
if grep "^AC_PROG_LIBTOOL" configure.ac >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
${LIBTOOL}ize --force --copy
@@ -99,7 +99,7 @@ aclocal $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AC_CONFIG_HEADERS" configure.in >/dev/null; then
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
+567
View File
@@ -0,0 +1,567 @@
# Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved.
#
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
#
# Permission is hereby granted to use or copy this program
# for any purpose, provided the above notices are retained on all copies.
# Permission to modify the code and to distribute modified code is granted,
# provided the above notices are retained, and a notice that the code was
# modified is included with the above copyright notice.
#
# Original author: Tom Tromey
# Modified by: Grzegorz Jakacki <jakacki at acm dot org>
dnl Process this file with autoconf to produce configure.
AC_PREREQ([2.53])
AC_INIT([libgc-mono], [6.6], [[email protected]])
AM_INIT_AUTOMAKE([1.9 no-define foreign])
AC_CONFIG_SRCDIR(gcj_mlc.c)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AC_SUBST(PACKAGE)
AC_SUBST(GC_VERSION)
AC_PROG_CC
AC_PROG_CXX
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl automake 1.6 and later need the AM_PROG_AS macro.
ifdef([AM_PROG_AS],[AM_PROG_AS],[])
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :) # :)
AC_PROG_INSTALL
AM_MAINTAINER_MODE
. [$]{srcdir}/configure.host
# We use a separate variable to pass down CPPFLAGS and CFLAGS from the main mono
# configure, because of autoconf brokeness
if test "x$CPPFLAGS_FOR_LIBGC" != "x"; then
CPPFLAGS=$CPPFLAGS_FOR_LIBGC
fi
if test "x$CFLAGS_FOR_LIBGC" != "x"; then
CFLAGS=$CFLAGS_FOR_LIBGC
fi
GC_CFLAGS=${gc_cflags}
AC_SUBST(GC_CFLAGS)
case $enable_embed_check in
no) ;;
*) AC_MSG_ERROR([This module is now part of 'mono' and cannot be built as a stand-alone module any longer.]) ;;
esac
THREADS=$with_libgc_threads
AC_ARG_ENABLE(win32-dllmain,
[ --enable-win32-dllmain Define the DllMain function in win32_threads.c even if the collector is not built as a dll],
)
AC_ARG_ENABLE(parallel-mark,
[ --enable-parallel-mark parallelize marking and free list construction],
[case "$THREADS" in
no | none | single)
AC_MSG_ERROR([Parallel mark requires --enable-threads=x spec])
;;
esac]
)
AC_ARG_ENABLE(cplusplus,
[ --enable-cplusplus install C++ support],
)
AM_CPPFLAGS=-I${srcdir}/include
THREADDLLIBS=
## Libraries needed to support dynamic loading and/or threads.
case "$THREADS" in
no | none | single)
THREADS=none
;;
posix | pthreads)
THREADS=posix
AC_CHECK_LIB(pthread, pthread_self, THREADDLLIBS="-lpthread",,)
case "$host" in
x86-*-linux* | ia64-*-linux* | i386-*-linux* | i486-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha*-*-linux* | s390*-*-linux* | sparc*-*-linux* | powerpc-*-linux*)
AC_DEFINE(GC_LINUX_THREADS)
AC_DEFINE(_REENTRANT)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-linux* | *-*-nacl*)
AC_DEFINE(GC_LINUX_THREADS)
AC_DEFINE(_REENTRANT)
;;
*-*-aix*)
AC_DEFINE(GC_AIX_THREADS)
AC_DEFINE(_REENTRANT)
;;
*-*-hpux*)
AC_MSG_WARN("Only HP/UX 11 threads are supported.")
AC_DEFINE(GC_HPUX_THREADS)
AC_DEFINE(_POSIX_C_SOURCE,199506L)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
THREADDLLIBS="-lpthread -lrt"
;;
*-*-kfreebsd*-gnu)
AC_DEFINE(GC_FREEBSD_THREADS)
INCLUDES="$INCLUDES -pthread"
THREADDLLIBS=-pthread
AC_DEFINE(_REENTRANT)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
AC_DEFINE(USE_COMPILER_TLS)
;;
*-*-freebsd*)
AC_DEFINE(GC_FREEBSD_THREADS)
if test "x$PTHREAD_CFLAGS" != "x"; then
AM_CPPFLAGS="$AM_CPPFLAGS $PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
THREADDLLIBS=-pthread
else
THREADDLLIBS="$PTHREAD_LIBS"
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-solaris*)
AC_DEFINE(GC_SOLARIS_THREADS)
AC_DEFINE(GC_SOLARIS_PTHREADS)
;;
*-*-irix*)
AC_DEFINE(GC_IRIX_THREADS)
;;
*-*-cygwin*)
AC_DEFINE(GC_WIN32_THREADS)
;;
*-*-darwin*)
AC_DEFINE(GC_DARWIN_THREADS)
AC_DEFINE(THREAD_LOCAL_ALLOC)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
;;
*-*-netbsd*)
AC_DEFINE(GC_NETBSD_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-openbsd*)
AC_DEFINE(GC_OPENBSD_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-osf*)
AC_DEFINE(GC_OSF1_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
AC_DEFINE(THREAD_LOCAL_ALLOC)
# May want to enable it in other cases, too.
# Measurements havent yet been done.
fi
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
THREADDLLIBS="-lpthread -lrt"
;;
*)
AC_MSG_ERROR("Pthreads not supported by the GC on this platform.")
;;
esac
;;
win32)
AC_DEFINE(GC_WIN32_THREADS)
dnl Wine getenv may not return NULL for missing entry
AC_DEFINE(NO_GETENV)
if test "${enable_win32_dllmain}" = yes; then
AC_DEFINE(GC_INSIDE_DLL)
fi
;;
dgux386)
THREADS=dgux386
AC_MSG_RESULT($THREADDLLIBS)
# Use pthread GCC switch
THREADDLLIBS=-pthread
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
AC_DEFINE(GC_DGUX386_THREADS)
AC_DEFINE(DGUX_THREADS)
# Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
;;
aix)
THREADS=posix
THREADDLLIBS=-lpthread
AC_DEFINE(GC_AIX_THREADS)
AC_DEFINE(_REENTRANT)
;;
decosf1 | irix | mach | os2 | solaris | dce | vxworks)
AC_MSG_ERROR(thread package $THREADS not yet supported)
;;
*)
AC_MSG_ERROR($THREADS is an unknown thread package)
;;
esac
AC_SUBST(THREADDLLIBS)
case "$host" in
powerpc-*-darwin*)
powerpc_darwin=true
;;
esac
AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue)
# Check if the GCC builtin __sync_bool_compare_and_swap is available.
# It is preferred in gc_locks.h for PPC as GCC 4.4 has a problem with the inline assembly there.
AC_MSG_CHECKING(for __sync_bool_compare_and_swap)
AC_TRY_COMPILE([],[
volatile unsigned int foo = 0;
int main(int argc, char** argv) {
unsigned int r1 = __sync_bool_compare_and_swap(&foo, 0, 1);
return 0;
}
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAS___SYNC_BOOL_COMPARE_AND_SWAP)
], [
AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for xlc)
AC_TRY_COMPILE([],[
#ifndef __xlC__
# error
#endif
], [compiler_xlc=yes], [compiler_xlc=no])
AC_MSG_RESULT($compiler_xlc)
AM_CONDITIONAL(COMPILER_XLC,test $compiler_xlc = yes)
if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
# the darwin stack-frame-walking code is completely broken on xlc
AC_DEFINE(DARWIN_DONT_PARSE_STACK)
fi
# We never want libdl on darwin. It is a fake libdl that just ends up making
# dyld calls anyway
case "$host" in
*-*-darwin*) ;;
*)
AC_CHECK_LIB(dl, dlopen, THREADDLLIBS="$THREADDLLIBS -ldl")
;;
esac
AC_SUBST(EXTRA_TEST_LIBS)
target_all=libgc.la
AC_SUBST(target_all)
dnl If the target is an eCos system, use the appropriate eCos
dnl I/O routines.
dnl FIXME: this should not be a local option but a global target
dnl system; at present there is no eCos target.
TARGET_ECOS="no"
AC_ARG_WITH(ecos,
[ --with-ecos enable runtime eCos target support],
TARGET_ECOS="$with_ecos"
)
addobjs=
addlibs=
addincludes=
addtests=
CXXAM_CPPFLAGS=
case "$TARGET_ECOS" in
no)
;;
*)
AC_DEFINE(ECOS)
CXXINCLUDES="-I${TARGET_ECOS}/include"
addobjs="$addobjs ecos.lo"
;;
esac
if test "${enable_cplusplus}" = yes; then
addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
addtests="$addtests test_cpp"
fi
AM_CONDITIONAL(CPLUSPLUS, test "${enable_cplusplus}" = yes)
AC_SUBST(CXX)
AC_SUBST(AM_CPPFLAGS)
AC_SUBST(CXXINCLUDES)
# Configuration of shared libraries
#
AC_MSG_CHECKING(whether to build shared libraries)
AC_ENABLE_SHARED
case "$host" in
alpha-*-openbsd*)
enable_shared=no
AC_MSG_RESULT(no)
;;
*)
AC_MSG_RESULT(yes)
;;
esac
# Configuration of machine-dependent code
#
AC_MSG_CHECKING(which machine-dependent code should be used)
machdep=
case "$host" in
alpha-*-openbsd*)
machdep="alpha_mach_dep.lo"
if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
AC_MSG_WARN(OpenBSD/Alpha without dlopen(). Shared library support is disabled)
fi
;;
alpha*-*-linux*)
machdep="alpha_mach_dep.lo"
;;
i?86-*-solaris2.[[89]] | i?86-*-solaris2.1?)
AC_DEFINE(SOLARIS25_PROC_VDB_BUG_FIXED)
;;
mipstx39-*-elf*)
machdep="mips_ultrix_mach_dep.lo"
AC_DEFINE(STACKBASE, __stackbase)
AC_DEFINE(DATASTART_IS_ETEXT)
;;
mips-dec-ultrix*)
machdep="mips_ultrix_mach-dep.lo"
;;
mips-nec-sysv*|mips-unknown-sysv*)
;;
mips*-*-linux*)
;;
mips-*-*)
machdep="mips_sgi_mach_dep.lo"
AC_DEFINE(NO_EXECUTE_PERMISSION)
;;
sparc-*-netbsd*)
machdep="sparc_netbsd_mach_dep.lo"
;;
sparc-sun-solaris2.3)
machdep="sparc_mach_dep.lo"
AC_DEFINE(SUNOS53_SHARED_LIB)
;;
sparc*-sun-solaris2.*)
machdep="sparc_mach_dep.lo"
;;
ia64-*-*)
machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
target_ia64=true
;;
*-*-nacl*)
AC_DEFINE(NO_EXECUTE_PERMISSION)
;;
esac
if test x"$machdep" = x; then
AC_MSG_RESULT($machdep)
machdep="mach_dep.lo"
fi
addobjs="$addobjs $machdep"
#
# Adding object files directly to _LIBADD breaks -j builds, so we need to add the sources
# instead, but _SOURCES can't contain autoconf substitutions, so add them using automake
# conditionals.
#
#AC_SUBST(addobjs)
AC_SUBST(addincludes)
AC_SUBST(addlibs)
AC_SUBST(addtests)
AM_CONDITIONAL(TARGET_IA64,test x$target_ia64 = xtrue)
AC_PROG_LIBTOOL
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
DOLT
#
# Check for AViiON Machines running DGUX
#
ac_is_dgux=no
AC_CHECK_HEADER(sys/dg_sys_info.h,
[ac_is_dgux=yes;])
## :GOTCHA: we do not check anything but sys/dg_sys_info.h
if test $ac_is_dgux = yes; then
if test "$enable_full_debug" = "yes"; then
CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
else
CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
fi
AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
fi
dnl We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
[ --with-target-subdir=SUBDIR
configuring with a cross compiler])
AC_ARG_WITH(cross-host,
[ --with-cross-host=HOST configuring with a cross compiler])
# automake wants to see AC_EXEEXT. But we don't need it. And having
# it is actually a problem, because the compiler we're passed can't
# necessarily do a full link. So we fool automake here.
if false; then
# autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
# to nothing, so nothing would remain between `then' and `fi' if it
# were not for the `:' below.
:
AC_EXEEXT
fi
AC_MSG_CHECKING([for threads package to use])
AC_MSG_RESULT($THREADS)
dnl As of 4.13a2, the collector will not properly work on Solaris when
dnl built with gcc and -O. So we remove -O in the appropriate case.
dnl Not needed anymore on Solaris.
AC_MSG_CHECKING(whether Solaris gcc optimization fix is necessary)
case "$host" in
*aix*)
if test "$GCC" = yes; then
AC_MSG_RESULT(yes)
new_CFLAGS=
for i in $CFLAGS; do
case "$i" in
-O*)
;;
*)
new_CFLAGS="$new_CFLAGS $i"
;;
esac
done
CFLAGS="$new_CFLAGS"
else
AC_MSG_RESULT(no)
fi
;;
*) AC_MSG_RESULT(no) ;;
esac
dnl We need to override the top-level CFLAGS. This is how we do it.
MY_CFLAGS="$CFLAGS"
AC_SUBST(MY_CFLAGS)
dnl Include defines that have become de facto standard.
dnl ALL_INTERIOR_POINTERS can be overridden in startup code.
AC_DEFINE(SILENT)
AC_DEFINE(NO_SIGNALS)
AC_DEFINE(NO_EXECUTE_PERMISSION)
dnl AC_DEFINE(ALL_INTERIOR_POINTERS)
dnl By default, make the library as general as possible.
AC_DEFINE(JAVA_FINALIZATION)
AC_DEFINE(GC_GCJ_SUPPORT)
AC_DEFINE(ATOMIC_UNCOLLECTABLE)
dnl This is something of a hack. When cross-compiling we turn off
dnl some functionality. We also enable the "small" configuration.
dnl These is only correct when targetting an embedded system. FIXME.
if test -n "${with_cross_host}"; then
AC_DEFINE(NO_SIGSET)
AC_DEFINE(NO_CLOCK)
AC_DEFINE(SMALL_CONFIG)
AC_DEFINE(NO_DEBUGGING)
fi
UNWINDLIBS=
AC_ARG_ENABLE(full-debug,
[ --enable-full-debug include full support for pointer backtracing etc.],
[ if test "$enable_full_debug" = "yes"; then
AC_MSG_WARN("Should define GC_DEBUG and use debug alloc. in clients.")
AC_DEFINE(KEEP_BACK_PTRS)
AC_DEFINE(DBG_HDRS_ALL)
case $host in
ia64-*-linux* )
AC_DEFINE(MAKE_BACK_GRAPH)
AC_DEFINE(SAVE_CALL_COUNT, 8)
AC_CHECK_LIB(unwind, backtrace, [
AC_DEFINE(GC_HAVE_BUILTIN_BACKTRACE)
UNWINDLIBS=-lunwind
AC_MSG_WARN("Client code may need to link against libunwind.")
])
;;
x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
AC_DEFINE(MAKE_BACK_GRAPH)
AC_MSG_WARN("Client must not use -fomit-frame-pointer.")
AC_DEFINE(SAVE_CALL_COUNT, 8)
;;
i[3456]86-*-dgux*)
AC_DEFINE(MAKE_BACK_GRAPH)
;;
esac ]
fi)
AC_SUBST(UNWINDLIBS)
AC_ARG_ENABLE(redirect-malloc,
[ --enable-redirect-malloc redirect malloc and friends to GC routines])
if test "${enable_redirect_malloc}" = yes; then
if test "${enable_full_debug}" = yes; then
AC_DEFINE(REDIRECT_MALLOC, GC_debug_malloc_replacement)
AC_DEFINE(REDIRECT_REALLOC, GC_debug_realloc_replacement)
AC_DEFINE(REDIRECT_FREE, GC_debug_free)
else
AC_DEFINE(REDIRECT_MALLOC, GC_malloc)
fi
fi
AC_DEFINE(_IN_LIBGC)
AC_ARG_ENABLE(gc-assertions,
[ --enable-gc-assertions collector-internal assertion checking])
if test "${enable_gc_assertions}" = yes; then
AC_DEFINE(GC_ASSERTIONS)
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
if test x$werror_flag = xyes; then
WERROR_CFLAGS="-Werror"
fi
AC_SUBST([WERROR_CFLAGS])
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"
else
multilib_arg=
fi
AC_OUTPUT(Makefile
m4/Makefile
include/Makefile
include/private/Makefile
doc/Makefile,,
srcdir=${srcdir}
host=${host}
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
CC="${CC}"
DEFS="$DEFS"
)
-550
View File
@@ -1,550 +0,0 @@
# Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved.
#
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
#
# Permission is hereby granted to use or copy this program
# for any purpose, provided the above notices are retained on all copies.
# Permission to modify the code and to distribute modified code is granted,
# provided the above notices are retained, and a notice that the code was
# modified is included with the above copyright notice.
#
# Original author: Tom Tromey
# Modified by: Grzegorz Jakacki <jakacki at acm dot org>
dnl Process this file with autoconf to produce configure.
AC_PREREQ([2.53])
AC_INIT([libgc-mono], [6.6], [[email protected]])
AM_INIT_AUTOMAKE([1.9 no-define foreign])
AC_CONFIG_SRCDIR(gcj_mlc.c)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AC_SUBST(PACKAGE)
AC_SUBST(GC_VERSION)
AC_PROG_CC
AC_PROG_CXX
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl automake 1.6 and later need the AM_PROG_AS macro.
ifdef([AM_PROG_AS],[AM_PROG_AS],[])
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :) # :)
AC_PROG_INSTALL
AM_MAINTAINER_MODE
. [$]{srcdir}/configure.host
# We use a separate variable to pass down CPPFLAGS and CFLAGS from the main mono
# configure, because of autoconf brokeness
if test "x$CPPFLAGS_FOR_LIBGC" != "x"; then
CPPFLAGS=$CPPFLAGS_FOR_LIBGC
fi
if test "x$CFLAGS_FOR_LIBGC" != "x"; then
CFLAGS=$CFLAGS_FOR_LIBGC
fi
GC_CFLAGS=${gc_cflags}
AC_SUBST(GC_CFLAGS)
case $enable_embed_check in
no) ;;
*) AC_MSG_ERROR([This module is now part of 'mono' and cannot be built as a stand-alone module any longer.]) ;;
esac
THREADS=$with_libgc_threads
AC_ARG_ENABLE(win32-dllmain,
[ --enable-win32-dllmain Define the DllMain function in win32_threads.c even if the collector is not built as a dll],
)
AC_ARG_ENABLE(parallel-mark,
[ --enable-parallel-mark parallelize marking and free list construction],
[case "$THREADS" in
no | none | single)
AC_MSG_ERROR([Parallel mark requires --enable-threads=x spec])
;;
esac]
)
AC_ARG_ENABLE(cplusplus,
[ --enable-cplusplus install C++ support],
)
AM_CPPFLAGS=-I${srcdir}/include
THREADDLLIBS=
## Libraries needed to support dynamic loading and/or threads.
case "$THREADS" in
no | none | single)
THREADS=none
;;
posix | pthreads)
THREADS=posix
AC_CHECK_LIB(pthread, pthread_self, THREADDLLIBS="-lpthread",,)
case "$host" in
x86-*-linux* | ia64-*-linux* | i386-*-linux* | i486-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha*-*-linux* | s390*-*-linux* | sparc*-*-linux* | powerpc-*-linux*)
AC_DEFINE(GC_LINUX_THREADS)
AC_DEFINE(_REENTRANT)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-linux* | *-*-nacl*)
AC_DEFINE(GC_LINUX_THREADS)
AC_DEFINE(_REENTRANT)
;;
*-*-aix*)
AC_DEFINE(GC_AIX_THREADS)
AC_DEFINE(_REENTRANT)
;;
*-*-hpux*)
AC_MSG_WARN("Only HP/UX 11 threads are supported.")
AC_DEFINE(GC_HPUX_THREADS)
AC_DEFINE(_POSIX_C_SOURCE,199506L)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
THREADDLLIBS="-lpthread -lrt"
;;
*-*-freebsd*)
AC_DEFINE(GC_FREEBSD_THREADS)
if test "x$PTHREAD_CFLAGS" != "x"; then
AM_CPPFLAGS="$AM_CPPFLAGS $PTHREAD_CFLAGS"
fi
if test "x$PTHREAD_LIBS" = "x"; then
THREADDLLIBS=-pthread
else
THREADDLLIBS="$PTHREAD_LIBS"
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-solaris*)
AC_DEFINE(GC_SOLARIS_THREADS)
AC_DEFINE(GC_SOLARIS_PTHREADS)
;;
*-*-irix*)
AC_DEFINE(GC_IRIX_THREADS)
;;
*-*-cygwin*)
AC_DEFINE(GC_WIN32_THREADS)
;;
*-*-darwin*)
AC_DEFINE(GC_DARWIN_THREADS)
AC_DEFINE(THREAD_LOCAL_ALLOC)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
;;
*-*-netbsd*)
AC_DEFINE(GC_NETBSD_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-openbsd*)
AC_DEFINE(GC_OPENBSD_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
;;
*-*-osf*)
AC_DEFINE(GC_OSF1_THREADS)
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
AC_DEFINE(THREAD_LOCAL_ALLOC)
# May want to enable it in other cases, too.
# Measurements havent yet been done.
fi
AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
THREADDLLIBS="-lpthread -lrt"
;;
*)
AC_MSG_ERROR("Pthreads not supported by the GC on this platform.")
;;
esac
;;
win32)
AC_DEFINE(GC_WIN32_THREADS)
dnl Wine getenv may not return NULL for missing entry
AC_DEFINE(NO_GETENV)
if test "${enable_win32_dllmain}" = yes; then
AC_DEFINE(GC_INSIDE_DLL)
fi
;;
dgux386)
THREADS=dgux386
AC_MSG_RESULT($THREADDLLIBS)
# Use pthread GCC switch
THREADDLLIBS=-pthread
if test "${enable_parallel_mark}" = yes; then
AC_DEFINE(PARALLEL_MARK)
fi
AC_DEFINE(THREAD_LOCAL_ALLOC)
AC_DEFINE(GC_DGUX386_THREADS)
AC_DEFINE(DGUX_THREADS)
# Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
;;
aix)
THREADS=posix
THREADDLLIBS=-lpthread
AC_DEFINE(GC_AIX_THREADS)
AC_DEFINE(_REENTRANT)
;;
decosf1 | irix | mach | os2 | solaris | dce | vxworks)
AC_MSG_ERROR(thread package $THREADS not yet supported)
;;
*)
AC_MSG_ERROR($THREADS is an unknown thread package)
;;
esac
AC_SUBST(THREADDLLIBS)
case "$host" in
powerpc-*-darwin*)
powerpc_darwin=true
;;
esac
AM_CONDITIONAL(POWERPC_DARWIN,test x$powerpc_darwin = xtrue)
# Check if the GCC builtin __sync_bool_compare_and_swap is available.
# It is preferred in gc_locks.h for PPC as GCC 4.4 has a problem with the inline assembly there.
AC_MSG_CHECKING(for __sync_bool_compare_and_swap)
AC_TRY_COMPILE([],[
volatile unsigned int foo = 0;
int main(int argc, char** argv) {
unsigned int r1 = __sync_bool_compare_and_swap(&foo, 0, 1);
return 0;
}
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAS___SYNC_BOOL_COMPARE_AND_SWAP)
], [
AC_MSG_RESULT(no)
])
AC_MSG_CHECKING(for xlc)
AC_TRY_COMPILE([],[
#ifndef __xlC__
# error
#endif
], [compiler_xlc=yes], [compiler_xlc=no])
AC_MSG_RESULT($compiler_xlc)
AM_CONDITIONAL(COMPILER_XLC,test $compiler_xlc = yes)
if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
# the darwin stack-frame-walking code is completely broken on xlc
AC_DEFINE(DARWIN_DONT_PARSE_STACK)
fi
# We never want libdl on darwin. It is a fake libdl that just ends up making
# dyld calls anyway
case "$host" in
*-*-darwin*) ;;
*)
AC_CHECK_LIB(dl, dlopen, THREADDLLIBS="$THREADDLLIBS -ldl")
;;
esac
AC_SUBST(EXTRA_TEST_LIBS)
target_all=libgc.la
AC_SUBST(target_all)
dnl If the target is an eCos system, use the appropriate eCos
dnl I/O routines.
dnl FIXME: this should not be a local option but a global target
dnl system; at present there is no eCos target.
TARGET_ECOS="no"
AC_ARG_WITH(ecos,
[ --with-ecos enable runtime eCos target support],
TARGET_ECOS="$with_ecos"
)
addobjs=
addlibs=
addincludes=
addtests=
CXXAM_CPPFLAGS=
case "$TARGET_ECOS" in
no)
;;
*)
AC_DEFINE(ECOS)
CXXINCLUDES="-I${TARGET_ECOS}/include"
addobjs="$addobjs ecos.lo"
;;
esac
if test "${enable_cplusplus}" = yes; then
addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
addtests="$addtests test_cpp"
fi
AM_CONDITIONAL(CPLUSPLUS, test "${enable_cplusplus}" = yes)
AC_SUBST(CXX)
AC_SUBST(AM_CPPFLAGS)
AC_SUBST(CXXINCLUDES)
# Configuration of shared libraries
#
AC_MSG_CHECKING(whether to build shared libraries)
AC_ENABLE_SHARED
case "$host" in
alpha-*-openbsd*)
enable_shared=no
AC_MSG_RESULT(no)
;;
*)
AC_MSG_RESULT(yes)
;;
esac
# Configuration of machine-dependent code
#
AC_MSG_CHECKING(which machine-dependent code should be used)
machdep=
case "$host" in
alpha-*-openbsd*)
machdep="alpha_mach_dep.lo"
if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
AC_MSG_WARN(OpenBSD/Alpha without dlopen(). Shared library support is disabled)
fi
;;
alpha*-*-linux*)
machdep="alpha_mach_dep.lo"
;;
i?86-*-solaris2.[[89]] | i?86-*-solaris2.1?)
AC_DEFINE(SOLARIS25_PROC_VDB_BUG_FIXED)
;;
mipstx39-*-elf*)
machdep="mips_ultrix_mach_dep.lo"
AC_DEFINE(STACKBASE, __stackbase)
AC_DEFINE(DATASTART_IS_ETEXT)
;;
mips-dec-ultrix*)
machdep="mips_ultrix_mach-dep.lo"
;;
mips-nec-sysv*|mips-unknown-sysv*)
;;
mips*-*-linux*)
;;
mips-*-*)
machdep="mips_sgi_mach_dep.lo"
AC_DEFINE(NO_EXECUTE_PERMISSION)
;;
sparc-*-netbsd*)
machdep="sparc_netbsd_mach_dep.lo"
;;
sparc-sun-solaris2.3)
machdep="sparc_mach_dep.lo"
AC_DEFINE(SUNOS53_SHARED_LIB)
;;
sparc*-sun-solaris2.*)
machdep="sparc_mach_dep.lo"
;;
ia64-*-*)
machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
target_ia64=true
;;
*-*-nacl*)
AC_DEFINE(NO_EXECUTE_PERMISSION)
;;
esac
if test x"$machdep" = x; then
AC_MSG_RESULT($machdep)
machdep="mach_dep.lo"
fi
addobjs="$addobjs $machdep"
#
# Adding object files directly to _LIBADD breaks -j builds, so we need to add the sources
# instead, but _SOURCES can't contain autoconf substitutions, so add them using automake
# conditionals.
#
#AC_SUBST(addobjs)
AC_SUBST(addincludes)
AC_SUBST(addlibs)
AC_SUBST(addtests)
AM_CONDITIONAL(TARGET_IA64,test x$target_ia64 = xtrue)
AC_PROG_LIBTOOL
# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
DOLT
#
# Check for AViiON Machines running DGUX
#
ac_is_dgux=no
AC_CHECK_HEADER(sys/dg_sys_info.h,
[ac_is_dgux=yes;])
## :GOTCHA: we do not check anything but sys/dg_sys_info.h
if test $ac_is_dgux = yes; then
if test "$enable_full_debug" = "yes"; then
CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
else
CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
fi
AC_SUBST(CFLAGS)
AC_SUBST(CXXFLAGS)
fi
dnl We use these options to decide which functions to include.
AC_ARG_WITH(target-subdir,
[ --with-target-subdir=SUBDIR
configuring with a cross compiler])
AC_ARG_WITH(cross-host,
[ --with-cross-host=HOST configuring with a cross compiler])
# automake wants to see AC_EXEEXT. But we don't need it. And having
# it is actually a problem, because the compiler we're passed can't
# necessarily do a full link. So we fool automake here.
if false; then
# autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
# to nothing, so nothing would remain between `then' and `fi' if it
# were not for the `:' below.
:
AC_EXEEXT
fi
AC_MSG_CHECKING([for threads package to use])
AC_MSG_RESULT($THREADS)
dnl As of 4.13a2, the collector will not properly work on Solaris when
dnl built with gcc and -O. So we remove -O in the appropriate case.
dnl Not needed anymore on Solaris.
AC_MSG_CHECKING(whether Solaris gcc optimization fix is necessary)
case "$host" in
*aix*)
if test "$GCC" = yes; then
AC_MSG_RESULT(yes)
new_CFLAGS=
for i in $CFLAGS; do
case "$i" in
-O*)
;;
*)
new_CFLAGS="$new_CFLAGS $i"
;;
esac
done
CFLAGS="$new_CFLAGS"
else
AC_MSG_RESULT(no)
fi
;;
*) AC_MSG_RESULT(no) ;;
esac
dnl We need to override the top-level CFLAGS. This is how we do it.
MY_CFLAGS="$CFLAGS"
AC_SUBST(MY_CFLAGS)
dnl Include defines that have become de facto standard.
dnl ALL_INTERIOR_POINTERS can be overridden in startup code.
AC_DEFINE(SILENT)
AC_DEFINE(NO_SIGNALS)
AC_DEFINE(NO_EXECUTE_PERMISSION)
dnl AC_DEFINE(ALL_INTERIOR_POINTERS)
dnl By default, make the library as general as possible.
AC_DEFINE(JAVA_FINALIZATION)
AC_DEFINE(GC_GCJ_SUPPORT)
AC_DEFINE(ATOMIC_UNCOLLECTABLE)
dnl This is something of a hack. When cross-compiling we turn off
dnl some functionality. We also enable the "small" configuration.
dnl These is only correct when targetting an embedded system. FIXME.
if test -n "${with_cross_host}"; then
AC_DEFINE(NO_SIGSET)
AC_DEFINE(NO_CLOCK)
AC_DEFINE(SMALL_CONFIG)
AC_DEFINE(NO_DEBUGGING)
fi
UNWINDLIBS=
AC_ARG_ENABLE(full-debug,
[ --enable-full-debug include full support for pointer backtracing etc.],
[ if test "$enable_full_debug" = "yes"; then
AC_MSG_WARN("Should define GC_DEBUG and use debug alloc. in clients.")
AC_DEFINE(KEEP_BACK_PTRS)
AC_DEFINE(DBG_HDRS_ALL)
case $host in
ia64-*-linux* )
AC_DEFINE(MAKE_BACK_GRAPH)
AC_DEFINE(SAVE_CALL_COUNT, 8)
AC_CHECK_LIB(unwind, backtrace, [
AC_DEFINE(GC_HAVE_BUILTIN_BACKTRACE)
UNWINDLIBS=-lunwind
AC_MSG_WARN("Client code may need to link against libunwind.")
])
;;
x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
AC_DEFINE(MAKE_BACK_GRAPH)
AC_MSG_WARN("Client must not use -fomit-frame-pointer.")
AC_DEFINE(SAVE_CALL_COUNT, 8)
;;
i[3456]86-*-dgux*)
AC_DEFINE(MAKE_BACK_GRAPH)
;;
esac ]
fi)
AC_SUBST(UNWINDLIBS)
AC_ARG_ENABLE(redirect-malloc,
[ --enable-redirect-malloc redirect malloc and friends to GC routines])
if test "${enable_redirect_malloc}" = yes; then
if test "${enable_full_debug}" = yes; then
AC_DEFINE(REDIRECT_MALLOC, GC_debug_malloc_replacement)
AC_DEFINE(REDIRECT_REALLOC, GC_debug_realloc_replacement)
AC_DEFINE(REDIRECT_FREE, GC_debug_free)
else
AC_DEFINE(REDIRECT_MALLOC, GC_malloc)
fi
fi
AC_DEFINE(_IN_LIBGC)
AC_ARG_ENABLE(gc-assertions,
[ --enable-gc-assertions collector-internal assertion checking])
if test "${enable_gc_assertions}" = yes; then
AC_DEFINE(GC_ASSERTIONS)
fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"
else
multilib_arg=
fi
AC_OUTPUT(Makefile
m4/Makefile
include/Makefile
include/private/Makefile
doc/Makefile,,
srcdir=${srcdir}
host=${host}
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
CC="${CC}"
DEFS="$DEFS"
)
+1 -1
View File
@@ -6,7 +6,7 @@ Copyright (c) 1999-2004 Hewlett-Packard Development Company, L.P.
The file linux_threads.c is also
Copyright (c) 1998 by Fergus Henderson. All rights reserved.
The files Makefile.am, and configure.in are
The files Makefile.am, and configure.ac are
Copyright (c) 2001 by Red Hat Inc. All rights reserved.
Several files supporting GNU-style builds are copyrighted by the Free
+5 -5
View File
@@ -1269,7 +1269,7 @@ Since 6.0alpha6:
many places. (Thanks to Benjamin Lerman.)
- Made win32_threads.c more tolerant of detaching a thread that it didn't
know about. (Thanks to Paul Nash.)
- Added Makefile.am and configure.in from gcc to the distribution, with
- Added Makefile.am and configure.ac from gcc to the distribution, with
minimal changes. For the moment, those are just placeholders. In the
future, we're planning to switch to a GNU-style build environment for
Un*x-like systems, though the old Makefile will remain as a backup.
@@ -1491,7 +1491,7 @@ Since 6.1alpha3:
- Fixed a formatting error in dbg_mlc.c. Added prototype to GC_abort()
declaration. (Thanks to Michael Smith.)
- Removed "source" argument to GC_find_start(). Eliminate GC_FIND_START().
- Added win32 recognition code in configure.in. Changed some of the
- Added win32 recognition code in configure.ac. Changed some of the
dllimport/export defines in gc.h. (Thanks to Adam Megacz.)
- GC_malloc_many didn't set hb_last_reclaimed when it called
GC_reclaim_generic. (I'm not sure this matters much, but ...)
@@ -1629,7 +1629,7 @@ Since 6.1alpha4:
Since 6.1alpha5:
- Added GC_MAXIMUM_HEAP_SIZE environment variable.
- Fix configure.in for MIPS/LINUX. (Thanks to H.J. Lu.)
- Fix configure.ac for MIPS/LINUX. (Thanks to H.J. Lu.)
- Double page hash table size for -DLARGE_CONFIG.
- Integrated Bo Thorsen's X86-64 support.
- STACKBOTTOM definition for LINUX/MIPS was partially changed back.
@@ -1942,7 +1942,7 @@ Since 6.3alpha1:
There is also still some code duplication with pthread_support.c.
(Thread descriptors did become much smaller, since Ben Hutchings
removed the thread context from them.)
- Integrated a Solaris configure.in patch from Rainer Orth.
- Integrated a Solaris configure.ac patch from Rainer Orth.
- Added GC_IGNORE_FB and associated warning to very partially address
the issue of the collector treating a mapped frame buffer as part
of the root set. (Thanks to David Peroutka for providing some
@@ -2151,7 +2151,7 @@ Since 6.3:
it seems to be incorrect if the preceding memory op is a load.
- Fixed print_block_list to print the correct kind number for
STUBBORN. (Thanks to Rutger Ovidus.)
- Have configure.in generate an error if it is asked to support
- Have configure.ac generate an error if it is asked to support
pthreads, but doesn't know how to.
- Added Kazuhiro Inaoka's patch for Renesas M32R support.
- Have the GNU build mechanism link with -ldl. Rename THREADLIBS
+2 -2
View File
@@ -26,7 +26,7 @@
* None of this is safe with dlclose and incremental collection.
* But then not much of anything is safe in the presence of dlclose.
*/
#if (defined(__linux__) || defined(__native_client__)) && !defined(_GNU_SOURCE)
#if (defined(__linux__) || defined(__GLIBC__) || defined(__native_client__)) && !defined(_GNU_SOURCE)
/* Can't test LINUX, since this must be define before other includes */
# define _GNU_SOURCE
#endif
@@ -394,7 +394,7 @@ GC_bool GC_register_main_static_data()
/* For glibc 2.2.4+. Unfortunately, it doesn't work for older */
/* versions. Thanks to Jakub Jelinek for most of the code. */
# if (defined(LINUX) || defined(NACL)) /* Are others OK here, too? */ \
# if (defined(LINUX) || defined (__GLIBC__) || defined(NACL)) /* Are others OK here, too? */ \
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+13
View File
@@ -366,6 +366,15 @@ GC_process_togglerefs (void)
GC_toggleref_array_size = w;
}
/* Finalizer proc support */
static void (*GC_object_finalized_proc) (GC_PTR obj);
void
GC_set_finalizer_notify_proc (void (*proc) (GC_PTR obj))
{
GC_object_finalized_proc = proc;
}
static void push_and_mark_object (GC_PTR p)
{
@@ -877,6 +886,10 @@ void GC_finalize()
fo_set_next(prev_fo, next_fo);
}
GC_fo_entries--;
if (GC_object_finalized_proc)
GC_object_finalized_proc (real_ptr);
/* Add to list of objects awaiting finalization. */
fo_set_next(curr_fo, GC_finalize_now);
GC_finalize_now = curr_fo;
+9 -1
View File
@@ -429,6 +429,10 @@ GC_API size_t GC_get_total_bytes GC_PROTO((void));
/* Return -1 otherwise. */
int GC_get_suspend_signal GC_PROTO((void));
/* Return the signal used by the gc to resume threads on posix platforms. */
/* Return -1 otherwise. */
int GC_get_restart_signal GC_PROTO((void));
/* Disable garbage collection. Even GC_gcollect calls will be */
/* ineffective. */
GC_API void GC_disable GC_PROTO((void));
@@ -493,7 +497,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_off_page GC_PROTO((size_t lb));
# define GC_RETURN_ADDR (GC_word)__return_address
#endif
#ifdef __linux__
#if defined(__linux__) || defined(__GLIBC__)
# include <features.h>
# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
&& !defined(__ia64__)
@@ -774,6 +778,10 @@ GC_API int GC_unregister_long_link GC_PROTO((GC_PTR * /* link */));
GC_API void GC_toggleref_register_callback GC_PROTO((int (*proccess_toggleref) (GC_PTR obj)));
GC_API void GC_toggleref_add (GC_PTR object, int strong_ref);
/* finalizer callback support */
GC_API void GC_set_finalizer_notify_proc GC_PROTO((void (*object_finalized) (GC_PTR obj)));
/* Returns !=0 if GC_invoke_finalizers has something to do. */
GC_API int GC_should_invoke_finalizers GC_PROTO((void));
+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
+22 -8
View File
@@ -55,7 +55,7 @@
# endif
/* And one for FreeBSD: */
# if defined(__FreeBSD__) && !defined(FREEBSD)
# if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
# define FREEBSD
# endif
@@ -1371,8 +1371,15 @@
# ifndef GC_FREEBSD_THREADS
# define MPROTECT_VDB
# endif
# define SIG_SUSPEND SIGTSTP
# define SIG_THR_RESTART SIGCONT
# ifdef __GLIBC__
# define SIG_SUSPEND (32+6)
# define SIG_THR_RESTART (32+5)
extern int _end[];
# define DATAEND (_end)
# else
# define SIG_SUSPEND SIGTSTP
# define SIG_THR_RESTART SIGCONT
# endif
# define FREEBSD_STACKBOTTOM
# ifdef __ELF__
# define DYNAMIC_LOADING
@@ -2132,8 +2139,15 @@
# ifndef GC_FREEBSD_THREADS
# define MPROTECT_VDB
# endif
# define SIG_SUSPEND SIGTSTP
# define SIG_THR_RESTART SIGCONT
# ifdef __GLIBC__
# define SIG_SUSPEND (32+6)
# define SIG_THR_RESTART (32+5)
extern int _end[];
# define DATAEND (_end)
# else
# define SIG_SUSPEND SIGUSR1
# define SIG_THR_RESTART SIGUSR2
# endif
# define NEED_FIND_LIMIT
# define FREEBSD_STACKBOTTOM
# ifdef __ELF__
@@ -2230,7 +2244,7 @@
# define SUNOS5SIGS
# endif
# if defined(FREEBSD) && (__FreeBSD__ >= 4)
# if defined(FREEBSD) && ((__FreeBSD__ >= 4) || (__FreeBSD_kernel__ >= 4))
# define SUNOS5SIGS
# endif
@@ -2293,7 +2307,7 @@
# define CACHE_LINE_SIZE 32 /* Wild guess */
# endif
# ifdef LINUX
# if defined(LINUX) || defined(__GLIBC__)
# define REGISTER_LIBRARIES_EARLY
/* We sometimes use dl_iterate_phdr, which may acquire an internal */
/* lock. This isn't safe after the world has stopped. So we must */
@@ -2374,7 +2388,7 @@
#if defined(SPARC)
# define CAN_SAVE_CALL_ARGS
#endif
#if (defined(I386) || defined(X86_64)) && defined(LINUX)
#if (defined(I386) || defined(X86_64)) && (defined(LINUX) || defined(__GLIBC__))
/* SAVE_CALL_CHAIN is supported if the code is compiled to save */
/* frame pointers by default, i.e. no -fomit-frame-pointer flag. */
# define CAN_SAVE_CALL_ARGS
+7
View File
@@ -375,8 +375,15 @@ ptr_t GC_approx_sp()
/* doing something wrong. */
# ifdef _MSC_VER
# pragma warning(disable:4172)
# endif
# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wreturn-local-addr"
# endif
return((ptr_t)(&dummy));
# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408)
# pragma GCC diagnostic pop
# endif
# ifdef _MSC_VER
# pragma warning(default:4172)
# endif
+11
View File
@@ -480,6 +480,17 @@ int GC_get_suspend_signal GC_PROTO(())
#endif
}
int GC_get_restart_signal GC_PROTO(())
{
#if defined(SIG_THR_RESTART) && defined(GC_PTHREADS) && !defined(GC_MACOSX_THREADS) && !defined(GC_OPENBSD_THREADS)
return SIG_THR_RESTART;
#else
return -1;
#endif
}
GC_bool GC_is_initialized = FALSE;
void GC_init()
+2 -2
View File
@@ -1,4 +1,4 @@
/* The version here should match that in configure/configure.in */
/* The version here should match that in configure/configure.ac */
/* Eventually this one may become unnecessary. For now we need */
/* it to keep the old-style build process working. */
#define GC_TMP_VERSION_MAJOR 6
@@ -14,7 +14,7 @@
GC_TMP_VERSION_MINOR != GC_VERSION_MINOR || \
defined(GC_ALPHA_VERSION) != (GC_TMP_ALPHA_VERSION != GC_NOT_ALPHA) || \
defined(GC_ALPHA_VERSION) && GC_TMP_ALPHA_VERSION != GC_ALPHA_VERSION
# error Inconsistent version info. Check README, version.h, and configure.in.
# error Inconsistent version info. Check README, version.h, and configure.ac.
# endif
#else
# define GC_VERSION_MAJOR GC_TMP_VERSION_MAJOR
+25 -15
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.
@@ -937,11 +938,11 @@ Override the automatic cpu detection mechanism. Currently used only on arm.
The format of the value is as follows:
.nf
"armvV [thumb]"
"armvV [thumb[2]]"
.fi
where V is the architecture number 4, 5, 6, 7 and the options can be currently be
"thunb". Example:
"thumb" or "thumb2". Example:
.nf
MONO_CPU_ARCH="armv4 thumb" mono ...
@@ -1075,19 +1076,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
@@ -1216,6 +1208,17 @@ is used.
Performs a check to make sure that no references are left to an
unloaded AppDomain.
.TP
\fBclear-at-tlab-creation\fR
Clears the nursery incrementally when the thread local allocation
buffers (TLAB) are created. The default setting clears the whole
nursery at GC time.
.TP
\fBdebug-clear-at-tlab-creation\fR
Clears the nursery incrementally when the thread local allocation
buffers (TLAB) are created, but at GC time fills it with the byte
`0xff`, which should result in a crash more quickly if
`clear-at-tlab-creation` doesn't work properly.
.TP
\fBclear-at-gc\fR
This clears the nursery at GC time instead of doing it when the thread
local allocation buffer (TLAB) is created. The default is to clear
@@ -1255,6 +1258,11 @@ 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
@@ -1356,6 +1364,8 @@ loader in subtle ways.
Directories are separated by the platform path separator (colons on unix). Example:
.B /home/username/lib:/usr/local/mono/lib
.Sp
Relative paths are resolved based on the launch-time current directory.
.Sp
Alternative solutions to MONO_PATH include: installing libraries into
the Global Assembly Cache (see gacutil(1)) or having the dependent
libraries side-by-side with the main executable.
+21
View File
@@ -211,6 +211,15 @@ The following commands are available:
.IP \[bu] 2
\f[I]heapshot\f[]: perform a heapshot as soon as possible
.RE
.IP \[bu] 2
\f[I]counters\f[]: sample counters values every 1 second. This allow
a really lightweight way to have insight in some of the runtime key
metrics. Counters displayed in non verbose mode are : Methods from AOT,
Methods JITted using mono JIT, Methods JITted using LLVM, Total time
spent JITting (sec), User Time, System Time, Total Time, Working Set,
Private Bytes, Virtual Bytes, Page Faults and CPU Load Average (1min,
5min and 15min).
.RE
.SS Analyzing the profile data
.PP
Currently there is a command line program (\f[I]mprof-report\f[])
@@ -284,6 +293,16 @@ where \f[I]MODE\f[] can be:
.IP \[bu] 2
\f[I]bytes\f[]: the total number of bytes used by objects of the
given type
.PP
To change the sort order of counters, use the option:
.PP
\f[B]--counters-sort=MODE\f[]
.PP
where \f[I]MODE\f[] can be:
.IP \[bu] 2
\f[I]time\f[]: sort values by time then category
.IP \[bu] 2
\f[I]category\f[]: sort values by category then time
.SS Selecting what data to report
.PP
The profiler by default collects data about many runtime subsystems
@@ -319,6 +338,8 @@ version
\f[I]thread\f[]: thread information
.IP \[bu] 2
\f[I]heapshot\f[]: live heap usage at heap shots
.IP \[bu] 2
\f[I]counters\f[]: counters samples
.PP
It is possible to limit some of the data displayed to a timeframe
of the program execution with the option:
+7 -8
View File
@@ -6,16 +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
mobile_static_SUBDIRS := build class
net_4_0_SUBDIRS := build class
net_4_5_SUBDIRS := build mcs class nunit24 ilasm tools tests errors docs
xbuild_12_SUBDIRS := build class tools/xbuild
xbuild_14_SUBDIRS := build class tools/xbuild
# List of test subdirs that should pass 100%
centum_tests := \
@@ -24,7 +24,6 @@ centum_tests := \
class/System.XML \
class/Commons.Xml.Relaxng \
class/Cscompmgd \
class/Microsoft.JScript \
class/Mono.Posix \
class/Mono.Security \
class/System.Design \
@@ -83,11 +82,11 @@ all-local $(STD_TARGETS:=-local):
@:
dir-check:
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then make -C ../runtime; fi
@if [ "$(NO_DIR_CHECK)" = "" -a "$(PROFILE)" != "basic" ]; then $(MAKE) -C ../runtime; fi
# fun specialty targets
PROFILES = net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12
PROFILES = net_4_5 net_4_0 xbuild_12 xbuild_14
.PHONY: all-profiles $(STD_TARGETS:=-profiles)
all-profiles $(STD_TARGETS:=-profiles): %-profiles: profiles-do--%
@@ -106,16 +105,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--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--net_4_5--%): profile-do--net_4_5--%: profile-do--build--%
$(_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 \
net_4_0 \
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
}
+46
View File
@@ -0,0 +1,46 @@
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 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 FriendAccessAllowed : Attribute
{ }
}
+17
View File
@@ -1,3 +1,5 @@
using System;
class X {
// Check installed compiler
static void Generic<T> ()
@@ -20,6 +22,21 @@ class X {
if (o == null)
return 1;
var consts = o.GetType ().Assembly.GetType ("Consts");
if (consts == null)
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, 2))
return 5;
return 0;
}
}
+19 -7
View File
@@ -61,10 +61,24 @@ lib_dir = lib
endif
ifdef LIBRARY_SUBDIR
the_libdir = $(topdir)/class/$(lib_dir)/$(PROFILE)/$(LIBRARY_SUBDIR)/
the_libdir_base = $(topdir)/class/$(lib_dir)/$(PROFILE)/$(LIBRARY_SUBDIR)/
else
the_libdir = $(topdir)/class/$(lib_dir)/$(PROFILE)/
the_libdir_base = $(topdir)/class/$(lib_dir)/$(PROFILE)/
endif
#
# The bare directory contains the plain versions of System and System.Xml
#
bare_libdir = $(the_libdir_base)bare
#
# The secxml directory contains the System version that depends on
# System.Xml and Mono.Security
#
secxml_libdir = $(the_libdir_base)secxml
the_libdir = $(the_libdir_base)$(intermediate)
ifdef LIBRARY_NEEDS_POSTPROCESSING
build_libdir = fixup/$(PROFILE)/
else
@@ -110,11 +124,9 @@ endif
csproj-local: csproj-library csproj-test
# to overcome the issues with circular dependencies, we'll create csprojs with a counter increment.
# This is more amenable for use in VS solutions to reference projects rather than transient dll files in the build process.
csproj-library:
config_file=`basename $(LIBRARY) .dll`-$(PROFILE).input; \
for counter in 1 2 3 4 5 ; do if test -f $(topdir)/../msvc/scripts/inputs/$$config_file ; then config_file=`basename $(LIBRARY) .dll`-$(PROFILE)-$$counter.input; fi ; done ;\
intermediate_clean=$(subst /,-,$(intermediate))
csproj-library:
config_file=`basename $(LIBRARY) .dll`-$(intermediate_clean)$(PROFILE).input; \
echo $(thisdir):$$config_file >> $(topdir)/../msvc/scripts/order; \
(echo $(is_boot); \
echo $(USE_MCS_FLAGS) $(LIBRARY_FLAGS) $(LIB_MCS_FLAGS); \
+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_1_1 -d:NET_2_0 -d:NET_3_0 -d:NET_3_5 -d:NET_4_0 -d:NET_4_5 -d:MONO -d:BOOTSTRAP_BASIC -nowarn:1699 -d:DISABLE_CAS_USE
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.4 or better installed to build MCS" 1>&2 ; \
echo "*** You need Mono version 3.2 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
+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_1_1 -d:NET_2_0 -d:NET_3_0 -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)
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
+3 -10
View File
@@ -1,19 +1,12 @@
# -*- 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)
NO_BUILD = yes
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_1_1 -d:NET_2_0 -d:NET_3_0 -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 = 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
+1 -1
View File
@@ -22,7 +22,7 @@ VERSION = 0.93
Q=$(if $(V),,@)
# echo -e "\\t" does not work on some systems, so use 5 spaces
Q_MCS=$(if $(V),,@echo "MCS [$(PROFILE)] $(notdir $(@))";)
Q_MCS=$(if $(V),,@echo "MCS [$(intermediate)$(PROFILE)] $(notdir $(@))";)
ifndef BUILD_TOOLS_PROFILE
BUILD_TOOLS_PROFILE = build
+1 -1
View File
@@ -11,7 +11,7 @@
tests_CLEAN_FILES :=
ifndef TEST_COMPILE
TEST_COMPILE = $(CSCOMPILE)
TEST_COMPILE = $(subst $(test_remove),,$(CSCOMPILE))
endif
TEST_RUNTIME_WRAPPERS_PATH = $(shell dirname $(RUNTIME))/_tmpinst/bin
@@ -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>
@@ -19,6 +19,7 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
@@ -56,9 +57,13 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
@@ -67,9 +72,9 @@
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<ProjectReference Include="../corlib/corlib-net_4_5.csproj">
<Project>{33BF0182-AC5C-464C-995B-C9CFE74E1A95}</Project>
<Name>corlib\corlib-net_4_5</Name>
<Name>corlib-net_4_5</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
@@ -1,70 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug_Java</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{75D99998-A9C1-4B89-AD47-DA830E461DED}</ProjectGuid>
<ProjectTypeGuids>{F6B19D50-1E2E-4e87-ADFB-10393B439DE0};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<AssemblyName>Accessibility</AssemblyName>
<JDKName>1.6</JDKName>
<GHProjectType>1</GHProjectType>
<Version>2.0</Version>
<UseVSHostingProcess>false</UseVSHostingProcess>
<AdditionalClassPath>
</AdditionalClassPath>
<RootNamespace>Accessibility</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug_Java20|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug_Java20\</OutputPath>
<DefineConstants>TRACE;DEBUG;JAVA;NET_1_1;NET_2_0;TARGET_JVM</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<BaseAddress>285212672</BaseAddress>
<SkipValidation>false</SkipValidation>
<KeepIntermediate>false</KeepIntermediate>
<TargetPlatform>0</TargetPlatform>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release_Java20|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release_Java20\</OutputPath>
<DefineConstants>TRACE;JAVA;NET_1_1;NET_2_0;TARGET_JVM</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<BaseAddress>285212672</BaseAddress>
<SkipValidation>false</SkipValidation>
<KeepIntermediate>false</KeepIntermediate>
<TargetPlatform>0</TargetPlatform>
</PropertyGroup>
<ItemGroup>
<Compile Include="Accessibility\IAccessible.cs" />
<Compile Include="Accessibility\IAccessibleHandler.cs" />
<Compile Include="Assembly\AssemblyInfo.cs" />
<Compile Include="..\..\build\common\Consts.cs.in">
<Link>Consts.cs.in</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.csharp.targets" />
<Import Project="$(VMW_HOME)\bin\Mainsoft.Common.targets" />
<!-- 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>
-->
<ProjectExtensions>
<VisualStudio>
<UserProperties REFS-JarPath-system="" REFS-RefInfo-system="repository:vmw:framework:2.0" REFS-JarPath-system-data="" REFS-RefInfo-system-data="repository:vmw:framework:2.0" REFS-JarPath-system-xml="" REFS-RefInfo-system-xml="repository:vmw:framework:2.0" REFS-JarPath-rt="" REFS-RefInfo-rt="repository:jre:sun:1.6.0" />
</VisualStudio>
</ProjectExtensions>
</Project>
@@ -55,10 +55,8 @@ using System.Runtime.InteropServices;
[assembly: Guid ("1ea4dbf0-3c3b-11cf-810c-00aa00389b71")]
[assembly: AllowPartiallyTrustedCallers]
#if !TARGET_JVM
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../msfinal.pub")]
#endif
[assembly: ImportedFromTypeLib ("Accessibility")]
@@ -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>
@@ -19,6 +19,7 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
@@ -92,9 +93,13 @@
</Target>
-->
<PropertyGroup>
<PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">
</PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">
</PostBuildEvent>
@@ -103,17 +108,17 @@
</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\corlib\corlib-net_4_5.csproj">
<ProjectReference Include="../corlib/corlib-net_4_5.csproj">
<Project>{33BF0182-AC5C-464C-995B-C9CFE74E1A95}</Project>
<Name>corlib\corlib-net_4_5</Name>
<Name>corlib-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System\System-net_4_5-2.csproj">
<Project>{5C605B73-19DA-4FB7-AB39-C7EF9A8B19FE}</Project>
<Name>System\System-net_4_5-2</Name>
<ProjectReference Include="../System/System-net_4_5.csproj">
<Project>{FFAC0B73-D997-493B-9C62-27656CD858BB}</Project>
<Name>System-net_4_5</Name>
</ProjectReference>
<ProjectReference Include="..\System.XML\System.Xml-net_4_5-1.csproj">
<Project>{2534ADE0-05E4-490F-933D-1E39310A0CB9}</Project>
<Name>System.XML\System.Xml-net_4_5-1</Name>
<ProjectReference Include="../System.XML/System.Xml-net_4_5.csproj">
<Project>{2951DEC2-4393-4A78-83F9-42EB39CB708F}</Project>
<Name>System.Xml-net_4_5</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
@@ -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>
@@ -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 {
@@ -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
Loaded 100 of 11544 files, more files were not shown because too many files have changed in this diff. Show more