mono.git
15 years agodelete for good
Jb Evain [Wed, 13 May 2009 15:13:28 +0000 (15:13 -0000)]
delete for good

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

15 years agoAdd initial solution generation support. This generates a solution with all mcs assem...
Jonathan Chambers [Wed, 13 May 2009 14:09:35 +0000 (14:09 -0000)]
Add initial solution generation support. This generates a solution with all mcs assemblies. It does not handle dependencies yet. Also, it brings Visual Studio to a standstill, so it's not really usable for editing.

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

15 years agoSpeed up weak refs.
Mark Probst [Wed, 13 May 2009 13:08:18 +0000 (13:08 -0000)]
Speed up weak refs.

2009-05-13  Mark Probst  <mark.probst@gmail.com>

* sgen.c: Speed up weak links and finalizers by grouping them by
generation.

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

15 years ago2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 May 2009 11:53:36 +0000 (11:53 -0000)]
2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>

* MessageImpl.cs, MessageHeader.cs : eliminate xlinq in 2.1, and
  actually eliminate DOM-based implementation too in 2.0.

* Makefile : remove xlinq dependency.

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

15 years ago2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 May 2009 11:03:04 +0000 (11:03 -0000)]
2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceCredentials.cs : IServiceBehavior.Validate() should not
  throw NIE. No check so far.

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

15 years ago2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 May 2009 10:30:23 +0000 (10:30 -0000)]
2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>

* ReplyHandler.cs, InputOrReplyRequestProcessor.cs,
  MessageProcessingContext.cs : reply processing is also needed by
  non-request channels (i.e. duplex). Current code basis lacked
  such possibility. Quick fix by adding duplex support in
  ReplyHandler so far.

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

15 years ago2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 May 2009 10:26:40 +0000 (10:26 -0000)]
2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>

* OperationContext.cs : missing from the previous commit (remove
  timeouts).

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

15 years ago2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 May 2009 10:08:46 +0000 (10:08 -0000)]
2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs, SecurityHandler.cs,
  InputOrReplyRequestProcessor.cs, MessageProcessingContext.cs :
  remove default communication timeouts from several types. They
  bring bogus NRE. Instead, fill timeouts in ChannelDispatcher and
  use it when required (it was actually *only* request processor).

* ChannelDispatcherTest.cs : make sure ctor args are nullable.

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

15 years ago2009-05-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 13 May 2009 09:25:12 +0000 (09:25 -0000)]
2009-05-13  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : wrong channel argument.

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

15 years agoFree previous GCHandle when overwriting an entry in delegate_hash_table.
Mark Probst [Wed, 13 May 2009 07:47:42 +0000 (07:47 -0000)]
Free previous GCHandle when overwriting an entry in delegate_hash_table.

2009-05-13  Mark Probst  <mark.probst@gmail.com>

* marshal.c (delegate_hash_table_add): When overwriting an entry,
free the old GCHandle (only applies to SGen).

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

15 years ago499009 has been fixed. Remove the workaround.
Gonzalo Paniagua Javier [Wed, 13 May 2009 01:13:30 +0000 (01:13 -0000)]
499009 has been fixed. Remove the workaround.

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

15 years agofix test
Gonzalo Paniagua Javier [Wed, 13 May 2009 00:43:10 +0000 (00:43 -0000)]
fix test

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

15 years ago2009-05-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Wed, 13 May 2009 00:40:51 +0000 (00:40 -0000)]
2009-05-12 Gonzalo Paniagua Javier <gonzalo@novell.com>

* UrlPattern.cs: if the pattern is line {a}/{b} and {b} is substituted
by an empty string, remove the '/' too.

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

15 years ago2009-05-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 13 May 2009 00:17:24 +0000 (00:17 -0000)]
2009-05-13  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_aot_method_hash): Implement this properly based
on mono_method_get_imt_slot ().

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

15 years ago2009-05-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 23:50:17 +0000 (23:50 -0000)]
2009-05-13  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (find_extra_method_in_amodule): Get rid of the
num_decodes variables.

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

15 years ago2009-05-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 23:33:59 +0000 (23:33 -0000)]
2009-05-13  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_aot_method_hash): Revert part of the last
change as it doesn't seem to work.

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

15 years ago2009-05-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 23:20:38 +0000 (23:20 -0000)]
2009-05-13  Zoltan Varga  <vargaz@gmail.com>

* loader.c (mono_get_method_from_token): Avoid the expensive call to
mono_metadata_load_generic_params () for non-generic methods.

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

15 years ago2009-05-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 23:20:30 +0000 (23:20 -0000)]
2009-05-13  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_aot_method_hash): Improve the hashing of
wrappers.

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

15 years ago2009-05-12 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 12 May 2009 23:17:03 +0000 (23:17 -0000)]
2009-05-12 Gonzalo Paniagua Javier <gonzalo@novell.com>

* UrlPattern.cs: non-string default arguments work now.

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

15 years ago2009-05-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 12 May 2009 21:51:01 +0000 (21:51 -0000)]
2009-05-12  Marek Habersack  <mhabersack@novell.com>

* UrlPattern.cs: The
value comparison is done case-insensitively when the dictionary
values are strings. Fixes bug #502555

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 21:31:03 +0000 (21:31 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c mini.c mini-amd64.h mini-arm.h: Kill
MONO_ARCH_FULL_AOT_IMT_SUPPORTED define, both platforms now support imt.

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 21:26:53 +0000 (21:26 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Install mono_aot_get_imt_thunk as the IMT thunk
builder when using full aot.

* mini-amd64.c (mono_arch_build_imt_thunk): Don't handle the full-aot case
here, it is already handled.

* mini-arm.c (mono_arch_emit_imt_argument): Pass the dynamic imt arg
correctly for IMT.

* aot-compiler.c (arch_emit_imt_thunk): Implement this for ARM.

* mini-arm.h: Enable IMT for full aot.

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

15 years ago2009-05-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 12 May 2009 20:37:34 +0000 (20:37 -0000)]
2009-05-12  Marek Habersack  <mhabersack@novell.com>

* UrlPattern.cs: TrySubstitute performs substitution trimming. If
a segment would be set to a default value and all of its following
segments as well, it will be omitted from the generated URL.

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

15 years agoRemove an object's monitor's weak link when clearing domains.
Mark Probst [Tue, 12 May 2009 20:22:02 +0000 (20:22 -0000)]
Remove an object's monitor's weak link when clearing domains.

2009-05-12  Mark Probst  <mark.probst@gmail.com>

* monitor.c, monitor.h (mono_monitor_get_object_monitor_weak_link):
New function for returning a monitor's weak link if it has one.

* sgen-gc.c: Remove an object's monitor's weak link (if it has
one) when clearing a domain.  These can still be around because
the object might not have been collected.

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

15 years ago * System.Diagnostics/DiagnosticsConfigurationHandler.cs: Use the new
Jonathan Pryor [Tue, 12 May 2009 18:53:16 +0000 (18:53 -0000)]
* System.Diagnostics/DiagnosticsConfigurationHandler.cs: Use the new
  TraceSourceInfo(string, SourceLevels, TraceImplSettings) constructor.
* System.Diagnostics/TraceSourceInfo.cs: Add a new constructor,
  TraceSourceInfo(string, SourceLevels, TraceImplSettings), which adds
  the DefaultTraceListener w/o depending upon (the possibly still
  initializing) TraceImpl members.  Fixes #502944.
* Test/test-config-file: Add a /configuration/system.diagnostics/source
  section to elicit the buggy behavior found in #502944.

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 15:51:27 +0000 (15:51 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (mono_compile_assembly): Don't emit imt thunk if the
arch doesn't support it.

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 15:02:47 +0000 (15:02 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mini_init): Don't disable IMT for full aot if the
architecture supports it.

* mini.h (MonoAotTrampoline): New enum containing the different types
of 'numerous' trampolines.
(MONO_AOT_FILE_VERSION): Bump this.

* aot-compiler.c aot-runtime.c: Unify the handling of specific and
static rgctx trampolines. Add support for full-aot IMT thunks.

* mini-amd64.h: Enable IMT for full aot.

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 14:58:09 +0000 (14:58 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* gc.c: Fix a warning.

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

15 years ago * TextBox.cs: Expose IsAutoCompleteAvailable as internal.
Carlos Alberto Cortez [Tue, 12 May 2009 14:55:04 +0000 (14:55 -0000)]
* TextBox.cs: Expose IsAutoCompleteAvailable as internal.
* ComboBox.cs: If auto complete is being used, it is needed to update
the actual value of the combo box, doing it immediately if the user
presses Enter, or doing it when our combo box loses focus. Finally,
when handling Enter and Escape keys for the combobox, don't try to
hide the listbox if it is not visible in the first place.
Fixes part of #489339.

2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 12 May 2009 14:49:26 +0000 (14:49 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* TestDriver.cs: Add a CategoryAttribute class and an --exclude option
to exclude tests belonging to a category.

* generics.cs: Mark some tests with a !FULLAOT category.

* Makefile.am (fullaotcheck): Run tests with --exclude !FULLAOT. Include
generics tests.

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

15 years ago2009-05-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 12 May 2009 13:34:14 +0000 (13:34 -0000)]
2009-05-12  Sebastien Pouliot  <sebastien@ximian.com>

* WebHeaderCollection_2_1.cs: Headers are case insensitive but we
must keep them in their original form since AllKeys property will
report them that way and user code (like DRT#288) can depends on
this behavior.

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

15 years ago2009-05-12 Tor Lillqvist <tml@novell.com>
Tor Lillqvist [Tue, 12 May 2009 10:33:40 +0000 (10:33 -0000)]
2009-05-12  Tor Lillqvist  <tml@novell.com>

* template_main.c: Some small improvements on Windows: No need to
include <shellapi.h>, <windows.h> does it already. Don't use the
argc value as passed to main(), instead just let
CommandLineToArgvW() overwrite it. Free the buffer returned by
CommandLineToArgvW().

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

15 years ago* TODO: Added notices about linking Mono statically.
Kornél Pál [Tue, 12 May 2009 09:58:49 +0000 (09:58 -0000)]
* TODO: Added notices about linking Mono statically.

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

15 years ago2009-05-12 Kornél Pál <kornelpal@gmail.com>
Kornél Pál [Tue, 12 May 2009 09:07:56 +0000 (09:07 -0000)]
2009-05-12  Kornél Pál  <kornelpal@gmail.com>

* gc.c (mono_gc_init): Set gc_thread on creation. This avoids the
prevous wait that resulted in a deadlock on Windows when initializing
the runtime form DllMain. Also results in improved startup time.
(finalizer_thread): Get rid of thread_started_event.
* threads.c, threads-types.h (mono_thread_create_internal): Return the
resulting MonoThread.

Contributed under MIT/X11 license.

Also fixed ChangeLog encoding.

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

15 years ago2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 12 May 2009 03:56:03 +0000 (03:56 -0000)]
2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* TcpClient.cs:
* Socket.cs:
* UdpClient.cs: use GetHostAddresses() instead of Resolve or
GetHostEntry.

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

15 years ago2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 12 May 2009 03:49:14 +0000 (03:49 -0000)]
2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* Dns.cs: made GetHostAddresses and friends internal for 1.x
* EndpointPermission.cs: use GetHostAddresses.

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

15 years ago2009-05-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 12 May 2009 03:31:25 +0000 (03:31 -0000)]
2009-05-11 Rodrigo Kumpera  <rkumpera@novell.com>

* assembly-with-methods.cs: Mark the class with the
P/Invoke as abstract.

* cli-tables-tests.md: Add tests for implmap.

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

15 years ago2009-05-11 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 12 May 2009 03:30:29 +0000 (03:30 -0000)]
2009-05-11 Rodrigo Kumpera  <rkumpera@novell.com>

* metadata-verify.c: Verify the implmap table.
Don't require that #US and #Strings be present.

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

15 years ago2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 12 May 2009 03:14:36 +0000 (03:14 -0000)]
2009-05-11 Gonzalo Paniagua Javier <gonzalo@novell.com>

* UdpClient.cs: if possible, avoid DNS lookups when the host name is
an IP address. Related to bug #502866.

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

15 years ago2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 12 May 2009 02:13:32 +0000 (02:13 -0000)]
2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDownTest.cs: New test to assure the Height atfer
calculating the layout depends on ToolStripItem.GetPreferredHeight.

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

15 years ago2009-05-11 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 12 May 2009 02:11:19 +0000 (02:11 -0000)]
2009-05-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDownMenu.cs: Use the height returned by
ToolStripItem.GetPreferredHeight to calculate our own height.

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

15 years ago2009-05-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 12 May 2009 01:54:15 +0000 (01:54 -0000)]
2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>

* security-core-clr.c: Delegate checks are done at creation time,
not a invocation time. Fix exception for Telerik Silverlight demo

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

15 years ago2009-05-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 11 May 2009 22:52:12 +0000 (22:52 -0000)]
2009-05-12  Zoltan Varga  <vargaz@gmail.com>

* collection.c (collection_thread): Get rid of all the ifdefs and
gcc attributes, simply return NULL.

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

15 years ago2009-05-12 Tor Lillqvist <tml@novell.com>
Tor Lillqvist [Mon, 11 May 2009 22:07:31 +0000 (22:07 -0000)]
2009-05-12  Tor Lillqvist  <tml@novell.com>

* mkbundle.1: Document MONO_BUNDLED_OPTIONS.

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

15 years ago * WebHeaderCollection_2_1.cs: Headers are removed only in special
Sebastien Pouliot [Mon, 11 May 2009 21:34:04 +0000 (21:34 -0000)]
* WebHeaderCollection_2_1.cs: Headers are removed only in special
cases and never when the "this" property is used. Call ToLower
in SetHeader too in order to avoid typos.

2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>

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

15 years agoReset abort exception/state and current_appcontext early to avoid cross-context problems.
Mark Probst [Mon, 11 May 2009 20:28:05 +0000 (20:28 -0000)]
Reset abort exception/state and current_appcontext early to avoid cross-context problems.

2009-05-11  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c (need_remove_object_for_domain): Remove the special
        case for the Thread class.

        * threads.c: Do clean-up of abort exception/state in
        thread_cleanup() instead of Thread.free_internal().  Also clean up
        current_appcontext.  The reason we have to do that is because
        those references might point into another domain and if that
        domain is unloaded before the thread is finalized, they point to
        invalid data.

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

15 years ago2009-05-11 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 11 May 2009 19:22:21 +0000 (19:22 -0000)]
2009-05-11  Sebastien Pouliot  <sebastien@ximian.com>

* HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
to use, with special care, the Headers property
* WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.

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

15 years ago2009-05-11 Tor Lillqvist <tml@novell.com>
Tor Lillqvist [Mon, 11 May 2009 19:21:00 +0000 (19:21 -0000)]
2009-05-11  Tor Lillqvist  <tml@novell.com>

* template_main.c: Enable passing options to the bundled Mono
interpreter through a MONO_BUNDLED_OPTIONS environment
variable. Requested in bug #495858.

Enable non-ASCII (arbitraty Unicode in fact) command-line
parameters to a mkbundled executable on Windows. Use
GetCommandLineW(), CommandLineToArgvW(), and then
g_utf16_to_utf8(). From bug #446172.

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

15 years ago2009-05-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 11 May 2009 17:37:07 +0000 (17:37 -0000)]
2009-05-11  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemaComplexType.cs : make complex content type work like .NET
  does. Patch by Jonas Larsson. Fixed bug #501814.

* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
  Larsson.

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

15 years ago2009-05-11 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 11 May 2009 17:12:26 +0000 (17:12 -0000)]
2009-05-11  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemaComplexType.cs : do not forget to clear attributes
  before Compile(). Patch by Jonas Larsson. Fixed bug #501763.

* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.

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

15 years ago2009-05-11 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 11 May 2009 17:12:11 +0000 (17:12 -0000)]
2009-05-11  Marek Habersack  <mhabersack@novell.com>

* UrlPattern.cs: TrySubstitute treats defaults differently
now. They are not consulted when checking if the passed values
match the pattern, but only when substituting the values. Fixes
bug #502555

2009-05-11  Marek Habersack  <mhabersack@novell.com>

* RouteCollectionTest.cs: added test for bug #502555

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

15 years ago2009-05-07 Jonas Larsson <jonas.larsson@manodo.se>
Atsushi Eno [Mon, 11 May 2009 16:59:42 +0000 (16:59 -0000)]
2009-05-07  Jonas Larsson <jonas.larsson@manodo.se>

* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.

* XmlSchemaValidatorTests.cs : added test for bug #501666.

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

15 years ago2009-05-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 11 May 2009 13:49:16 +0000 (13:49 -0000)]
2009-05-11  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (emit_and_reloc_code): Move the implementation of
MONO_PATCH_INFO_GOT_OFFSET to a separate arch-specific function.
(emit_plt): Fix a warning.

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

15 years ago2009-05-11 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 11 May 2009 13:06:19 +0000 (13:06 -0000)]
2009-05-11  Zoltan Varga  <vargaz@gmail.com>

* shared.c: Applied patch from Koushik K. Dutta (koush@koushikdutta.com).
Fix the build on android.

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

15 years agofix prev patch
Gonzalo Paniagua Javier [Mon, 11 May 2009 04:13:35 +0000 (04:13 -0000)]
fix prev patch

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

15 years ago2009-05-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 11 May 2009 03:55:21 +0000 (03:55 -0000)]
2009-05-10 Gonzalo Paniagua Javier <gonzalo@novell.com>

* CookieContainer.cs: matching hosts to domain names like MS does.
Bug #421827 fixed.

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

15 years ago2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 11 May 2009 02:55:26 +0000 (02:55 -0000)]
2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TreeNode.cs: When setting Checked, do a double null check, since the
current node can still get a null parent handling
TreeView.OnAfterCheck.
Fixes #502567.

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

15 years ago2009-05-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Mon, 11 May 2009 02:06:04 +0000 (02:06 -0000)]
2009-05-10 Gonzalo Paniagua Javier <gonzalo@novell.com>

* CustomizableFileSettingsProvider.cs: make sure 'values' is
initialized in Reset(). Fixes bug #436592.

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

15 years ago2009-05-10 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Mon, 11 May 2009 01:54:14 +0000 (01:54 -0000)]
2009-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Control.cs: When assigning ContextMenu, do a null check before
assigning its container field.

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

15 years ago2009-05-10 Andy Hume <andyhume32@yahoo.co.uk>
Andrés G. Aragoneses [Sun, 10 May 2009 21:26:08 +0000 (21:26 -0000)]
2009-05-10  Andy Hume  <andyhume32@yahoo.co.uk>

        * LinkedList.cs: Add null check. Fixes #481621.

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

15 years agoFix the build.
Zoltan Varga [Sun, 10 May 2009 20:50:20 +0000 (20:50 -0000)]
Fix the build.

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

15 years ago2009-05-10 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 10 May 2009 20:29:01 +0000 (20:29 -0000)]
2009-05-10  Marek Habersack  <mhabersack@novell.com>

* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/ExpressionInListControl.aspx

2009-05-10  Marek Habersack  <mhabersack@novell.com>

* AspGenerator.cs: keep processing the tag if it is not a server
one and contains expressions and no code render blocks.

2009-05-10  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompilerTest.cs: added a test for expressions in
list control items.

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

15 years agoreverted merge problem in last commit
Andrés G. Aragoneses [Sun, 10 May 2009 20:23:28 +0000 (20:23 -0000)]
reverted merge problem in last commit

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

15 years agore-apply changes since Zoltan had already fixed it
Sebastien Pouliot [Sun, 10 May 2009 20:20:13 +0000 (20:20 -0000)]
re-apply changes since Zoltan had already fixed it

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

15 years ago2009-05-10 Andrés G. Aragoneses <aaragoneses@novell.com>
Andrés G. Aragoneses [Sun, 10 May 2009 20:18:03 +0000 (20:18 -0000)]
2009-05-10  Andrés G. Aragoneses  <aaragoneses@novell.com>

* LinkedListTest.cs: Added NotWorking test for #481621,
converted from example code by Andy Hume <andyhume32@yahoo.co.uk>.

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

15 years agorevert r133848 which broke monobuild
Sebastien Pouliot [Sun, 10 May 2009 20:15:58 +0000 (20:15 -0000)]
revert r133848 which broke monobuild

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

15 years ago2009-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 10 May 2009 18:36:18 +0000 (18:36 -0000)]
2009-05-10  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c aot-runtime.c: Fix the build by moving is_shared_got_patch
back into aot-compiler.c to a place where the other functions shared by
the runtime and aot compiler are.

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

15 years ago2009-05-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 10 May 2009 18:30:42 +0000 (18:30 -0000)]
2009-05-10  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c aot-runtime.c: Emit the got addr using a separate symbol,
as done previously, instead of in MonoAotFileInfo, since pointers might have
alignment requirements.

* mini.h: Bump AOT file format version.

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

15 years ago2009-05-10 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sun, 10 May 2009 18:18:30 +0000 (18:18 -0000)]
2009-05-10  Sebastien Pouliot  <sebastien@ximian.com>

* HttpWebRequest_2_1.cs: Move Headers property logic here (as
shown by adding more unit tests)
* WebClient_2_1.cs: Add comment that Headers are not validated
there, but later.
* WebHeaderCollection_2_1.cs: Add a SetHeader method that can
work around the normal validations that the "this" property
needs to do.

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

15 years agoSorry for the noise, but the property is also virtual :)
Marek Habersack [Sun, 10 May 2009 18:17:33 +0000 (18:17 -0000)]
Sorry for the noise, but the property is also virtual :)

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

15 years agoThe property is protected, not public
Marek Habersack [Sun, 10 May 2009 18:16:21 +0000 (18:16 -0000)]
The property is protected, not public

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

15 years ago2009-05-10 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 10 May 2009 18:15:05 +0000 (18:15 -0000)]
2009-05-10  Marek Habersack  <mhabersack@novell.com>

* DbConnection.cs: implemented the DbProviderFactory property

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

15 years ago2009-05-10 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 10 May 2009 17:39:40 +0000 (17:39 -0000)]
2009-05-10  Miguel de Icaza  <miguel@novell.com>

* aot-runtime.c (mono_aot_is_shared_got_patch): Move this routine
that is used at runtime from the aot-compiler.c, this makes it
work on setups that remove the AOT compiler from the output
image.

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

15 years agoFix build without GC
Andreas Färber [Sun, 10 May 2009 13:35:21 +0000 (13:35 -0000)]
Fix build without GC

2009-05-10  Andreas Faerber  <andreas.faerber@web.de>

* null-gc.c (mono_gc_weak_link_add, mono_gc_clear_domain): Fix
stub signatures.

This commit is licensed under the MIT X11 license.

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

15 years agoForgot to make this private
Miguel de Icaza [Sat, 9 May 2009 22:10:08 +0000 (22:10 -0000)]
Forgot to make this private

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

15 years ago2009-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 9 May 2009 22:08:35 +0000 (22:08 -0000)]
2009-05-09  Miguel de Icaza  <miguel@novell.com>

* mono-value-hash.c (mono_value_hash_table_insert_replace):
Initialize variable, to quiet the compiler.

* mono-proclib.c: Eliminate two warnings.

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

15 years ago2009-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 9 May 2009 22:00:33 +0000 (22:00 -0000)]
2009-05-09  Miguel de Icaza  <miguel@novell.com>

* verify.c, metadata-verifier.c: Add support for disabling the
verifier in some builds.

[ Sorry, my previous commit accidentally commited some work in
progress ]

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

15 years agoFix warning
Miguel de Icaza [Sat, 9 May 2009 21:54:29 +0000 (21:54 -0000)]
Fix warning

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

15 years agoAdd support to disable the verifier
Miguel de Icaza [Sat, 9 May 2009 21:47:59 +0000 (21:47 -0000)]
Add support to disable the verifier

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

15 years ago2009-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 9 May 2009 21:47:36 +0000 (21:47 -0000)]
2009-05-09  Miguel de Icaza  <miguel@novell.com>

* configure.in: Instead of reporting the various disabled features
in a loop, where a keyword might fail, report the actual disabled
features in the sections that handle them

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

15 years agoDo not build the dwarfwriter if JIT/AOT are disabled
Miguel de Icaza [Sat, 9 May 2009 20:18:01 +0000 (20:18 -0000)]
Do not build the dwarfwriter if JIT/AOT are disabled

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

15 years ago2009-05-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 9 May 2009 19:31:27 +0000 (19:31 -0000)]
2009-05-09  Zoltan Varga  <vargaz@gmail.com>

* mini-<ARCH>.h: Kill the MONO_ARCH_ENABLE_EMIT_STATE_OPT define.

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

15 years ago2009-05-09 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 9 May 2009 19:25:55 +0000 (19:25 -0000)]
2009-05-09  Zoltan Varga  <vargaz@gmail.com>

* decompose.c (mono_decompose_long_opts): Move the ppc/sparc specific
stuff to mono_arch_decompose_long_opts ().
(mono_decompose_opcode): Remove some dead code.

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

15 years agoDocument
Miguel de Icaza [Sat, 9 May 2009 19:21:28 +0000 (19:21 -0000)]
Document

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

15 years agoDocument and add full_messages
Miguel de Icaza [Sat, 9 May 2009 19:19:24 +0000 (19:19 -0000)]
Document and add full_messages

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

15 years ago2009-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 9 May 2009 19:16:47 +0000 (19:16 -0000)]
2009-05-09  Miguel de Icaza  <miguel@novell.com>

* messages.c: Split the scan into common and uncommon messages to
allow the messages that are not produced by Mono to be removed on
embedded scenarios.

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

15 years agoAdd new test
Miguel de Icaza [Sat, 9 May 2009 19:15:27 +0000 (19:15 -0000)]
Add new test

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

15 years ago2009-05-09 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 9 May 2009 17:37:51 +0000 (17:37 -0000)]
2009-05-09  Miguel de Icaza  <miguel@novell.com>

* messages.c (message_string): instead of having a gigantic switch
table, use a sorted structure in memory and do a binary search on
it.

This reduces the runtime size by 49k and the debugging symbols by
400k.

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

15 years agoAdd a handful of extra DISABLE options to the list
Miguel de Icaza [Sat, 9 May 2009 16:52:12 +0000 (16:52 -0000)]
Add a handful of extra DISABLE options to the list

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

15 years agoIn Assembly:
Sebastien Pouliot [Sat, 9 May 2009 15:46:30 +0000 (15:46 -0000)]
In Assembly:
2009-05-09  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyInfo.cs: Open up the internals to System.Windows.Browser
(needed right now), System.Windows and System.Xml (needed for an
upcoming patch).

In System.Net:
2009-05-09  Sebastien Pouliot  <sebastien@ximian.com>

* WebHeaderCollection_2_1.cs: When associated with a WebRequest
the header collection items needs to be validated since not all
headers will be valid. Part of fix for DRT#532

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

15 years ago2009-05-08 Brad Taylor <brad@getcoded.net>
Brad Taylor [Fri, 8 May 2009 20:28:25 +0000 (20:28 -0000)]
2009-05-08  Brad Taylor  <brad@getcoded.net>

* DateTimePicker.cs: Add a UIA-specific property to ensure that if
is_checkbox_checked is changed, we won't break.

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

15 years ago* ToolStripItem.cs: Prevent NRE when our holder is a
Andrés G. Aragoneses [Fri, 8 May 2009 19:53:05 +0000 (19:53 -0000)]
* ToolStripItem.cs: Prevent NRE when our holder is a
ToolStripDropDownButton and we get Select()ed.

* ToolStripMenuItemTest.cs: Improve test, and remove the
NotWorking attribute. Also remove the 'var' keywords, doh!

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

15 years ago2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 8 May 2009 19:21:27 +0000 (19:21 -0000)]
2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripControlHost.cs: New tests for DefaultSize and
OnHostedControlResize members.

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

15 years ago2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 8 May 2009 19:21:14 +0000 (19:21 -0000)]
2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripControlHost.cs: DefaultSize must return the current size of
the Control, not the value returned by GetPreferredSize. Also connect
a handle to the control Resize event, and use it to fire
OnHostedControlReize.
Fixes the remaining bits of #483146.

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

15 years ago2009-05-08 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 8 May 2009 19:16:11 +0000 (19:16 -0000)]
2009-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ToolStripDropDown.cs: When performing the layout, use
ToolStripItem.GetPreferredSize ().Height instead of
ToolStripItem.Height, since we are already using it that way in this
same method.
Fixes part of ##483146.

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

15 years ago2009-05-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 8 May 2009 17:59:10 +0000 (17:59 -0000)]
2009-05-08  Zoltan Varga  <vargaz@gmail.com>

* class.c (mono_class_setup_fields): Set class->field.first for
generic instances.

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

15 years ago2009-05-08 Brad Taylor <brad@getcoded.net>
Brad Taylor [Fri, 8 May 2009 15:59:11 +0000 (15:59 -0000)]
2009-05-08  Brad Taylor  <brad@getcoded.net>

* DateTimePicker.cs: Wrap UIA specific code in NET_2_0 wrappers.  Send
OnUIASelectionChanged when ShowCheckbox is true and the checkbox
recieves focus.  Part of fix for #502029.

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

15 years ago* Test/System.Windows.Forms/ToolStripMenuItemTest.cs: Simplify test.
Andrés G. Aragoneses [Fri, 8 May 2009 15:38:43 +0000 (15:38 -0000)]
* Test/System.Windows.Forms/ToolStripMenuItemTest.cs: Simplify test.

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

15 years ago2009-05-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 8 May 2009 15:34:52 +0000 (15:34 -0000)]
2009-05-08  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c (mono_method_to_ir): Fix boostrap of non amd64 builds
cmethod can be null for quite a some reasons.

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

15 years ago2009-05-08 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 8 May 2009 15:27:09 +0000 (15:27 -0000)]
2009-05-08  Rodrigo Kumpera  <rkumpera@novell.com>

* method-to-ir.c (mono_method_to_ir): Fix non amd64 builds.

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