Nicolas Raoul [Tue, 6 Nov 2012 01:34:15 +0000 (10:34 +0900)]
do not check order sequence if option /order was not used
Nicolas Raoul [Tue, 6 Nov 2012 01:12:27 +0000 (10:12 +0900)]
Merge remote-tracking branch 'upstream/master' into fix-for-issue2907-with-no-formatting-changes
Rodrigo Kumpera [Mon, 5 Nov 2012 19:13:57 +0000 (14:13 -0500)]
Remove SRE.UnmanagedMarshal dependency from System.Reflection.
* FieldInfo.cs:
* MonoMethod.cs:
* ParameterInfo.cs: Remove silly dep on UnmanagedMarshal to use
MarshalAsAttribute which is what we need in the end.
* icall.c:
* reflection.c: Use the custom attribute type instead of the SRE
one. This allows FULL_AOT_RUNTIME to work with stuff that uses
MarshalAs.
Rodrigo Kumpera [Mon, 5 Nov 2012 19:08:07 +0000 (14:08 -0500)]
Remove FieldInfo::UMarshal, which is dead code.
Rodrigo Kumpera [Mon, 5 Nov 2012 19:02:58 +0000 (14:02 -0500)]
Expose MarshalAsAttribute to the runtime.
Jeffrey Stedfast [Mon, 5 Nov 2012 13:54:11 +0000 (05:54 -0800)]
Merge pull request #488 from roji/email_attachment_fixes
Fixed missing Content-Id email headers
Marek Safar [Mon, 5 Nov 2012 09:39:29 +0000 (01:39 -0800)]
Merge pull request #497 from Shabbafru/ImageListPatches
Fixed clearing of the ImageList
Atsushi Eno [Mon, 5 Nov 2012 09:22:29 +0000 (18:22 +0900)]
Fix JavaScriptSerializer.Deserialize() for dictionary of array of anonymously typed dictionary.
context: https://twitter.com/muo_jp/status/
265373491224801280
Shabbafru [Mon, 5 Nov 2012 08:35:28 +0000 (09:35 +0100)]
fixed clearing of the ImageList
Shay Rojansky [Mon, 5 Nov 2012 01:36:23 +0000 (03:36 +0200)]
Removed debugging prints that slipped through
Sebastien Pouliot [Fri, 2 Nov 2012 21:15:02 +0000 (17:15 -0400)]
Allow setting a custom Profile without using reflection
Marek Safar [Fri, 2 Nov 2012 09:12:41 +0000 (02:12 -0700)]
Merge pull request #492 from pruiz/systx-fixes
Sys.Tx: Avoid uncatched exceptions during Prepare phase, which might crash the whole application.
Nicolas Raoul [Fri, 2 Nov 2012 07:26:47 +0000 (16:26 +0900)]
Fix for issue 2907. I took Roman Zavalov's patch at https://bugzilla.xamarin.com/show_bug.cgi?id=2907#c10 and reverted the numerous formatting changes that were obscuring the real changes, hopefully making the diff clearer
Rodrigo Kumpera [Thu, 1 Nov 2012 21:43:25 +0000 (17:43 -0400)]
Revert "Merge pull request #464 from gregoryyoung/master"
This commit causes deadlock in the tpool backend in the following way:
thread 1:
socket_io_add locks io_lock
tp_poll_modify waits on new_sem
thread 2:
tp_poll_wait tries to lock io_lock
tp_poll_wait is the responsible to post to new_sem, which it can't do since it's
blocked on io_lock, held by a thread waiting on new_sem.
This reverts commit
11286da0ac2e2bab7b2d8ab04b9f6a4da4e12131, reversing
changes made to
94bfdf21e6f06424ad96980a27c35c99ba42b1d3.
Rodrigo Kumpera [Thu, 1 Nov 2012 20:23:50 +0000 (16:23 -0400)]
When inflating a (M)VAR make sure we're not using a broken type.
*class.c (inflate_generic_type): When inflating (M)VAR we must
check if the replaced type is not void or typedbyref as both can
later lead to all sorts of nasty crashes or memory corruption.
Mark Probst [Thu, 1 Nov 2012 19:13:11 +0000 (20:13 +0100)]
[sgen] MONO_GC_DEBUG option for disabling the managed allocator.
This can be used to make all object allocations show up in the dtrace probe.
Jonathan Pryor [Thu, 1 Nov 2012 17:59:30 +0000 (13:59 -0400)]
[mdoc] Update XSD @id, @tool for docs team.
Xamarin docs team has requested the following changes to make life
easier and increase tooling support:
//para/@id:
Similar in concept/purpose to the HTML @id attribute.
//para/@tool:
Contains the name of a tool which generated the <para/>.
//exception/list:
Allow lists within <exception/> blocks.
Marek Safar [Thu, 1 Nov 2012 17:27:28 +0000 (10:27 -0700)]
Merge pull request #490 from knocte/master
[System.Configuration] IntegerValidator's maxValue was 0 even if not used
Zoltan Varga [Thu, 1 Nov 2012 17:12:25 +0000 (18:12 +0100)]
Disable LLVM+AOT for methods with clauses on ARM, because some tests still fail.
Marek Safar [Thu, 1 Nov 2012 16:54:29 +0000 (17:54 +0100)]
Implement SqlConnection.DbProviderFactory. Fixes #7936
Alex Rønne Petersen [Thu, 1 Nov 2012 16:09:21 +0000 (09:09 -0700)]
Merge pull request #491 from mono/fix_keyvaluepair
[corlib] Remove the DebuggerDisplay attribute from KeyValuePair
Alan McGovern [Thu, 1 Nov 2012 15:47:18 +0000 (15:47 +0000)]
[corlib] Remove the DebuggerDisplay attribute from KeyValuePair and DictionaryEntry
This attribute gives us a horrible debugging experience when the
'Value' of the KeyValuePair is null. By using this attribute, the
user is told that the KeyValuePair itself is null when they inspect
something like 'new KeyValuePair<string, string> (null, null)'.
This is very confusing.
We should just let the ToString method be invoked, which returns a
nicely formatted string. This is also the behaviour observed when
debugging using Visual Studio.
Zoltan Varga [Thu, 1 Nov 2012 15:15:41 +0000 (16:15 +0100)]
Avoid throwing exceptions from WeakReference.IsAlive after finalization when the underlying GCHandle is already finalized. Fixes #8072.
Zoltan Varga [Thu, 1 Nov 2012 14:41:20 +0000 (15:41 +0100)]
Properly inflate arrays of generic parameters in resolve_object (). Fixes #7964.
Zoltan Varga [Thu, 1 Nov 2012 04:29:24 +0000 (05:29 +0100)]
Make the AOT statistic output more dense.
Andres G. Aragoneses [Wed, 31 Oct 2012 23:33:20 +0000 (23:33 +0000)]
[System.Configuration] IntegerValidator's maxValue was 0 even if not used
When using IntegerValidator, if only MinValue is used, max value should
not be set by default to 0. Fix and unit tests included.
This fixes BNC#654721 (https://bugzilla.novell.com/show_bug.cgi?id=654721)
and therefore allows Enyim.Memcached to be used with Mono.
Rodrigo Kumpera [Wed, 31 Oct 2012 21:52:10 +0000 (17:52 -0400)]
Make gc maps optional and disabled by default for AOT.
Sebastien Pouliot [Wed, 31 Oct 2012 20:04:44 +0000 (16:04 -0400)]
Allow an existing 4.0 assembly to fill in for a 2.0 reference
Sebastien Pouliot [Wed, 31 Oct 2012 20:03:06 +0000 (16:03 -0400)]
Avoid processing (and creating) empty collections
Neale Ferguson [Wed, 31 Oct 2012 16:13:00 +0000 (12:13 -0400)]
Implement GetObjectData
Neale Ferguson [Thu, 11 Oct 2012 00:21:09 +0000 (20:21 -0400)]
Increase flushinput timeout to 1 second as 1/10th second is sometimes not enough
Marek Safar [Wed, 31 Oct 2012 10:24:33 +0000 (03:24 -0700)]
Merge pull request #489 from alesliehughes/master
Pathces for AxHosts, RegistrationServices and Marshal
Alistair Leslie-Hughes [Wed, 24 Oct 2012 05:36:32 +0000 (16:36 +1100)]
Implement Marshal.GenerateProgIdForType
Alistair Leslie-Hughes [Wed, 24 Oct 2012 05:35:16 +0000 (16:35 +1100)]
Implement RegistrationServices.GetManagedCategoryGuid
Alistair Leslie-Hughes [Wed, 24 Oct 2012 05:28:21 +0000 (16:28 +1100)]
Add AxHost.OcxState support
Sebastien Pouliot [Tue, 30 Oct 2012 20:36:39 +0000 (16:36 -0400)]
Allow overriding MarkMethod (without resolving the reference multiple times)
Marek Safar [Tue, 30 Oct 2012 15:56:16 +0000 (16:56 +0100)]
Correctly encode nested typeof type inside namespace.
Marek Safar [Tue, 30 Oct 2012 14:57:22 +0000 (15:57 +0100)]
Don't set sequential type attribute for async containers
Marek Safar [Tue, 30 Oct 2012 12:40:51 +0000 (13:40 +0100)]
Move corlib path check after nostdlib
Sebastien Pouliot [Mon, 29 Oct 2012 23:07:48 +0000 (19:07 -0400)]
Separate namespace and name arguments for Inherits to avoid memory allocations
Rodrigo Kumpera [Mon, 29 Oct 2012 21:10:28 +0000 (17:10 -0400)]
Propertly handle the layout of generic valuetypes. Fixes bxc #7574.
class.c (mono_class_layout_fields): All valuetype checks must account to
the fact that for generic instances the byval_arg/this_arg type will be
of a generic instance and not of a valuetype. The right check is for
MonoClass::valuetype. Fixes bxc #7574.
Marek Safar [Mon, 29 Oct 2012 17:01:42 +0000 (18:01 +0100)]
Add new test
Marek Safar [Mon, 29 Oct 2012 16:49:43 +0000 (09:49 -0700)]
Merge pull request #485 from mtausig/master
Bugfix for DirectoryInfo.GetDirectories()
mtausig [Mon, 29 Oct 2012 15:50:35 +0000 (16:50 +0100)]
Fix: Removed wrong increment
Marek Safar [Mon, 29 Oct 2012 15:34:16 +0000 (16:34 +0100)]
Add missing 3rd System reference
Martin Baulig [Mon, 29 Oct 2012 14:47:49 +0000 (15:47 +0100)]
[#7637][Web]: This is supposed to fail prior to .NET 4.0.
Fixes my previous commit
1ccb01e.
mtausig [Mon, 29 Oct 2012 12:29:24 +0000 (13:29 +0100)]
Removed null check of parameter (done in Directory.GetDirectories)
Changed foreach loop to for loop
Added some comments
Marek Safar [Mon, 29 Oct 2012 12:09:22 +0000 (13:09 +0100)]
Label inside implicit switch block is accessible from any switch case. Fixes #8036
Marek Safar [Mon, 29 Oct 2012 10:23:03 +0000 (11:23 +0100)]
Reject incomplete conversion unary user operators. Fixes #7935.
mtausig [Mon, 29 Oct 2012 10:06:41 +0000 (11:06 +0100)]
Added Testcase for DirectoryInfo.GetDirectories with parameter
SearchOption.AlLDirectories
mtausig [Mon, 29 Oct 2012 10:06:14 +0000 (11:06 +0100)]
Removed extra-brace
Shay Rojansky [Mon, 29 Oct 2012 00:26:39 +0000 (02:26 +0200)]
Fixed missing Content-Id email headers
When specifying a Content-Id header on Attachments and AlternateViews (but not LinkedResources) the header was not rendered.
This fixes bug #2279.
Also refactored header generation methods.
Pablo Ruiz Garcia [Sat, 27 Oct 2012 20:58:18 +0000 (22:58 +0200)]
Sys.Tx: Avoid uncatched exceptions during Prepare phase, which might crash the whole application. Also try to align internal exception handling flow/logic to the one found in MS.NET.
Zoltan Varga [Sat, 27 Oct 2012 01:10:26 +0000 (03:10 +0200)]
Disable the build of libmini.la when libraries are disabled.
Zoltan Varga [Sat, 27 Oct 2012 01:03:51 +0000 (03:03 +0200)]
Add a --disable-libraries command line option to disable the build of libmono.
Martin Baulig [Fri, 26 Oct 2012 23:15:21 +0000 (01:15 +0200)]
[#7637][Web]: Support empty write streams.
Martin Baulig [Fri, 26 Oct 2012 22:50:10 +0000 (00:50 +0200)]
[6329][Web]: Fixed abort race condition in WebConnection.ReadDone().
ReadDone() now passes the 'WebConnectionData' instance to GetResponse()
and 'readState' has been moved into 'WebConnectionData'.
Abort() can now reset 'Data' while ReadDone() still uses the old
instance, but learns about the abort request from 'data.ReadState'.
Rodrigo Kumpera [Fri, 26 Oct 2012 21:15:48 +0000 (17:15 -0400)]
Handle external protocols correctly in sdb.
* debugger-agent.c: Handle deferred attach in sdb correctly when
an external protocol is used.
Marek Safar [Fri, 26 Oct 2012 20:26:43 +0000 (13:26 -0700)]
Merge pull request #484 from roji/transactions_pspe
Transaction now has limited support for PromotableSinglePhaseEnlistment
Marek Safar [Fri, 26 Oct 2012 20:24:03 +0000 (13:24 -0700)]
Merge pull request #486 from fvalette/master
Fix System.Media.SoundPlayer on Linux
Zoltan Varga [Fri, 26 Oct 2012 20:13:27 +0000 (22:13 +0200)]
Disable LLVM for methods with clauses on darwin, current LLVM versions don't support it.
Zoltan Varga [Fri, 26 Oct 2012 18:10:38 +0000 (20:10 +0200)]
Align the trampoline stack size on MIPS.
Zoltan Varga [Fri, 26 Oct 2012 02:12:17 +0000 (04:12 +0200)]
Clear sb->cached_str in mono_string_utf8_to_builder () so if the same stringbuilder is passed to two pinvoke calls, the modifications made by the second are visible in the result of sb.ToString (). Fixes #7980.
Zoltan Varga [Fri, 26 Oct 2012 00:52:05 +0000 (02:52 +0200)]
Quiet some automake warnings.
Martin Baulig [Thu, 25 Oct 2012 22:57:25 +0000 (00:57 +0200)]
Emit WebAsyncResult's callback on same thread on sync completion.
This fixes System.Net.Http.HttpClientTest.Send_Content_Put ().
Martin Baulig [Thu, 25 Oct 2012 19:48:17 +0000 (21:48 +0200)]
Fix TaskFactory::FromAsync for methods that completed synchronously.
Don't call InnerInvoke() a 2nd time if the 'Begin' method that
completed synchronously already invoked the callback.
Florent Valette [Thu, 25 Oct 2012 15:46:28 +0000 (17:46 +0200)]
[Fix] AudioData(wav) play performing badly under Linux
Fix bug and improve performance of audio data play methode :
- Read only wave/Au raw data from Stream unstead of the whole file
- Play Sound chunk by chunk (chunk size compute at AudioDevice.setFormat call)
this is the best size compute by alsa for the hardware (better than the 4kB arbitrary size)
- Fix the chunk size to play. For Alsa, this size is in fragment, a fragment is one sample per channel
- count the data which are really play by alsa (snd_pcm_writei return a fragment size) and the next
chunk from that count.
Signed-off-by: Florent Valette <florent.valette@gmail.com>
Jonathan Pryor [Thu, 25 Oct 2012 15:28:12 +0000 (11:28 -0400)]
[Mono.Posix] Fix whitespace.
Reduce whitespace changes from master.
Jonathan Pryor [Thu, 25 Oct 2012 15:27:26 +0000 (11:27 -0400)]
Revert "Increased waiting time for the certificate authentication from 100 ms to 1000 ms. Because it was not enough for some kind of requests."
This reverts commit
592cdb463ba89cef6943962df5409177710d62d9.
This isn't required for Syscall.getgrouplist(), and should be part of
a separate pull request.
Florent Valette [Thu, 25 Oct 2012 15:27:08 +0000 (17:27 +0200)]
[Fix] Advanced Linux Sound Architecture (ALSA) configuration in class AudioDevice.cs
Improve the configuration of the Alsa hardware parameters.
The buffer and chunk size are set to the best suitable size according to wave file
caracteristic, i.e., format, channel and sampling rate.
Add Alsa software parameter.
Alsa becomes in Ready State as soon as there is a data chunk in its ring buffer.
Alsa starts playing data as soon as its buffer is full.
Add a UnderRun recovery method while playing a sound. When a underRun occurs, Alsa
layer need to be re set to Ready State (by calling snd_pcm_prepare) and the data chunk
is re send to Alsa.
Signed-off-by: Florent Valette <florent.valette@gmail.com>
Jonathan Pryor [Thu, 25 Oct 2012 15:11:42 +0000 (11:11 -0400)]
[Mono.Posix] Add Syscall.getgrouplist().
Merge branch 'master' of git://github.com/alexeymoiseew/mono into alexeymoiseew-master
Florent Valette [Thu, 25 Oct 2012 14:53:03 +0000 (16:53 +0200)]
[Fix] Support to wave sound file under linux
Some wave file had a 'fact' chunk in header's data.
This is specified for non-PCM format but some PCM wave sound file could have one.
These kind of file are played well by System.Media.SoundPlay on win32 system but no
sound is played at all on unix system because the 'data' chunk is not found. This
patch adds support for wave file which have this optional 'fact' chunk in header's data.
It's also read chunk data according to the chunk size.
Signed-off-by: Florent Valette <florent.valette@gmail.com>
Sebastien Pouliot [Thu, 25 Oct 2012 14:39:21 +0000 (10:39 -0400)]
Merge back MonoTouch changes inside the linker/tuner code
Sebastien Pouliot [Thu, 25 Oct 2012 14:33:15 +0000 (10:33 -0400)]
Allow the SortedList unit tests to be built with NUnitLite (MonoTouch)
Zoltan Varga [Wed, 24 Oct 2012 23:20:38 +0000 (01:20 +0200)]
Make sgen-fin-weak-hash.c a proper module.
Zoltan Varga [Wed, 24 Oct 2012 20:51:21 +0000 (22:51 +0200)]
Reorganize libmonoruntime_la_SOURCES to make it clear which files have compile time GC dependencies.
Zoltan Varga [Wed, 24 Oct 2012 20:33:11 +0000 (22:33 +0200)]
Remove the unused HAVE_WRITE_BARRIERS define.
Zoltan Varga [Wed, 24 Oct 2012 20:32:43 +0000 (22:32 +0200)]
Remove sgen dependencies from marshal.c
Zoltan Varga [Wed, 24 Oct 2012 17:59:15 +0000 (19:59 +0200)]
Remove the last #ifdef HAVE_SGEN_GC from gc-internal.h
Zoltan Varga [Wed, 24 Oct 2012 17:56:16 +0000 (19:56 +0200)]
Remove an unused field from DebuggerTlsData.
Rodrigo Kumpera [Wed, 24 Oct 2012 17:39:59 +0000 (13:39 -0400)]
Fix the linux build as it does check even from private glib symbols.
Rodrigo Kumpera [Wed, 24 Oct 2012 17:39:42 +0000 (13:39 -0400)]
Fix the build.
Shay Rojansky [Tue, 23 Oct 2012 00:17:41 +0000 (02:17 +0200)]
Transaction now has limited support for PromotableSinglePhaseEnlistment
System.Transactions.Transaction is only partially implemented, and was lacking support for enlistments of type PromotableSinglePhaseEnlistment.
Specifically, this prevented usage of Npgsql with the ambient transactions feature (TransactionScope).
Alexey Moiseev [Wed, 24 Oct 2012 15:43:10 +0000 (18:43 +0300)]
usign List except for array to prevent holes on getgrouplist results
Alexey Moiseev [Wed, 24 Oct 2012 15:30:20 +0000 (18:30 +0300)]
Added omiting not valid groups to getgrouplist
Zoltan Varga [Wed, 24 Oct 2012 15:21:50 +0000 (17:21 +0200)]
Add support for complex descriptors to mono_gc_get_bitmap_for_descr ().
Jonathan Pryor [Wed, 24 Oct 2012 14:41:05 +0000 (07:41 -0700)]
Merge pull request #483 from meebey/syslog_gcc_format-security
Disable -Werror=format-security on GCC as the input is already validated...
Mirco Bauer [Wed, 24 Oct 2012 14:28:09 +0000 (16:28 +0200)]
Disable -Werror=format-security on GCC as the input is already validated by the caller
Jonathan Pryor (jonpryor) commented on
f49164b:
The message parameter is validated in managed code:
https://github.com/mono/mono/blob/master/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs#L3200
https://github.com/mono/mono/blob/master/mcs/class/Mono.Posix/Mono.Unix/UnixMarshal.cs#L366
This change means that '%m' isn't useful in format strings to Syscall.syslog(),
as it'll be escaped instead of "passed through" unchanged.
Atsushi Eno [Wed, 24 Oct 2012 02:57:57 +0000 (11:57 +0900)]
fix bug #7957: empty dictionary should not be read siblings as content.
Zoltan Varga [Wed, 24 Oct 2012 00:17:40 +0000 (02:17 +0200)]
Fix a problem in the SSA switch elimination code.
Martin Baulig [Tue, 23 Oct 2012 23:17:38 +0000 (01:17 +0200)]
[#7258][Web]: Fix proxy authentication for non-ssl sessions
Thanks a lot to Christian Gan for this patch :-)
Martin Baulig [Tue, 23 Oct 2012 16:18:49 +0000 (18:18 +0200)]
Test, triggering buildbot run.
I disabled Winforms in the mono-mac-master build like it has
already been disabled on mono-opensuse-master. This should now
produce a green build.
Alexey Moiseev [Tue, 23 Oct 2012 15:43:27 +0000 (18:43 +0300)]
Added overload to getgrouplist with Mono.Unix.Native.Passwd instance as input parameter. Documented getgrouplist functions.
Martin Baulig [Tue, 23 Oct 2012 10:41:57 +0000 (12:41 +0200)]
Disable failing tests on the Mac.
* System.Drawing (filed #7940 about this):
GraphicsTest.DrawFillRectangle_Width_2 and
GraphicsTest.FillDrawRectangle_Width_2
* Mono.Posix (filed #7942):
UnixUserTest.NonReentrantSyscalls
* WCF (filed #7943):
CallbackBehaviorAttributeTest.CallbackExample1
CallbackBehaviorAttributeTest.CallbackExample2
UriTemplateTest.EscapedUriCandidate
UriTemplateTest.SimpleWebGet
AnnouncementClientTest.AnnonceOnlineOfflineAddressSchemeMismatch
Martin Baulig [Tue, 23 Oct 2012 05:26:42 +0000 (07:26 +0200)]
Fix CookieParserTest.TestExpires().
DateTime.MinValue.ToUniversalTime() != DateTime.MinValue
if you're living east of Greenwich.
Martin Baulig [Tue, 23 Oct 2012 03:56:16 +0000 (05:56 +0200)]
Add DateTime test to investigate the TestCookieParser.Expires() issue.
Martin Baulig [Tue, 23 Oct 2012 00:43:17 +0000 (02:43 +0200)]
Test; testing test failure on buildbot.
Martin Baulig [Mon, 22 Oct 2012 20:57:08 +0000 (22:57 +0200)]
Test; testing buildbot.
Zoltan Varga [Mon, 22 Oct 2012 21:31:20 +0000 (23:31 +0200)]
Move the sgen stop-the-world code to a separate file.
Duncan Mak [Mon, 22 Oct 2012 21:23:23 +0000 (17:23 -0400)]
Bump version number to 3.0.1