mono.git
14 years ago2010-03-30 Sebastien Pouliot <sebastien@ximian.com>
Miguel de Icaza [Wed, 31 Mar 2010 05:05:22 +0000 (05:05 -0000)]
2010-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* moonlight_raw_corlib.dll.sources: Fix Moonlight since these
types now reside in mscorlib (not System.Coe) for NET_4_0 and
also for SL4

2010-03-26  Sebastien Pouliot  <sebastien@ximian.com>

* moonlight_raw_corlib.dll.sources: Add MonoAssembly to ML build
since it contains parts of the Assembly features (partial class)

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

14 years agoentry for a change in HttpResponseStream.cs
Gonzalo Paniagua Javier [Wed, 31 Mar 2010 01:10:43 +0000 (01:10 -0000)]
entry for a change in HttpResponseStream.cs

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

14 years ago2010-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Wed, 31 Mar 2010 00:59:55 +0000 (00:59 -0000)]
2010-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>

* mini-trampolines.c: Surround mono_handler_block_guard_trampoline and
mono_create_handler_block_trampoline with the proper #ifdef so that it
compiles on amd64.

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

14 years agoNew tests.
Marek Safar [Tue, 30 Mar 2010 22:04:09 +0000 (22:04 -0000)]
New tests.

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

14 years agoundo
Gonzalo Paniagua Javier [Tue, 30 Mar 2010 21:22:16 +0000 (21:22 -0000)]
undo

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 21:03:23 +0000 (21:03 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* mini-exceptions.c: Introduce mono_walk_stack_full, which
allows to select if it's new or old context that is passed to
the callback.

* mini-exceptions.c (mono_handle_exception_internal): Handle the
case when executing a guarded handler from the EH machinery.

* mini-exceptions.c (mono_install_handler_block_guard): New function
responsible for checking for handler blocks, installing the guard and
clearing abort state.

* mini-posix.c (sigusr1_signal_handler): Call mono_install_handler_block_guard
to check for handler blocks and skip interruption logic if one was found.

* mini-trampolines.c (mono_handler_block_guard_trampoline): Function called
by the handler block guard trampoline. Resumes interruption by raising the
pending ThreadAbortException.

* mini.c (create_jit_info): Calculate the end address of a finally block.

* mini-x86.c (mono_arch_install_handler_block_guard): Patch the return address
of a finally block to a specified address and return the old one.

* tramp-x86.c (mono_arch_create_handler_block_trampoline): The handler block
trampoline patches the original return address and calls the trampoline function.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 21:03:14 +0000 (21:03 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* domain-internals.h (MonoJitExceptionInfo): Add new field
handler_end to the data union. To be used to point the end
of a finally block.

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

14 years ago2010-03-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Tue, 30 Mar 2010 21:00:21 +0000 (21:00 -0000)]
2010-03-30 Gonzalo Paniagua Javier <gonzalo@novell.com>

* System.Web.UI/PageParser.cs:
* System.Web.UI/Page.cs:
* System.Web.Compilation/PageCompiler.cs: default for
EnableViewStateMac is true. Allow setting it from a @Page
directive.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 20:11:09 +0000 (20:11 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilderTest.cs: Add a test for #592215.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 20:11:02 +0000 (20:11 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* ModuleBuilder.cs (DefinedType): Lookup inside the name_cache before creating
the TypeBuilder since the runtime code can't handle a duplicate type name.

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

14 years ago2010-03-30 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 30 Mar 2010 20:05:27 +0000 (20:05 -0000)]
2010-03-30  Sebastien Pouliot  <sebastien@ximian.com>

* class.c (mono_class_init): Postpone coreclr inheritance check
until the end of the initialization (so we can check up the
default ctor manually for the core-clr inheritance rules).
* security-core-clr.c: Add the missing (undocumented) checks on
default constructors when verifying inheritance rules.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 19:49:46 +0000 (19:49 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* mini-trampolines.c (mono_aot_trampoline): Remove some dead code.

* aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
does the patching if the callee is in the same domain.

* aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
of mono_arch_patch_plt_entry ().

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:34:14 +0000 (19:34 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (create_jit_info): Fix try block hole length encoding.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:34:06 +0000 (19:34 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* mini.c (create_jit_info): Emit saner debug spew. Now it doesn't
duplicate information and print offsets instead of absolute addresses.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:33:58 +0000 (19:33 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c: Add support for new v4 type
System.Reflection.MonoModule that is the concrete version
of Module which is abstract unver v4.

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

14 years ago2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Tue, 30 Mar 2010 19:33:49 +0000 (19:33 -0000)]
2010-03-30 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_class_init): Don't set class failure after
inited = 1 is set. It must be done before.

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

14 years agofix TimeZoneInfo for moonlight (moving from System.Core to mscorlib)
Sebastien Pouliot [Tue, 30 Mar 2010 19:23:59 +0000 (19:23 -0000)]
fix TimeZoneInfo for moonlight (moving from System.Core to mscorlib)

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 18:16:48 +0000 (18:16 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* test-106.cs: Move the wait for cb_state == 1 out of the try block so this
test becomes deterministic.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 18:03:26 +0000 (18:03 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeType.cs (IsValidType): Implement proper checking for value types
as well.

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

14 years agoNew test.
Marek Safar [Tue, 30 Mar 2010 17:11:40 +0000 (17:11 -0000)]
New test.

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

14 years agofix typos
Jb Evain [Tue, 30 Mar 2010 17:09:53 +0000 (17:09 -0000)]
fix typos

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

14 years agoconfig: Add support for Haiku
Andreas Färber [Tue, 30 Mar 2010 16:47:28 +0000 (16:47 -0000)]
config: Add support for Haiku

Allow using "haiku" as OS in dllmap.

  Light as a feather
  Beautiful thy name Haiku
  Poetry in files
                    -- Andreas F.

* mono-config.c: Add support for OS "haiku"
* ChangeLog: Fix UTF-8 encoding

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 15:41:47 +0000 (15:41 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* MonoAssembly.cs: make MonoAssembly non public.

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

14 years agofix the build
Jb Evain [Tue, 30 Mar 2010 15:41:18 +0000 (15:41 -0000)]
fix the build

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 15:18:03 +0000 (15:18 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* TimeZoneInfo.AdjustmentRule.cs
* TimeZoneInfo.TransitionTime.cs:
Add TypeForwarderFrom attributes.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 15:06:54 +0000 (15:06 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* Queryable.cs: implement Zip for net_4_0.

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

14 years agofix msvc build.
Jonathan Pobst [Tue, 30 Mar 2010 14:33:25 +0000 (14:33 -0000)]
fix msvc build.

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

14 years ago2010-03-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 30 Mar 2010 14:12:29 +0000 (14:12 -0000)]
2010-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpanTest.cs: New test for TryParseExact.

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

14 years agoTue Mar 30 15:53:06 CEST 2010 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 30 Mar 2010 13:54:15 +0000 (13:54 -0000)]
Tue Mar 30 15:53:06 CEST 2010 Paolo Molaro <lupus@ximian.com>

* console-unix.c: fixed include logic for sys/ioctl.h.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 13:37:08 +0000 (13:37 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* Binder.cs (BindToMethod): fix the case where we bind to a method
with only one params parameter and that no args are given.

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 13:36:12 +0000 (13:36 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* ActivatorTest.cs: add more tests to CreateInstance constructors
with params arrays.

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

14 years ago2010-03-30 Mark Probst <mark.probst@gmail.com>
Mark Probst [Tue, 30 Mar 2010 13:13:39 +0000 (13:13 -0000)]
2010-03-30  Mark Probst  <mark.probst@gmail.com>

        * threads.c: Fix bitmap generation for TLS marking on 64 bit
        systems.

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

14 years agoin System:
Jb Evain [Tue, 30 Mar 2010 13:12:34 +0000 (13:12 -0000)]
in System:
2010-03-30  Jb Evain  <jbevain@novell.com>

* MonoType.cs: let the binder reorder arguments when invoking
params methods.
* Activator.cs (CreateInstance): use BindToMethod instead of
SelectMethod to make sure that params constructors are properly called.

Fixes #591877

in System.Reflection:
2010-03-30  Jb Evain  <jbevain@novell.com>

* Binder.cs: when invoking a params method, pack the params
arguments before doing the actual invocation.

Fixes #591877

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

14 years ago2010-03-30 Jb Evain <jbevain@novell.com>
Jb Evain [Tue, 30 Mar 2010 13:12:23 +0000 (13:12 -0000)]
2010-03-30  Jb Evain  <jbevain@novell.com>

* ActivatorTest.cs: add tests for #591877.

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

14 years ago2010-03-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 30 Mar 2010 10:28:51 +0000 (10:28 -0000)]
2010-03-30  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : differentiate EndpointNotFound and
  ActionNotSupported so that FaultConverter can create appropriate
  fault messages. Removed extra filter condition on null To item.
  And create fault messages on *any* server side error, do not let
  request client infinitely wait for the response until timeout.

  (RunDestinationUnreachableTest() is still not working but it works
  when it is SOAP 1.2.)

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

14 years agoClean up some whitespace in the output
Raja R Harinath [Tue, 30 Mar 2010 08:59:36 +0000 (08:59 -0000)]
Clean up some whitespace in the output

* main.c (pinvoke_flags_map): Add a few trailing spaces.
* util.c (flags): Simplify.

verified whitespace changes are non-significant with 'diff -b'

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

14 years agoMake util.c:flags() stricter -- don't silently ignore unknown flags
Raja R Harinath [Tue, 30 Mar 2010 08:59:22 +0000 (08:59 -0000)]
Make util.c:flags() stricter -- don't silently ignore unknown flags

* get.c (field_flags_map): Add empty entries for
HAS_FIELD_MARSHAL, HAS_DEFAULT and HAS_FIELD_RVA.
* main.c (method_flags_map): Add empty entry for HAS_SECURITY.
* util.c (flags): Remove known flags from 'code' in loop.  Any
leftover flags are printed as "unknown-flag-xx".

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

14 years agoPrepare for util.c:flags() to be stricter
Raja R Harinath [Tue, 30 Mar 2010 08:59:04 +0000 (08:59 -0000)]
Prepare for util.c:flags() to be stricter

* main.c (pinvoke_flags): Remove cset and cconv flags before passing onto flags().
(method_flags): Likewise with access flags.
* get.c (field_flags): Likewise.
(get_method_impl_flags): Likewise, with code_type and managed_type flags.

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

14 years ago* get.c (managed_impl_flags): Add 'nooptimization' flag.
Raja R Harinath [Tue, 30 Mar 2010 08:58:50 +0000 (08:58 -0000)]
* get.c (managed_impl_flags): Add 'nooptimization' flag.

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

14 years agoupdate monodis-wrapper.in to reflect new libmono location
Raja R Harinath [Tue, 30 Mar 2010 08:58:36 +0000 (08:58 -0000)]
update monodis-wrapper.in to reflect new libmono location

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

14 years ago2010-03-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 30 Mar 2010 07:35:56 +0000 (07:35 -0000)]
2010-03-30  Atsushi Enomoto  <atsushi@ximian.com>

* ChannelDispatcher.cs : for faults, use fault namespace, not that of
  ReplyAction. Added FIXME comment regarding dispatcher.

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

14 years ago2010-03-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 30 Mar 2010 07:34:18 +0000 (07:34 -0000)]
2010-03-30  Atsushi Enomoto  <atsushi@ximian.com>

* FaultConverter.cs : check envelope version, not addressing version.

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

14 years ago2010-03-30 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 30 Mar 2010 07:31:57 +0000 (07:31 -0000)]
2010-03-30  Atsushi Enomoto  <atsushi@ximian.com>

* ClientRuntimeChannel.cs : use correct buffer size.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 05:27:31 +0000 (05:27 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeBuilder.cs: Fix the calls to IsValidType, some were passing
in DeclaringType instead of PropertyType/FieldType.

* CustomAttributeType.cs (IsValidType): Implement proper checking for reference
types. Fixes #591788.

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

14 years agoFirst part of bug fix for Joachim's bug
Miguel de Icaza [Tue, 30 Mar 2010 04:05:28 +0000 (04:05 -0000)]
First part of bug fix for Joachim's bug

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 03:30:19 +0000 (03:30 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* CustomAttributeBuilder.cs (IsValidType): Call Enum.GetUnderlyingType () for
dynamic enums to avoid crashes in the unmanaged code. Fixes #591800.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 30 Mar 2010 03:26:59 +0000 (03:26 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_System_Enum_get_underlying_type): Don't crash on
unfinished/broken typebuilders.

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

14 years ago2010-03-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 30 Mar 2010 03:14:27 +0000 (03:14 -0000)]
2010-03-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpan.cs: New test for ParseExact/TryParseExact.

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

14 years ago2010-03-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 30 Mar 2010 03:13:17 +0000 (03:13 -0000)]
2010-03-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpan.cs: Implement all the overloads of both TryParseExact and
ParseExact methods, by detecting the specific semantic changes in the
parse process, so we can properly re-utilize our new approach. This
included indicating our parser its culture sensitiveness, usage of colon as
day separator fallback or as a precise separator, and other minor bits.
We are only missing composite parsing right now.

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

14 years ago2010-03-30 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 29 Mar 2010 23:21:23 +0000 (23:21 -0000)]
2010-03-30  Zoltan Varga  <vargaz@gmail.com>

* arm/*.sh: Remove bash dependency.

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

14 years ago2010-03-29 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 29 Mar 2010 22:00:18 +0000 (22:00 -0000)]
2010-03-29  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Use the same heuristic for the LOS target that we use
        for the minor section allowance.

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

14 years ago2010-03-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 29 Mar 2010 21:34:56 +0000 (21:34 -0000)]
2010-03-29  Zoltan Varga  <vargaz@gmail.com>

* mph.h: Applied some changes from the openbsd ports tree to fix openbsd
support.

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

14 years ago2010-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 29 Mar 2010 20:34:24 +0000 (20:34 -0000)]
2010-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* AppDomainSetup.cs: Add new (FX4 and SL4) SetCompatibilitySwitches
method (empty is good enough for moonlight testing)
* Environment.cs: Expose MyVideos in Moonlight build

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

14 years ago* metadata-verify.c (INVALID_METHOD_IMPLFLAG_BITS): Allow bit 6 "NoOptimization".
Raja R Harinath [Mon, 29 Mar 2010 18:45:14 +0000 (18:45 -0000)]
* metadata-verify.c (INVALID_METHOD_IMPLFLAG_BITS): Allow bit 6 "NoOptimization".

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

14 years agoFix 'compiler-tests'
Raja R Harinath [Mon, 29 Mar 2010 18:45:00 +0000 (18:45 -0000)]
Fix 'compiler-tests'

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

14 years agoconfigure: Add support for Haiku
Andreas Färber [Mon, 29 Mar 2010 17:54:04 +0000 (17:54 -0000)]
configure: Add support for Haiku

  Not Just For Monkeys
  Common Runtime Is Purpose
  For Mono To Be
                   -- Andreas F.

* configure.in: Add support for Haiku

v1 -> v2:
* Don't set have_visibility_hidden=no (pointed out by Ingo Weinhold)
* Update platform_win32=no -> host_win32=no

This commit is licensed under the MIT X11 license;
the Haiku poem is licensed under the CC Attribution license.

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

14 years ago2010-03-29 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 29 Mar 2010 16:59:22 +0000 (16:59 -0000)]
2010-03-29  Marek Habersack  <mhabersack@novell.com>

* GridView.cs: main table must be created and added to the
controls collection before any OnRowCreated event is fired.

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

14 years ago2010-03-29 Jb Evain <jbevain@novell.com>
Jb Evain [Mon, 29 Mar 2010 14:28:03 +0000 (14:28 -0000)]
2010-03-29  Jb Evain  <jbevain@novell.com>

* Mono.Cecil/AssemblyStripper.cs: optimize.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 14:01:33 +0000 (14:01 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* FaultConverter.cs : implemented TryCreateException().

* FaultConverterTest.cs : added more TryCreateException() tests.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 13:06:47 +0000 (13:06 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* MetadataResolverTest.cs : enable working tests.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 12:52:52 +0000 (12:52 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* EndpointIdentityTest.cs, EndpointAddress10Test.cs :
  enable working tests.

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

14 years ago2010-03-29 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 29 Mar 2010 12:52:03 +0000 (12:52 -0000)]
2010-03-29  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: Count bytes allocated with heavy statistics.

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

14 years ago2010-03-29 Mark Probst <mark.probst@gmail.com>
Mark Probst [Mon, 29 Mar 2010 12:51:10 +0000 (12:51 -0000)]
2010-03-29  Mark Probst  <mark.probst@gmail.com>

        * sgen-gc.c: More detailed time statistics.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 12:48:29 +0000 (12:48 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* XmlTypeMapping.cs, XmlReflectionImporter.cs: XmlRoot takes higher
  priority to XmlSchemaProvider QName.
  This fixes WCF EndpointAddress serialization.

* XmlSerializerTests.cs : test for XmlRoot and XmlSchemaProvider
  QName conflict case.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 12:07:37 +0000 (12:07 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* MessageHeaderTest.cs : enable one, add not-working cosmetic one.

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

14 years ago2010-03-29 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 29 Mar 2010 11:56:03 +0000 (11:56 -0000)]
2010-03-29  Sebastien Pouliot  <sebastien@ximian.com>

* DirectoryInfo.cs, FileInfo.cs: Moonlight needs the default ctor
to decorate them with [SecuritySafeCritical] for corclr
inheritance rules

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 11:20:22 +0000 (11:20 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* MessageBufferTest.cs : enable not-working test.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 11:19:23 +0000 (11:19 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* XmlQualifiedName.cs : do not reject names in no namespace.

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

14 years agotools/sqlmetal/AssemblyInfo.cs: Make internals visible to the sqlmetal testsuite.
Raja R Harinath [Mon, 29 Mar 2010 10:46:03 +0000 (10:46 -0000)]
tools/sqlmetal/AssemblyInfo.cs: Make internals visible to the sqlmetal testsuite.
class/System.Data.Linq/src/DbLinq/System.Data.Linq/Assembly/AssemblyInfo.cs: Likewise.

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

14 years agoMon Mar 29 11:52:34 CEST 2010 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 29 Mar 2010 09:55:04 +0000 (09:55 -0000)]
Mon Mar 29 11:52:34 CEST 2010 Paolo Molaro <lupus@ximian.com>

* gc-internal.h, sgen-gc.c, threads.c, utils/mono-hash.c:
fix the user defined mark interface to pass a pointer
to the object location and not the object itself.

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

14 years ago2010-03-29 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 29 Mar 2010 08:41:07 +0000 (08:41 -0000)]
2010-03-29  Atsushi Enomoto  <atsushi@ximian.com>

* MessageFault.cs : cosmetic method name clarification.

* MessageFaultTest.cs : enable previous test.

(made wrong commit in the previous test changelog)

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

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

* XmlReaderBodyWriter.cs, Message.cs, MessageImpl.cs, BodyWriter.cs:
  fix BodyWriter buffering that dropped in-scope namespaces and thus
  caused problem on resolving QNames.

* MessageFaultTest.cs : enable previous test.

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

14 years ago2010-03-29 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 29 Mar 2010 01:25:59 +0000 (01:25 -0000)]
2010-03-29  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c (jit_end): Send type loads for types loaded before the VMStart
event is sent. Fixes #591733.

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

14 years agorevert
Geoff Norton [Sun, 28 Mar 2010 22:35:24 +0000 (22:35 -0000)]
revert

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

14 years agorevert
Geoff Norton [Sun, 28 Mar 2010 22:33:40 +0000 (22:33 -0000)]
revert

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

14 years ago2010-03-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Sat, 27 Mar 2010 16:27:20 +0000 (16:27 -0000)]
2010-03-27 Gonzalo Paniagua Javier <gonzalo@novell.com>

* HttpWebRequest.cs: when PreAuthenticate is true, don't remove the
existing authorization related headers until we know we have a
replacement. Fixes bug #591633.

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

14 years ago2010-03-27 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 27 Mar 2010 07:00:28 +0000 (07:00 -0000)]
2010-03-27 Rodrigo Kumpera  <rkumpera@novell.com>

* reflection.c (mono_method_body_get_object): Release
the method header before the call to CACHE_OBJECT since
this is a macro that returns.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 27 Mar 2010 07:00:20 +0000 (07:00 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (inflate_generic_type): mono_metadata_type_dup
already dupes array information, the g_memdup was just
leaking memory.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Sat, 27 Mar 2010 01:22:25 +0000 (01:22 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Add stack_peek function. Fix CEE_DUP
to not read from invalid memory if push did expand
the stack.

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

14 years ago2010-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 26 Mar 2010 23:54:05 +0000 (23:54 -0000)]
2010-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpanTest.cs: New assertion in our exception order test, to
assert that int32 overflow error has higher precedence in both 2.0 and
4.0 profiles.

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

14 years ago2010-03-26 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 26 Mar 2010 23:49:36 +0000 (23:49 -0000)]
2010-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* TimeSpan.cs: We always give higher precedence to the first found
error, but for versions before 4.0 we need to give a higher one to
per-element overflow *specifically* (as opposed to int32 overflow,
which remains the same). This is not needed for 4.0, so report
per-element overflow as a normal error.
This should fix a compatibility case, as well as simplifying the code.

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

14 years agofix msvc build.
Jonathan Pobst [Fri, 26 Mar 2010 23:30:19 +0000 (23:30 -0000)]
fix msvc build.

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

14 years ago2010-03-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Mar 2010 23:14:57 +0000 (23:14 -0000)]
2010-03-27  Zoltan Varga  <vargaz@gmail.com>

* mono-ehash.c: Rename this to mono-hash.c.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Mar 2010 22:58:05 +0000 (22:58 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Remove old table verification code that has
been superseeded by the new metadata verifier.

* verify.h: Remove mono_image_verify_tables from the public
API.

* pedump.c: Fix for removed bits.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Mar 2010 22:41:02 +0000 (22:41 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

* invalid_branch_in_between_prefix_and_instruction.il:
* invalid_empty_filter_block.il:
* make_endfilter_test.sh
* make_endfinally_test.sh: Silence which when gsed is not found.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Mar 2010 22:40:53 +0000 (22:40 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

* verify.c: Allocate stack slows lazily to reduce stack usage
in case of methods with huge stacks. Reduces memory consumption
for mcs yyparse from 459Mb to 1.8Mb.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Mar 2010 22:35:19 +0000 (22:35 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

        * Assembly.cs: Add IsDynamic.

2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

        * AssemblyBuilder.cs: Add IsDynamic.

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

14 years ago2010-03-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Mar 2010 21:44:33 +0000 (21:44 -0000)]
2010-03-26  Zoltan Varga  <vargaz@gmail.com>

* mini-posix.c (SIG_HANDLER_SIGNATURE): Handle the case when ctx is NULL on
OpenBSD.

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

14 years ago2010-03-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Mar 2010 21:36:39 +0000 (21:36 -0000)]
2010-03-26  Zoltan Varga  <vargaz@gmail.com>

* mono-ehash.c (rehash): Avoid function calls as macro arguments.

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

14 years ago2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 26 Mar 2010 21:25:24 +0000 (21:25 -0000)]
2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: don't try executing items from domains being
unloaded. Fixes appdomain-async-invoke test.

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

14 years agotypo
Gonzalo Paniagua Javier [Fri, 26 Mar 2010 21:15:45 +0000 (21:15 -0000)]
typo

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

14 years agotypos
Gonzalo Paniagua Javier [Fri, 26 Mar 2010 21:15:33 +0000 (21:15 -0000)]
typos

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

14 years ago2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 26 Mar 2010 20:55:48 +0000 (20:55 -0000)]
2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* threadpool.c: spin while the threadpool initializes.
* mono-wsq.c: if the WSQ has not been initialized or has been shut
down, don't do anything.

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

14 years agoFix the moonlight build
Geoff Norton [Fri, 26 Mar 2010 20:45:50 +0000 (20:45 -0000)]
Fix the moonlight build

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

14 years agoChange the other place where threads_starting_up is created too.
Zoltan Varga [Fri, 26 Mar 2010 20:23:46 +0000 (20:23 -0000)]
Change the other place where threads_starting_up is created too.

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

14 years ago2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
Gonzalo Paniagua Javier [Fri, 26 Mar 2010 20:13:23 +0000 (20:13 -0000)]
2010-03-26 Gonzalo Paniagua Javier <gonzalo@novell.com>

* ServicePointManager.cs: errors parsing the certificate don't prevent
calling the callback now. Exceptions thrown parsing the certificate
are printed to stderr in case they are library errors.

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

14 years ago2010-03-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Mar 2010 20:05:55 +0000 (20:05 -0000)]
2010-03-26  Zoltan Varga  <vargaz@gmail.com>

* threads.c (mono_thread_create_internal): Set the GC type of the
threads_starting_up hash table.

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

14 years agofix msvc build.
Jonathan Pobst [Fri, 26 Mar 2010 19:49:16 +0000 (19:49 -0000)]
fix msvc build.

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

14 years ago2010-03-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 26 Mar 2010 19:44:32 +0000 (19:44 -0000)]
2010-03-26  Zoltan Varga  <vargaz@gmail.com>

* debugger-agent.c (mono_debugger_agent_init): Set the GC type of the
thread_to_tls hash table.

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

14 years ago2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
Rodrigo Kumpera [Fri, 26 Mar 2010 19:15:39 +0000 (19:15 -0000)]
2010-03-26 Rodrigo Kumpera  <rkumpera@novell.com>

* AssemblyBuilder.cs: Implement v4 GetSatelliteAssembly,
ManifestModule, GlobalAssemblyCache.

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