mono.git
14 years ago2010-04-23 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 23 Apr 2010 10:36:37 +0000 (10:36 -0000)]
2010-04-23  Astushi Enomoto  <atsushi@ximian.com>

* Http_listener_notes.txt: update comment, as I have fixed one issue
  with lengthy explanation.

svn path=/trunk/mcs/; revision=155993

14 years ago2010-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 23 Apr 2010 10:28:49 +0000 (10:28 -0000)]
2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* HttpListenerManager.cs : fixed the issue that mex_info is never
  retrieved from the latest channel listener (which could be other
  listener than the one which was set mex info).

* ServiceMetadataExtension.cs : raise an error if it failed to set
  mex info. (Make it safer.)

svn path=/trunk/mcs/; revision=155991

14 years agoIn class/System.Core:
Rolf Bjarne Kvinge [Fri, 23 Apr 2010 09:28:47 +0000 (09:28 -0000)]
In class/System.Core:
2010-04-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* moonlight_raw_System.Core.dll.sources: Include Lazy.cs and
LazyThreadSafetyMode.cs from corlib in here.

In class/corlib:
2010-04-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* moonlight_raw_corlib.dll.sources: Don't include Lazy.cs here. It's in
System.Core.dll.

In class/corlib/System.Threading:
2010-04-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* LazyThreadSafetyMode.cs: Include in Moonlight build.

In class/corlib/System:
2010-04-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* Lazy.cs: Include in Moonlight build.

svn path=/trunk/mcs/; revision=155983

14 years ago2010-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 23 Apr 2010 09:26:26 +0000 (09:26 -0000)]
2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* HttpChannelListener.cs, HttpListenerManager.cs :
  actually it should be ChannelDispatcher-to-HttpChannelListener,
  to identify which dispatcher to send reqs.

* ServiceHostBase.cs: (ditto)

svn path=/trunk/mcs/; revision=155982

14 years ago2010-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 23 Apr 2010 07:05:56 +0000 (07:05 -0000)]
2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* HttpReplyChannel.cs : remove old Http Keep-Alive workaround.

svn path=/trunk/mcs/; revision=155975

14 years ago2010-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 23 Apr 2010 05:26:17 +0000 (05:26 -0000)]
2010-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceHostBase.cs : add host-to-http-listener mapping so that
  they can be managed per host.

* HttpTransportBindingElement.cs,
  HttpChannelListener.cs,
  HttpListenerManager.cs : add host-to-http-listener mapping so that
  they can be managed per host.

* ServiceMetadataExtension.cs : reflect DispatcherBuilder change.

svn path=/trunk/mcs/; revision=155974

14 years ago2010-04-23 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Thu, 22 Apr 2010 23:09:35 +0000 (23:09 -0000)]
2010-04-23  Jérémie Laval  <jeremie.laval@gmail.com>

In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs: Fix namespace, add NET_4_0 #ifdef
   * ParallelTestHelper.cs: Fix namespace

In class/System/Test/System.Collections.Concurrent/:
   * BlockingCollectionTests.cs: Add IsCompletedEmptyTestCase,
   fix namespace

svn path=/trunk/mcs/; revision=155968

14 years agoFifth patch from: Damien Diederen <dd@crosstwine.com>
Miguel de Icaza [Thu, 22 Apr 2010 21:26:25 +0000 (21:26 -0000)]
Fifth patch from: Damien Diederen <dd@crosstwine.com>

For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

* Normalization.cs: Really apply canonical reordering "recursively."

Before this, a sequence of code points with the combining
classes (22, 33, 11) would be reordered to (22, 11, 33) instead of
the correct (11, 22, 33).  This is because the 'i--' would be
directly cancelled by the 'i++' in the for loop.

svn path=/trunk/mcs/; revision=155966

14 years agoFourth patch from: Damien Diederen <dd@crosstwine.com>
Miguel de Icaza [Thu, 22 Apr 2010 21:25:59 +0000 (21:25 -0000)]
Fourth patch from: Damien Diederen <dd@crosstwine.com>

For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

     * Normalization.cs: The correct "checkType" argument to
Decompose() is NKD or NKFD when normalizing to NKC resp. NKFC.

* StringTest.cs: More NFC test cases.

svn path=/trunk/mcs/; revision=155965

14 years agoThird patch from: Damien Diederen <dd@crosstwine.com>
Miguel de Icaza [Thu, 22 Apr 2010 21:25:34 +0000 (21:25 -0000)]
Third patch from: Damien Diederen <dd@crosstwine.com>

For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

* Normalization.cs: Implement algorithmic Hangul composition.
Calling Normalize(NormalizationForm.FormC) on Korean characters
now works properly (bnc#480152).

* StringTest.cs: Add test cases for Hangul composition.

svn path=/trunk/mcs/; revision=155964

14 years agoSecond patch from: Damien Diederen <dd@crosstwine.com>
Miguel de Icaza [Thu, 22 Apr 2010 21:25:04 +0000 (21:25 -0000)]
Second patch from: Damien Diederen <dd@crosstwine.com>

For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

* Normalization.cs: Follow the spec when checking composition pairs.

Figure 7 in section 1.3 of http://unicode.org/reports/tr15/ shows
how when doing composition, one has to examine the successive
(starter, candidate) pairs, and combine if a matching canonical
decomposition exists.

The original algorithm was, instead, iterating on canonical
decompositions, and, for each one, trying to match a sequence
of (starter, non-starter, ...).  This, however, does not produce
the same results as it is violating some implicit ordering
constraints in the Unicode tables.

E.g., when composing the following sequence of codepoints, the
original algorithm was picking:

  03B7 0313 0300 0345
  ^^^^     ^^^^
  1F74 0313  0345
  ^^^^          ^^^^
  1FC2 0313

and would stop at 1FC2 0313 as there is no decomposition matching
it.  The new algorithm, which follows the guidance of the pretty
figure 7, ends up doing:

  03B7 0313 0300 0345
  ^^^^ ^^^^
  1F20     0300 0345
  ^^^^     ^^^^
  1F22          0345
  ^^^^          ^^^^
  1F92

resulting in the correct 1F92.

svn path=/trunk/mcs/; revision=155963

14 years agoFirst patch from: Damien Diederen <dd@crosstwine.com>
Miguel de Icaza [Thu, 22 Apr 2010 21:24:18 +0000 (21:24 -0000)]
First patch from: Damien Diederen <dd@crosstwine.com>

For bug: https://bugzilla.novell.com/show_bug.cgi?id=480152

* Normalization.cs: Recursively apply the Unicode decomposition mapping.

According to http://www.unicode.org/reports/tr15/tr15-31.html,
section 1.3:

"To transform a Unicode string into a given Unicode Normalization
Form, the first step is to fully decompose the string. [...] Full
decomposition involves recursive application of the
Decomposition_Mapping values, because in some cases a complex
composite character may have a Decomposition_Mapping into a
sequence of characters, one of which may also have its own
non-trivial Decomposition_Mapping value."

svn path=/trunk/mcs/; revision=155962

14 years ago2010-04-22 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 22 Apr 2010 20:50:27 +0000 (20:50 -0000)]
2010-04-22  Miguel de Icaza  <miguel@novell.com>

* SerialPort.cs: Try to detect serial devices in other Unix
systems.

svn path=/trunk/mcs/; revision=155961

14 years ago2010-04-22 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 22 Apr 2010 19:42:15 +0000 (19:42 -0000)]
2010-04-22  Miguel de Icaza  <miguel@novell.com>

* SerialPort.cs: Try to detect serial devices in other Unix
systems.

svn path=/trunk/mcs/; revision=155960

14 years ago2010-04-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 22 Apr 2010 17:01:36 +0000 (17:01 -0000)]
2010-04-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpanTest.cs: Update our test after the 4.0 release.

svn path=/trunk/mcs/; revision=155956

14 years ago2010-04-22 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 22 Apr 2010 16:59:03 +0000 (16:59 -0000)]
2010-04-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpan.cs: The final 4.0 release removed the restriction of
preceding zeroes when parsing, and it also added 't' and 'T' as valid
formats equivalent to 'c' (default).

svn path=/trunk/mcs/; revision=155955

14 years ago2010-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Apr 2010 12:13:16 +0000 (12:13 -0000)]
2010-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* XamlMemberInvoker.cs : make sure GetValue() is not supported
  on directives.

* XamlMemberInvokerTest.cs : make sure GetValue() is not supported
  on directives.

svn path=/trunk/mcs/; revision=155946

14 years ago2010-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Apr 2010 11:54:12 +0000 (11:54 -0000)]
2010-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs, TypeExtensionMethods.cs : now it can return
  Type name correctly, with INamespacePrefixLookup implementation.

* XamlObjectReaderTest.cs : enabled working tests. Add decent
  namespace declaration node assertions in the next tests.

svn path=/trunk/mcs/; revision=155945

14 years ago2010-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Apr 2010 10:47:03 +0000 (10:47 -0000)]
2010-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs, TypeExtensionMethods.cs : handle System.Type
  as predefined type that returns Value instead of StartObject.
  Rename some member getter methods to explicitly limit the scope to
  object readers so far.

svn path=/trunk/mcs/; revision=155942

14 years ago2010-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Apr 2010 10:44:45 +0000 (10:44 -0000)]
2010-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* XamlMemberInvokerTest.cs : make sure that the invoker returns Type
  for Type member here. (XamlObjectReader returns string for some
  cases, so I wanted to make sure it is *not* here.)

svn path=/trunk/mcs/; revision=155941

14 years ago2010-04-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 22 Apr 2010 10:18:48 +0000 (10:18 -0000)]
2010-04-22  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs
  XamlMember.cs
  TypeExtensionMethods.cs
  XamlType.cs : handle PositionalParameters, for Type type support.

* XamlObjectReaderTest.cs : add another MarkupExtension test.

svn path=/trunk/mcs/; revision=155940

14 years agoDon't attempt to keep processing after processing all types.
Geoff Norton [Wed, 21 Apr 2010 23:36:19 +0000 (23:36 -0000)]
Don't attempt to keep processing after processing all types.
Don't attempt to get interfaces of GenericParameters.

svn path=/trunk/mcs/; revision=155925

14 years agoAdd new option -a to print out all the types
Miguel de Icaza [Wed, 21 Apr 2010 21:20:44 +0000 (21:20 -0000)]
Add new option -a to print out all the types

svn path=/trunk/mcs/; revision=155923

14 years agoUpdate
Miguel de Icaza [Wed, 21 Apr 2010 21:20:41 +0000 (21:20 -0000)]
Update

svn path=/trunk/mono/; revision=155922

14 years ago2010-04-21 Veerapuram Varadhan <vvaradhan@novell.com>
Veerapuram Varadhan [Wed, 21 Apr 2010 20:21:41 +0000 (20:21 -0000)]
2010-04-21  Veerapuram Varadhan  <vvaradhan@novell.com>

** Fixes #595918
* Tds70.cs (WriteParameterInfo): Write updated decimal value
according to specified scale value.

svn path=/trunk/mcs/; revision=155912

14 years ago2010-04-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 21 Apr 2010 14:43:20 +0000 (14:43 -0000)]
2010-04-21  Sebastien Pouliot  <sebastien@ximian.com>

* XDocument.cs: Don't use XmlReaderSettings.ProhibitDtd when
building Moonlight SDK assemblies

svn path=/trunk/mcs/; revision=155877

14 years agoupdate System.Net.dll for SL4 API
Sebastien Pouliot [Wed, 21 Apr 2010 14:03:45 +0000 (14:03 -0000)]
update System.Net.dll for SL4 API

svn path=/trunk/mcs/; revision=155874

14 years ago2010-04-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 21 Apr 2010 13:25:55 +0000 (13:25 -0000)]
2010-04-21  Sebastien Pouliot  <sebastien@ximian.com>
* FileSystemInfo.cs: Ensure elevated trust when calling [Creation
|LastAccess|LastWrite]Time setters

svn path=/trunk/mcs/; revision=155872

14 years ago2010-04-21 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 21 Apr 2010 12:40:57 +0000 (12:40 -0000)]
2010-04-21  Sebastien Pouliot  <sebastien@ximian.com>

* FileInfo.cs: Ensure elevated trust when calling Delete on
Moonlight.

svn path=/trunk/mcs/; revision=155869

14 years ago2010-04-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Apr 2010 10:54:55 +0000 (10:54 -0000)]
2010-04-21  Atsushi Enomoto  <atsushi@ximian.com>

* AsyncCallTest.cs : disable it again, it somehow does not work with
  the latest code from trunk (ThreadPool?).

svn path=/trunk/mcs/; revision=155860

14 years ago2010-04-21 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Apr 2010 09:48:27 +0000 (09:48 -0000)]
2010-04-21  Astushi Enomoto  <atsushi@ximian.com>

* Http_listener_notes.txt: more comment.

svn path=/trunk/mcs/; revision=155858

14 years ago2010-04-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Apr 2010 09:45:46 +0000 (09:45 -0000)]
2010-04-21  Atsushi Enomoto  <atsushi@ximian.com>

* BindingContext.cs : require a TransportBindingElement when
  building a channel listener.

* CustomBindingTest.cs : enable BuildChannelListener test for no-
  transport case. Test CanBuildChannelListener too.

svn path=/trunk/mcs/; revision=155857

14 years ago2010-04-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Apr 2010 08:41:54 +0000 (08:41 -0000)]
2010-04-21  Atsushi Enomoto  <atsushi@ximian.com>

* XDocument.cs : don't prohibit DTD.
* XNodeNavigator.cs : do not return true in MoveToFirstChild()
  when there is no child node. Fixed bug #594877.

* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
  tests that were commented out.

svn path=/trunk/mcs/; revision=155854

14 years ago2010-04-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 21 Apr 2010 08:19:39 +0000 (08:19 -0000)]
2010-04-21  Atsushi Enomoto  <atsushi@ximian.com>

* XmlTextReader.cs, DTDReader.cs : 0xFFFF was treated as if it were
  0x10000. (It is invalid and should be rejected by decent
  XmlReaders usage though.) Fixed bug #594628.

svn path=/trunk/mcs/; revision=155853

14 years ago* Makefile: Remove unnecessary "/" in the paths.
Ankit Jain [Wed, 21 Apr 2010 07:28:28 +0000 (07:28 -0000)]
* Makefile: Remove unnecessary "/" in the paths.
Fixes windows build (thanks to Atsushi Eno).

svn path=/trunk/mcs/; revision=155850

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 21 Apr 2010 00:28:49 +0000 (00:28 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Add tests for #331126.

svn path=/trunk/mcs/; revision=155848

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Wed, 21 Apr 2010 00:27:16 +0000 (00:27 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* icall.c (ves_icall_type_is_assignable_from): Properly handle
* byref
types.

Fixes #331126

svn path=/trunk/mono/; revision=155847

14 years ago2010-04-21 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 20 Apr 2010 23:39:39 +0000 (23:39 -0000)]
2010-04-21  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Turn off semi-precise stack mark.

svn path=/trunk/mono/; revision=155846

14 years ago 2010-04-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Apr 2010 22:35:31 +0000 (22:35 -0000)]
2010-04-21  Marek Habersack  <mhabersack@novell.com>

     * HttpApplication.cs: update to fix for bug #572469 - ProcessError
     clears the error after handler return only if stop_processing is
     true. Also, stop_processing is never set before calling ProcessError

    Also added two more tests for the issue.

svn path=/trunk/mcs/; revision=155841

14 years ago add ISupportInitialize to the moonlight build.
Jackson Harper [Tue, 20 Apr 2010 20:09:29 +0000 (20:09 -0000)]
    add ISupportInitialize to the moonlight build.

svn path=/trunk/mcs/; revision=155837

14 years ago2010-04-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 20 Apr 2010 19:46:09 +0000 (19:46 -0000)]
2010-04-20  Sebastien Pouliot  <sebastien@ximian.com>

* reflection.c (mono_custom_attrs_from_index): Use right function
to free 'list' (i.e. g_list_free) if the verifier fails.

svn path=/trunk/mono/; revision=155834

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Apr 2010 19:29:48 +0000 (19:29 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Enable a bunch of asserts.
They regression test #331126.

svn path=/trunk/mcs/; revision=155833

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Apr 2010 19:29:34 +0000 (19:29 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilder.cs (CreateType): Move default constructor
and createTypeCalled assignment to before the parent checks.

* TypeBuilder.cs (is_created): Return true even if creation
fails.

Fixes #331126

svn path=/trunk/mcs/; revision=155832

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Apr 2010 19:29:21 +0000 (19:29 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeBuilderTest.cs: Slay all 1.0 code.

svn path=/trunk/mcs/; revision=155831

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Apr 2010 17:34:39 +0000 (17:34 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* BinderTest.cs: Add tests for #325306.

svn path=/trunk/mcs/; revision=155829

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Apr 2010 17:34:30 +0000 (17:34 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* Binder.cs (SelectMethod): Exact matching must check
all entries because if two of them match, we must use
the slow path.

* Binder.cs (GetBetterMethod): Don't give generic method
definition special treatment.

Fixes #325306.

svn path=/trunk/mcs/; revision=155828

14 years ago2010-04-20 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 20 Apr 2010 17:34:20 +0000 (17:34 -0000)]
2010-04-20 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Fix the test suite.

svn path=/trunk/mcs/; revision=155827

14 years agoCleanup Android support, replacing platform checks with configure checks:
Jonathan Pryor [Tue, 20 Apr 2010 16:17:05 +0000 (16:17 -0000)]
Cleanup Android support, replacing platform checks with configure checks:

* configure.in: Check for the asm/sigcontext.h header.
* mono/mini/exceptions-arm.c: Remove platform checks in favor of
  configure checks.
* mono/io-layer/collection.c: Cleanup platform checks around
  pthread_attr_setstacksize(), and instead always use
  MAX(65536, PTHREAD_STACK_MIN) as the stack size.
* mono/io-layer/mono-mutex.c: Remove near duplicate
  pthread_mutex_timedlock() declarations, and merge via a CONST_NEEDED
  intermediate #define.

svn path=/trunk/mono/; revision=155826

14 years ago2010-04-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 20 Apr 2010 15:54:28 +0000 (15:54 -0000)]
2010-04-20 Gonzalo Paniagua Javier <gonzalo@novell.com>

* ChunkStream.cs: ignore chunk extensions when reading the chunk
size. Fixes bug #597556.

svn path=/trunk/mcs/; revision=155815

14 years agoREADME: Replace --with-profile2 with --with-profile4.
Andrés G. Aragoneses [Tue, 20 Apr 2010 15:52:49 +0000 (15:52 -0000)]
README: Replace --with-profile2 with --with-profile4.

svn path=/trunk/mono/; revision=155814

14 years ago * configure.in: On OpenBSD, remove duplicate -pthread options in
Jonathan Pryor [Tue, 20 Apr 2010 13:33:52 +0000 (13:33 -0000)]
* configure.in: On OpenBSD, remove duplicate -pthread options in
  libmono_ldflags.  Change from Robert Nagy <robert@openbsd.org>.

svn path=/trunk/mono/; revision=155808

14 years ago * configure.in: For Linux hosts, remove libmono_ldflags="-lpthread".
Jonathan Pryor [Tue, 20 Apr 2010 12:25:15 +0000 (12:25 -0000)]
* configure.in: For Linux hosts, remove libmono_ldflags="-lpthread".
  It's unnecessary (for !target_win32, pthreads are checked again
  later in configure.in), and it breaks Android (which doesn't have
  libpthread, but DOES have pthreads in libc).

svn path=/trunk/mono/; revision=155800

14 years ago2010-04-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Apr 2010 11:57:50 +0000 (11:57 -0000)]
2010-04-20  Atsushi Enomoto  <atsushi@ximian.com>

* TypeExtensionMethods.cs : add IsContentValue() for member and
  return true for "_Initialization".
* XamlObjectReader.cs : use above.

* XamlObjectReaderTest.cs : added a bunch of read detail tests (lots
  on not-working ones).

svn path=/trunk/mcs/; revision=155798

14 years ago2010-04-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Apr 2010 11:38:32 +0000 (11:38 -0000)]
2010-04-20  Atsushi Enomoto  <atsushi@ximian.com>

* XamlType.cs : implement LookupPositionalParameters().

* XamlTypeTest.cs : added tests for GetPositionalParameters().

svn path=/trunk/mcs/; revision=155793

14 years ago2010-04-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Apr 2010 11:36:18 +0000 (11:36 -0000)]
2010-04-20  Atsushi Enomoto  <atsushi@ximian.com>

* ArrayExtension.cs : remove MonoTODO.

svn path=/trunk/mcs/; revision=155792

14 years ago2010-04-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Apr 2010 11:35:27 +0000 (11:35 -0000)]
2010-04-20  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs : use Type, not TargetType.

svn path=/trunk/mcs/; revision=155791

14 years ago2010-04-20 Astushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Apr 2010 10:41:05 +0000 (10:41 -0000)]
2010-04-20  Astushi Enomoto  <atsushi@ximian.com>

* Http_listener_notes.txt: added explanation on *why* it is SO hard
  to solve.

svn path=/trunk/mcs/; revision=155789

14 years ago2010-04-20 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 20 Apr 2010 09:43:19 +0000 (09:43 -0000)]
2010-04-20  Atsushi Enomoto  <atsushi@ximian.com>

* OperationInvokerHandler.cs : workaround NRE issue in AsyncCallTest.
  The original code was worse than this workaround.

svn path=/trunk/mcs/; revision=155788

14 years ago * configure.in: Disable AC_CHECK_LIB() for pthread, as this breaks
Jonathan Pryor [Mon, 19 Apr 2010 22:36:12 +0000 (22:36 -0000)]
* configure.in: Disable AC_CHECK_LIB() for pthread, as this breaks
  autoconf on BSD platforms.  (Why?  Who knows -- it's AutoConf!)

svn path=/trunk/mono/; revision=155775

14 years ago2010-04-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Apr 2010 21:50:59 +0000 (21:50 -0000)]
2010-04-19 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Handle the case where mono_type_get_underlying_type_any
returns NULL. Remove duplicated code between MONO_TYPE_GENERICINST
  and MONO_TYPE_VALUETYPE in those case.

Based on a slightly modified patch by Sebastien Pouliot <sebastien@ximian.com>

Hopefully Fixes #564253.

svn path=/trunk/mono/; revision=155771

14 years ago2010-04-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 19 Apr 2010 21:21:14 +0000 (21:21 -0000)]
2010-04-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* domain-internals.h: made threadpool_jobs volatile.
* mono-wsq.c: add an assert to verify that the threadpool cleaned up
all local jobs.
* threadpool.c:
-When two threads try to initialize the socket IO pool,
the second one waits until the intialization is finished
instead of continuing right away.
-Add checks for domain unload: no items added in this case.
-Only measure the time every 10 elements added to the queue.
This is an experiment since linux x86 gettimeofday() sucks.
-Create new thread if there are none waiting for work items.
-There was a missing decrement of the busy threads.
-Make sure the local queue is cleaned up before exiting the
thread when the program ends.

svn path=/trunk/mono/; revision=155767

14 years ago2010-04-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 19 Apr 2010 21:12:08 +0000 (21:12 -0000)]
2010-04-19 Gonzalo Paniagua Javier <gonzalo@novell.com>

* zlib-helper.c: don't call Z_FINISH if nothing has been written.

svn path=/trunk/mono/; revision=155764

14 years ago * src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in
Jonathan Pryor [Mon, 19 Apr 2010 20:56:15 +0000 (20:56 -0000)]
* src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in
  terms of g_critical() instead of printf, and turn g_printerr() into
  an actual function instead of a macro.
* src/goutput.c: Add Android support, sending g_print(), g_printerr(),
  and g_log() messages to the Android system log.

svn path=/trunk/mono/; revision=155763

14 years ago * configure.in: Use AC_CHECK_LIB() to check for pthread instead of
Jonathan Pryor [Mon, 19 Apr 2010 20:43:23 +0000 (20:43 -0000)]
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
  just blindly linking to -lpthread, as Android includes pthread
  support within libc and doesn't provide a separate libpthread.
  Android's <string.h> pulls in <malloc.h> (unlike glibc), resulting
  in a build error in mono/utils/mono-codeman.c due to
  `struct mallinfo` re-declaration.  Define HAVE_USR_INCLUDE_MALLOC_H
  if /usr/include/malloc.h is present to avoid this.
* mono/io-layer/collection.c, mono-mutex.c: Add Android support.
* mono/mini/exceptions-arm.c: Add Android support for sigcontext
  structure.

svn path=/trunk/mono/; revision=155759

14 years ago * configure.in: Add header, structure member, and function checks as
Jonathan Pryor [Mon, 19 Apr 2010 20:07:18 +0000 (20:07 -0000)]
* configure.in: Add header, structure member, and function checks as
  Android doesn't provide all the headers, structure members, and
  functions that a "full" Linux distro includes.
* support/dirent.c, support/grp.c, support/macros.c, support/pwd.c,
  support/signal.c, support/sys-statvfs.c, support/sys-time.c,
  support/unistd.c: Add #if HAVE_XXX checks for functions which aren't
  provided on Android.

svn path=/trunk/mono/; revision=155753

14 years ago2010-04-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Apr 2010 19:17:42 +0000 (19:17 -0000)]
2010-04-19 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Add regression test for #473289.

svn path=/trunk/mcs/; revision=155751

14 years ago2010-04-19 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Mon, 19 Apr 2010 19:17:25 +0000 (19:17 -0000)]
2010-04-19 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_type_get_object): Normalize generics types
as to how managed code expect them to be. A generic instance
over
the GTD arguments must have the same mirror as the GTD itself.

Fixes #473289.

svn path=/trunk/mono/; revision=155750

14 years ago * include/private/gcconfig.h: Android platforms are built atop Linux,
Jonathan Pryor [Mon, 19 Apr 2010 18:49:27 +0000 (18:49 -0000)]
* include/private/gcconfig.h: Android platforms are built atop Linux,
  don't use glibc, and uses `environ` instead of `__environ`.
* configure.in: Use AC_CHECK_LIB() to check for pthread instead of
  just blindly linking to -lpthread, as Android includes pthread
  support within libc and doesn't provide a separate libpthread.

svn path=/trunk/mono/; revision=155747

14 years ago2010-04-19 Sebastien Pouliot <sebastien at ximian.com>
Sebastien Pouliot [Mon, 19 Apr 2010 18:25:25 +0000 (18:25 -0000)]
2010-04-19  Sebastien Pouliot  <sebastien at ximian.com>

* Mono.Cecil/ReflectionWriter.cs: Partial (forwarders) fix for
writing ExternTypes (needed for tuning ML4 correctly)

svn path=/trunk/mcs/; revision=155742

14 years ago2010-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Apr 2010 11:09:29 +0000 (11:09 -0000)]
2010-04-19  Zoltan Varga  <vargaz@gmail.com>

* locales.c: Implement support for DISABLE_NORMALIZATION.

svn path=/trunk/mono/; revision=155719

14 years ago2010-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Apr 2010 11:09:23 +0000 (11:09 -0000)]
2010-04-19  Zoltan Varga  <vargaz@gmail.com>

* configure.in: Add a --enable-minimal=normalization option to disable support
for string normalization.

svn path=/trunk/mono/; revision=155718

14 years ago2010-04-19 Jérémie Laval <jeremie.laval@gmail.com>
Jérémie Laval [Mon, 19 Apr 2010 10:59:49 +0000 (10:59 -0000)]
2010-04-19  Jérémie Laval  <jeremie.laval@gmail.com>

In class/corlib/System.Threading.Tasks/Internal/:
   * ThreadWorker.cs: Cleanup and refactoring

svn path=/trunk/mcs/; revision=155717

14 years ago * NotifyIcon.cs: Make BalloonWindow expose the owner's Handle.
Carlos Alberto Cortez [Mon, 19 Apr 2010 10:51:38 +0000 (10:51 -0000)]
* NotifyIcon.cs: Make BalloonWindow expose the owner's Handle.
* Theme.cs:
* ThemeWin32Classic.cs: Add a HideBalloonWindow method to force to
close an active balloon window.
* XplatUIX11.cs: When removing from the system tray try to close
the balloon window. This is important when we hide a NotifyIcon and
thus need to close its related balloon window as well.
Fixes bits of #590093.

2010-04-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

svn path=/trunk/mcs/; revision=155713

14 years ago2010-04-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 19 Apr 2010 09:27:55 +0000 (09:27 -0000)]
2010-04-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* XplatUIX11.cs: When adding a NotifyIcon to the system tray, mark its
Hwnd.mapped as true, since its handle is going to be mapped later by
the tray (not us), but we need to know it's alive and can later properly unmap
it.
Fixes part of #590093.

svn path=/trunk/mcs/; revision=155705

14 years agoFix warnings.
Zoltan Varga [Mon, 19 Apr 2010 08:41:42 +0000 (08:41 -0000)]
Fix warnings.

svn path=/trunk/mcs/; revision=155701

14 years agoFix a warning.
Zoltan Varga [Mon, 19 Apr 2010 08:41:34 +0000 (08:41 -0000)]
Fix a warning.

svn path=/trunk/mcs/; revision=155700

14 years agoFix a warning.
Zoltan Varga [Mon, 19 Apr 2010 08:41:28 +0000 (08:41 -0000)]
Fix a warning.

svn path=/trunk/mcs/; revision=155699

14 years ago2010-04-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Apr 2010 08:28:50 +0000 (08:28 -0000)]
2010-04-19  Zoltan Varga  <vargaz@gmail.com>

* CompareInfo.cs (IndexOf): Return startIndex instead of 0 for empty strings.
Fixes #597604.

svn path=/trunk/mcs/; revision=155698

14 years ago2010-04-18 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 19 Apr 2010 08:28:43 +0000 (08:28 -0000)]
2010-04-18  Zoltan Varga  <vargaz@gmail.com>

* CharTest.cs: Add missing [TestFixture] attribute.

svn path=/trunk/mcs/; revision=155697

14 years ago2010-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 19 Apr 2010 07:29:04 +0000 (07:29 -0000)]
2010-04-19  Atsushi Enomoto  <atsushi@ximian.com>

* AsyncPatternTester.cs, MessageContractTest.cs, AsyncCallTest.cs:
  enable working tests.

svn path=/trunk/mcs/; revision=155694

14 years ago2010-04-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 19 Apr 2010 03:53:24 +0000 (03:53 -0000)]
2010-04-19  Atsushi Enomoto  <atsushi@ximian.com>

* HttpReplyChannel.cs : use local var to hold wait handle to avoid
  possible NRE on field. Based on the patch by Matt Dargavel.

svn path=/trunk/mcs/; revision=155692

14 years ago2010-04-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 18 Apr 2010 15:11:46 +0000 (15:11 -0000)]
2010-04-18  Atsushi Enomoto  <atsushi@ximian.com>

* XamlType.cs : do not return index property.
* TypeExtensionMethods.cs : return Initialization only for value nodes.
* XamlObjectReader.cs : member content can be either a value or a new
  object. Fix certain EndObject transition to become EndMember, not
  EndObject twice.

* XamlObjectReaderTest.cs : enable working test.

svn path=/trunk/mcs/; revision=155685

14 years ago2010-04-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 18 Apr 2010 13:00:54 +0000 (13:00 -0000)]
2010-04-18  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs, XamlSchemaContext.cs, XamlLanguage.cs:
  collect namespace declarations first. Remove extra [XmlnsPrefix]
  on the assembly, and handle it specially in GetPreferredPrefix(),

svn path=/trunk/mcs/; revision=155682

14 years ago2010-04-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 18 Apr 2010 12:16:29 +0000 (12:16 -0000)]
2010-04-18  Atsushi Enomoto  <atsushi@ximian.com>

* XamlObjectReader.cs : check constructible type. Remove extra ns node.

* XamlObjectReaderTest.cs : enable working tests and remove invalid
  comment.

svn path=/trunk/mcs/; revision=155681

14 years ago2010-04-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sun, 18 Apr 2010 11:51:11 +0000 (11:51 -0000)]
2010-04-18  Atsushi Enomoto  <atsushi@ximian.com>

* XamlType.cs : ignore ReferenceConverter which is used for IList<T>.

* XamlObjectReaderTest.cs : add simple read tests for some types.

svn path=/trunk/mcs/; revision=155680

14 years agoRemove unused var and declare variables first to fix msvc build.
Jonathan Pobst [Sun, 18 Apr 2010 02:35:21 +0000 (02:35 -0000)]
Remove unused var and declare variables first to fix msvc build.

svn path=/trunk/mono/; revision=155679

14 years ago2010-04-17 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 18 Apr 2010 01:13:36 +0000 (01:13 -0000)]
2010-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeViewTest.cs: New test for Sorted and BeginUpdate interaction.

svn path=/trunk/mcs/; revision=155678

14 years agoKeep "ftp://a.b/%2fcd" urls unmolested
Raja R Harinath [Sat, 17 Apr 2010 10:33:03 +0000 (10:33 -0000)]
Keep "ftp://a.b/%2fcd" urls unmolested

* System/Uri.cs (CompactEscaped): New.  Check if scheme allows escaped
path characters are compacted (list of schemes obtained from MSDN).
(Reduce): Add argument that is set if escaped characters need to
be compacted.
* Tests/System/UriTest.cs (FtpRootPath): New.  Check that ftp root paths are
unmolested.

svn path=/trunk/mcs/; revision=155670

14 years ago2010-04-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 16 Apr 2010 21:37:22 +0000 (21:37 -0000)]
2010-04-16 Rodrigo Kumpera  <rkumpera@novell.com>

* TypeTest.cs: Add regression test for #484246.

svn path=/trunk/mcs/; revision=155665

14 years ago2010-04-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 16 Apr 2010 21:37:12 +0000 (21:37 -0000)]
2010-04-16 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoType.cs (GetInterface): Compare against the name
of the generic type definition.

Fixes #484246.

svn path=/trunk/mcs/; revision=155664

14 years agoGuard for NULLs
Miguel de Icaza [Fri, 16 Apr 2010 21:04:39 +0000 (21:04 -0000)]
Guard for NULLs

svn path=/trunk/mono/; revision=155663

14 years ago2010-04-16 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 16 Apr 2010 20:59:21 +0000 (20:59 -0000)]
2010-04-16  Miguel de Icaza  <miguel@novell.com>

        * src/gshell.c (g_shell_unquote): Implement this.

svn path=/trunk/mono/; revision=155662

14 years ago2010-04-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 16 Apr 2010 20:40:52 +0000 (20:40 -0000)]
2010-04-16 Rodrigo Kumpera  <rkumpera@novell.com>

* AttributeTest.cs: Add regression test for #499569.

svn path=/trunk/mcs/; revision=155661

14 years ago2010-04-16 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 16 Apr 2010 20:40:42 +0000 (20:40 -0000)]
2010-04-16 Rodrigo Kumpera  <rkumpera@novell.com>

* MonoCustomAttrs.cs (GetBasePropertyDefinition): Use
GetBaseMethod instead of GetMethodDefinition otherwise
we skip intermediate overloads.

Fixes #499569.

svn path=/trunk/mcs/; revision=155660

14 years ago2010-04-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 16 Apr 2010 20:23:57 +0000 (20:23 -0000)]
2010-04-16  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_compile_method_inner): Implement the check for native func
wrappers correctly now that their wrapper info is NULL.

svn path=/trunk/mono/; revision=155659

14 years ago2010-04-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 16 Apr 2010 20:23:50 +0000 (20:23 -0000)]
2010-04-16  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_native_func_wrapper): Set the marshal info to NULL,
since it is not a MonoMethod.

svn path=/trunk/mono/; revision=155658

14 years ago2010-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 16 Apr 2010 20:12:17 +0000 (20:12 -0000)]
2010-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeViewTest.cs: New test for automatical sorting.

svn path=/trunk/mcs/; revision=155657

14 years agonoted that I'll maintain revived mono-api-diff
C.J. Adams-Collier [Fri, 16 Apr 2010 20:10:44 +0000 (20:10 -0000)]
noted that I'll maintain revived mono-api-diff

svn path=/trunk/mcs/; revision=155656

14 years ago2010-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 16 Apr 2010 20:10:25 +0000 (20:10 -0000)]
2010-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNodeCollection.cs: When adding/inserting/setting a new node call
TreeView.Sort if needed, and update/recalculate this entire
collection in that case.
* TreeView.cs: Make 'sorted' internal, instead of directly using
Sorted, as this one could trigger a complete Sort() operation.

svn path=/trunk/mcs/; revision=155655

14 years ago2010-04-16 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 16 Apr 2010 19:53:37 +0000 (19:53 -0000)]
2010-04-16  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_jit_compile_method_inner): Avoid calling
mono_marshal_method_from_wrapper () for native func wrappers. Fixes #597189.

svn path=/trunk/mono/; revision=155653