Zoltan Varga [Thu, 4 Feb 2010 05:06:18 +0000 (05:06 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* dtest.cs: Add a test for TypeMirror.EnumUnderlyingType.
svn path=/trunk/mono/; revision=150828
Zoltan Varga [Thu, 4 Feb 2010 05:05:19 +0000 (05:05 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* TypeMirror.cs (EnumUnderlyingType): New property.
* EnumMirror.cs: Use it.
svn path=/trunk/mcs/; revision=150826
Zoltan Varga [Thu, 4 Feb 2010 04:48:32 +0000 (04:48 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c: Init the jit module only when first JITting.
svn path=/trunk/mono/; revision=150825
Geoff Norton [Thu, 4 Feb 2010 04:45:10 +0000 (04:45 -0000)]
fix compiling xdebug with DISABLE_AOT || DISABLE_JIT
svn path=/trunk/mono/; revision=150824
Zoltan Varga [Thu, 4 Feb 2010 04:38:53 +0000 (04:38 -0000)]
Fix another case.
svn path=/trunk/mono/; revision=150823
Zoltan Varga [Thu, 4 Feb 2010 04:03:15 +0000 (04:03 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (emit_plt): Fix the naming of plt entries of llvm+darwin.
svn path=/trunk/mono/; revision=150822
Zoltan Varga [Thu, 4 Feb 2010 04:03:09 +0000 (04:03 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (get_plt_entry): Make the plt entries have hidden visibility.
svn path=/trunk/mono/; revision=150821
Zoltan Varga [Thu, 4 Feb 2010 03:44:00 +0000 (03:44 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_aot_module): Remove the dummy got after it is
replaced with the real got.
svn path=/trunk/mono/; revision=150820
Zoltan Varga [Thu, 4 Feb 2010 03:36:26 +0000 (03:36 -0000)]
Fix the previous change.
svn path=/trunk/mono/; revision=150819
Zoltan Varga [Thu, 4 Feb 2010 03:03:06 +0000 (03:03 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* dtest.cs dtest-app.cs: Add tests for TypeMirror.IsEnum and
VirtualMachine.CreateEnumMirror ().
svn path=/trunk/mono/; revision=150816
Zoltan Varga [Thu, 4 Feb 2010 03:03:00 +0000 (03:03 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* debugger-agent.c (type_commands): Return the enumness if the type as well.
svn path=/trunk/mono/; revision=150815
Zoltan Varga [Thu, 4 Feb 2010 03:00:31 +0000 (03:00 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* VirtualMachine.cs (CreateEnumMirror): New method to create an EnumMirror.
* AppDomainMirror.cs (GetCorrespondingType): New method to return a TypeMirror
corresponding to a primitive type.
* TypeMirror.cs (IsEnum): Implement.
* EnumMirror.cs (.ctor): New internal constructor called from CreateEnumMirror
which does lots of error checking.
svn path=/trunk/mcs/; revision=150813
Zoltan Varga [Thu, 4 Feb 2010 01:45:01 +0000 (01:45 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* image-writer.c: Reduce the amount of #ifdefs a bit.
* aot-compiler.c: Reduce the amount of #ifdefs. Add beginnings of support for
llvm on darwin/arm.
svn path=/trunk/mono/; revision=150806
Marek Habersack [Thu, 4 Feb 2010 01:01:18 +0000 (01:01 -0000)]
2010-02-04 Marek Habersack <mhabersack@novell.com>
* PreservationFile.cs: updated the BuildResulTypeCode enum
* BuildManager.cs: LoadCompiled now adds all the assemblies built
from the App_Code directory to the BuildManager.CodeAssemblies
collection. Fixes bug #576810
svn path=/trunk/mcs/; revision=150802
Zoltan Varga [Thu, 4 Feb 2010 00:08:11 +0000 (00:08 -0000)]
2010-02-04 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (mono_compile_assembly): Handle asmonly+llvm mode.
* mini-llvm.c (mono_llvm_emit_method): Don't make the 'type_info' symbols
global.
svn path=/trunk/mono/; revision=150800
Jonathan Pobst [Wed, 3 Feb 2010 21:16:00 +0000 (21:16 -0000)]
2010-02-03 Jonathan Pobst <monkey@jpobst.com>
* HttpCalls.cs: Disable all tests here due to excessive
sporadic failures. Filed as bug #576724.
svn path=/trunk/mcs/; revision=150788
Rodrigo Kumpera [Wed, 3 Feb 2010 21:10:25 +0000 (21:10 -0000)]
2010-02-03 Rodrigo Kumpera <rkumpera@novell.com>
* SplitTests.cs: New tests for #566117.
svn path=/trunk/mcs/; revision=150787
Rodrigo Kumpera [Wed, 3 Feb 2010 21:10:16 +0000 (21:10 -0000)]
2010-02-03 Rodrigo Kumpera <rkumpera@novell.com>
* BaseMachine.cs (Split): Don't add empty strings if they don't
* come from
the first capture group. Fixes #566117.
svn path=/trunk/mcs/; revision=150786
Ankit Jain [Wed, 3 Feb 2010 20:08:52 +0000 (20:08 -0000)]
Fix bug #576589.
* ConditionFunctionExpression.cs (Exists): Check for directory also.
svn path=/trunk/mcs/; revision=150781
Jonathan Pobst [Wed, 3 Feb 2010 17:49:08 +0000 (17:49 -0000)]
2010-02-03 Jonathan Pobst <monkey@jpobst.com>
* BaseCalls.cs: Mark tests as NotWorking. Reported as bug #576618.
svn path=/trunk/mcs/; revision=150775
Atsushi Eno [Wed, 3 Feb 2010 13:47:29 +0000 (13:47 -0000)]
2010-02-03 Astushi Enomoto <atsushi@ximian.com>
* HTTP_listener_notes.txt: I couldn't help but write about it to
not keep myself confused by this complicated stuff.
svn path=/trunk/mcs/; revision=150764
Sebastien Pouliot [Wed, 3 Feb 2010 13:09:57 +0000 (13:09 -0000)]
2010-02-03 Sebastien Pouliot <sebastien@ximian.com>
* ASN1ConvertTest.cs: Fix test cases by using local time. Patch
provided by Peter Dettman. Fix bug #324181
svn path=/trunk/mcs/; revision=150763
Zoltan Varga [Tue, 2 Feb 2010 22:45:19 +0000 (22:45 -0000)]
Remove an assert.
svn path=/trunk/mono/; revision=150747
Zoltan Varga [Tue, 2 Feb 2010 22:45:13 +0000 (22:45 -0000)]
2010-02-02 Zoltan Varga <vargaz@gmail.com>
* reflection.c (resolve_object): Handle MonoArrayMethod. Fixes #575955.
svn path=/trunk/mono/; revision=150746
Zoltan Varga [Tue, 2 Feb 2010 22:41:08 +0000 (22:41 -0000)]
2010-02-02 Zoltan Varga <vargaz@gmail.com>
* DynamicMethodTest.cs: Add a test for #575955.
svn path=/trunk/mcs/; revision=150745
Zoltan Varga [Tue, 2 Feb 2010 21:54:28 +0000 (21:54 -0000)]
2010-02-02 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Add support for unaligned loads.
(mono_llvm_emit_method): Fix unaligned stores too.
svn path=/trunk/mono/; revision=150742
Zoltan Varga [Tue, 2 Feb 2010 21:44:11 +0000 (21:44 -0000)]
2010-02-02 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Add support for unaligned loads.
svn path=/trunk/mono/; revision=150741
Zoltan Varga [Tue, 2 Feb 2010 20:41:12 +0000 (20:41 -0000)]
2010-02-02 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_emit_prolog): Initialize lmf->rsp in the prolog too
so async stack walks don't crash.
svn path=/trunk/mono/; revision=150737
Zoltan Varga [Tue, 2 Feb 2010 20:41:03 +0000 (20:41 -0000)]
Fix DISABLE_JIT.
svn path=/trunk/mono/; revision=150736
Rodrigo B. de Oliveira [Tue, 2 Feb 2010 19:32:24 +0000 (19:32 -0000)]
2010-02-02 Rodrigo B. de Oliveira <rodrigo@unity3d.com>
svn path=/trunk/mcs/; revision=150729
Jérémie Laval [Tue, 2 Feb 2010 19:22:24 +0000 (19:22 -0000)]
2010-02-02 Jérémie Laval <jeremie.laval@gmail.com>
In class/corlib/System.Threading.Tasks/:
* Task.cs: Fix autocomplete mistake (s/Exception/exception/).
Let continuation processing happens at the right moment when
task has child.
svn path=/trunk/mcs/; revision=150728
Jb Evain [Tue, 2 Feb 2010 18:22:05 +0000 (18:22 -0000)]
2010-02-02 Jb Evain <jbevain@novell.com>
* ASCIIEncoding.cs, Latin1Encoding.cs: remove duplicated code.
svn path=/trunk/mcs/; revision=150721
Jérémie Laval [Tue, 2 Feb 2010 17:06:15 +0000 (17:06 -0000)]
2010-02-02 Jérémie Laval <jeremie.laval@gmail.com>
In class/corlib/:
* corlib.dll.sources: Add System.Threading.Tasks/SimpleConcurrentBag.cs
and System.Threading.Tasks/UnobservedTaskExceptionEventArgs.cs
In class/corlib/System.Collections.Concurrent/:
* ConcurrentDictionary.cs:
* ConcurrentQueue.cs:
* ConcurrentStack.cs:
* Partitioner.cs: Port to .NET 4 beta 2 API
* ConcurrentSkipList.cs: Use Monitor for locking
In class/corlib/System.Threading.Tasks/:
* Future.cs:
* Parallel.cs:
* ParallelLoopState.cs:
* Task.cs:
* TaskCompletionSource.cs:
* TaskContinuationOptions.cs:
* TaskCreationOptions.cs:
* TaskFactory.cs:
* TaskScheduler.cs:
* UnobservedTaskExceptionEventArgs.cs: Port to .NET 4 beta 2 API
* SimpleConcurrentBag.cs: Add a simpler implementation of ConcurrentBag
for use with parallel loops as ConcurrentBag was moved to System
In class/corlib/System.Threading/:
* CancellationToken.cs:
* CancellationTokenSource.cs:
* ManualResetEventSlim.cs:
* SemaphoreSlim.cs:
* SpinLock.cs:
* SpinWait.cs:
* ThreadLocal.cs: Port to .NET 4 beta 2 API
In class/corlib/System/:
* AggregateException.cs:
* OperationCanceledException.cs: Port to .NET 4 beta 2 API
In class/corlib/Test/System.Collections.Concurrent/:
* CollectionStressTestHelper.cs:
* ConcurrentBagTests.cs:
* ConcurrentDictionaryTests.cs:
* ConcurrentQueueTests.cs:
* ConcurrentSkipListTests.cs:
* ConcurrentStackTests.cs:
* ParallelConcurrentQueueTests.cs:
* ParallelConcurrentStackTests.cs: Update namespaces and tested methods
In class/corlib/Test/System.Threading.Tasks/:
* FutureTests.cs:
* ParallelTestHelper.cs:
* ParallelTests.cs:
* SnziTests.cs:
* TaskCompletionSourceTests.cs:
* TaskTest.cs: Update namespace and tested methods
In class/corlib/Test/System.Threading/:
* CancellationTokenTests.cs:
* LazyInitTests.cs:
* ThreadLazyTests.cs: Update namespace and tested methods
svn path=/trunk/mcs/; revision=150716
Atsushi Eno [Tue, 2 Feb 2010 12:29:11 +0000 (12:29 -0000)]
2010-02-02 Atsushi Enomoto <atsushi@ximian.com>
* SvcHttpHandlerFactory.cs : lock when it tries to acquire
HttpHandler.
svn path=/trunk/mcs/; revision=150705
Marek Safar [Tue, 2 Feb 2010 10:49:32 +0000 (10:49 -0000)]
2010-02-02 Marek Safar <marek.safar@gmail.com>
A fix for bug #574991
* rootcontext.cs, class.cs, driver.cs: Hide enhanced warnings behind
--lint.
svn path=/trunk/mcs/; revision=150702
Jb Evain [Tue, 2 Feb 2010 10:41:54 +0000 (10:41 -0000)]
kill old out of sync comments
svn path=/trunk/mcs/; revision=150701
Marek Safar [Tue, 2 Feb 2010 09:49:57 +0000 (09:49 -0000)]
More tests.
svn path=/trunk/mcs/; revision=150696
Marek Safar [Tue, 2 Feb 2010 09:49:27 +0000 (09:49 -0000)]
2010-02-02 Marek Safar <marek.safar@gmail.com>
A fix for bug #575986
* expression.cs: Don't mutate typeof type definitions.
svn path=/trunk/mcs/; revision=150695
Atsushi Eno [Tue, 2 Feb 2010 08:18:56 +0000 (08:18 -0000)]
2010-02-02 Atsushi Enomoto <atsushi@ximian.com>
* HttpListenerManager.cs : add another workaround for blocking
concurrent calls.
svn path=/trunk/mcs/; revision=150694
Atsushi Eno [Tue, 2 Feb 2010 08:08:04 +0000 (08:08 -0000)]
2010-02-02 Atsushi Enomoto <atsushi@ximian.com>
* HttpListenerManager.cs : small refactoring.
svn path=/trunk/mcs/; revision=150693
Zoltan Varga [Tue, 2 Feb 2010 05:15:07 +0000 (05:15 -0000)]
2010-02-02 Zoltan Varga <vargaz@gmail.com>
* mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
was not patched if the callee needed an rgctx trampoline.
svn path=/trunk/mono/; revision=150692
Marek Habersack [Mon, 1 Feb 2010 23:47:21 +0000 (23:47 -0000)]
2010-02-02 Marek Habersack <mhabersack@novell.com>
* ScriptManager.cs: adjusted script rendering to match .NET
formatting.
* ScriptComponentDescriptor.cs: GetScript adds ID value (if
present) to the set of properties.
GetScript rewritten to use StringBuilder.
* ScriptBehaviorDescriptor.cs: GetScript adds Name, if present and
set by the user, to the descriptor's set of properties. The name
must be rendered to the client.
2010-02-02 Marek Habersack <mhabersack@novell.com>
* ScriptBehaviorDescriptorTest.cs,
ScriptComponentDescriptorTest.cs: added tests for rendering of the
Name and ID properties.
svn path=/trunk/mcs/; revision=150684
Mark Probst [Mon, 1 Feb 2010 20:17:45 +0000 (20:17 -0000)]
2010-02-01 Mark Probst <mark.probst@gmail.com>
* object.c, domain.c: When using SGen, we must register
vtable->type as a root if it's not a MonoType, because then it
wasn't pin-alloced.
svn path=/trunk/mono/; revision=150665
Zoltan Varga [Mon, 1 Feb 2010 19:33:38 +0000 (19:33 -0000)]
Fix this test in System as well.
svn path=/trunk/mcs/; revision=150659
Zoltan Varga [Mon, 1 Feb 2010 19:12:58 +0000 (19:12 -0000)]
2010-02-01 Zoltan Varga <vargaz@gmail.com>
* mini-ppc.c (mono_arch_get_global_int_regs): Reserve r29 for holding the
vtable address in AOT code.
svn path=/trunk/mono/; revision=150658
Zoltan Varga [Mon, 1 Feb 2010 18:10:40 +0000 (18:10 -0000)]
Fix a test after the Directory.Exists () changes.
svn path=/trunk/mcs/; revision=150657
Zoltan Varga [Mon, 1 Feb 2010 15:53:44 +0000 (15:53 -0000)]
2010-02-01 Zoltan Varga <vargaz@gmail.com>
* mini-codegen.c: Remove support for CEE_ opcodes which cannot occur in
MonoInst's.
svn path=/trunk/mono/; revision=150650
Paolo Molaro [Mon, 1 Feb 2010 15:29:57 +0000 (15:29 -0000)]
Mon Feb 1 16:29:10 CET 2010 Paolo Molaro <lupus@ximian.com>
* genmdesc.pl: remove dependency on external cpp.
svn path=/trunk/mono/; revision=150647
Mark Probst [Mon, 1 Feb 2010 15:18:59 +0000 (15:18 -0000)]
2010-02-01 Mark Probst <mark.probst@gmail.com>
* sgen-gc.c: Reset to_space_bumper to to_space_section->next_data
at the start of nursery collections, because we might have had
degraded allocations which changed next_data.
svn path=/trunk/mono/; revision=150646
Zoltan Varga [Mon, 1 Feb 2010 14:52:06 +0000 (14:52 -0000)]
2010-02-01 Zoltan Varga <vargaz@gmail.com>
* method-to-ir.c (mini_emit_ldelema_1_ins): Avoid emitting an OP_SEXT_I4 when
using LLVM, its not needed, and abcrem can't handle it.
svn path=/trunk/mono/; revision=150642
Jb Evain [Mon, 1 Feb 2010 14:34:53 +0000 (14:34 -0000)]
fix build
svn path=/trunk/mcs/; revision=150641
Paolo Molaro [Mon, 1 Feb 2010 13:31:14 +0000 (13:31 -0000)]
Mon Feb 1 14:29:43 CET 2010 Paolo Molaro <lupus@ximian.com>
* genmdesc.c, genmdesc.pl, cpu-x86.md: introduced templates to make
it easier to group instructions and reduce duplication.
svn path=/trunk/mono/; revision=150635
Jb Evain [Mon, 1 Feb 2010 13:25:52 +0000 (13:25 -0000)]
2010-02-01 Jb Evain <jbevain@novell.com>
* MarkStep.cs: SoapHeader can either take a field or a property.
svn path=/trunk/mcs/; revision=150633
Jb Evain [Mon, 1 Feb 2010 13:15:02 +0000 (13:15 -0000)]
2010-02-01 Jb Evain <jbevain@novell.com>
* SoapProtocolImporter.cs: properly generate the SoapHeader
attribute on NET_2_0.
svn path=/trunk/mcs/; revision=150632
Carlos Alberto Cortez [Mon, 1 Feb 2010 09:26:17 +0000 (09:26 -0000)]
2010-02-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* ComboBox.cs: When creating DrawItemEventArgs pass the fore color and
back color arguments depending on the higlight/focus state, just like
.net.
Fixes #572643.
svn path=/trunk/mcs/; revision=150623
Zoltan Varga [Mon, 1 Feb 2010 02:29:35 +0000 (02:29 -0000)]
2010-02-01 Zoltan Varga <vargaz@gmail.com>
* decompose.c: Move the array/soft float decompose routines here from
method-to-ir.c.
* method-to-ir.c: Export a few functions so they can be used from decompose.c.
svn path=/trunk/mono/; revision=150613
Zoltan Varga [Sun, 31 Jan 2010 23:23:47 +0000 (23:23 -0000)]
Remove a debugging aid.
svn path=/trunk/mono/; revision=150610
Zoltan Varga [Sun, 31 Jan 2010 19:21:10 +0000 (19:21 -0000)]
2010-01-31 Zoltan Varga <vargaz@gmail.com>
* MonoGenericClass.cs: Fix a warning.
svn path=/trunk/mcs/; revision=150607
Zoltan Varga [Sun, 31 Jan 2010 19:17:34 +0000 (19:17 -0000)]
2010-01-31 Zoltan Varga <vargaz@gmail.com>
* Directory.cs (Exists): Never throw an exception. Fixes #565152.
svn path=/trunk/mcs/; revision=150605
Zoltan Varga [Sun, 31 Jan 2010 19:17:27 +0000 (19:17 -0000)]
2010-01-31 Zoltan Varga <vargaz@gmail.com>
* Enum.cs: Fix a warning.
svn path=/trunk/mcs/; revision=150604
Zoltan Varga [Sun, 31 Jan 2010 04:19:26 +0000 (04:19 -0000)]
2010-01-31 Zoltan Varga <vargaz@gmail.com>
* mini-llvm.c (mono_llvm_emit_method): Add a call to llvm.invariant.start
to tell LLVM that the got is constant, not used yet.
* aot-compiler.c: Pass more optimization flags to llvm's 'opt'.
svn path=/trunk/mono/; revision=150601
Zoltan Varga [Sat, 30 Jan 2010 19:58:45 +0000 (19:58 -0000)]
2010-01-30 Zoltan Varga <vargaz@gmail.com>
* CustomAttributeBuilderTest.cs: Add a test for #574353.
svn path=/trunk/mcs/; revision=150598
Zoltan Varga [Sat, 30 Jan 2010 19:58:35 +0000 (19:58 -0000)]
2010-01-30 Zoltan Varga <vargaz@gmail.com>
* CustomAttributeBuilder.cs (Initialize): Add more argument checking to avoid
assertions in the runtime. Fixes #574353.
svn path=/trunk/mcs/; revision=150597
Carlos Alberto Cortez [Sat, 30 Jan 2010 02:26:30 +0000 (02:26 -0000)]
2010-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* NetworkStream.cs: Our explicit impl of IDisposable.Dispose belongs
to 1.0/1.1 only. Also move the call to GC.SupressFinalize to
Dispose(bool), as expected and as done by other Stream children
implementing a destructor.
Fixes #564637.
svn path=/trunk/mcs/; revision=150590
Zoltan Varga [Sat, 30 Jan 2010 02:19:35 +0000 (02:19 -0000)]
2010-01-30 Zoltan Varga <vargaz@gmail.com>
* mini-ppc.c (mono_arch_emit_prolog): Fix full aot support for native to
managed wrappers.
svn path=/trunk/mono/; revision=150589
Zoltan Varga [Sat, 30 Jan 2010 02:17:21 +0000 (02:17 -0000)]
2010-01-30 Zoltan Varga <vargaz@gmail.com>
* aot-compiler.c (add_wrappers): Commit the hack which generates
native-to-managed wrappers for methods decorated with the MonoPInvokeCallback
custom attribute.
svn path=/trunk/mono/; revision=150588
Zoltan Varga [Sat, 30 Jan 2010 02:17:12 +0000 (02:17 -0000)]
2010-01-30 Zoltan Varga <vargaz@gmail.com>
* marshal.c (mono_marshal_get_managed_wrapper): Avoid constructing the
custom attr so this function works in cross-compiling mode.
svn path=/trunk/mono/; revision=150587
Mike Kestner [Fri, 29 Jan 2010 20:44:06 +0000 (20:44 -0000)]
2010-01-29 Mike Kestner <mkestner@novell.com>
* System.dll.sources: add System.Net/WebUtility.cs.
* System_test.dll.sources: add WebUtilityTest.cs to tests.
svn path=/trunk/mcs/; revision=150571
Zoltan Varga [Fri, 29 Jan 2010 20:18:56 +0000 (20:18 -0000)]
2010-01-29 Zoltan Varga <vargaz@gmail.com>
* Int32Test.cs: Fix a copy-paste error.
svn path=/trunk/mcs/; revision=150570
Geoff Norton [Fri, 29 Jan 2010 18:58:53 +0000 (18:58 -0000)]
2010-01-29 Geoff Norton <gnorton@novell.com>
* include/private/gcconfig.h: Don't define NO_PTHREAD_TRYLOCK on darwin-x86
Patch from Tom Philpot (tom.philpot@gmail.com)
svn path=/trunk/mono/; revision=150568
Zoltan Varga [Fri, 29 Jan 2010 17:42:38 +0000 (17:42 -0000)]
2010-01-29 Zoltan Varga <vargaz@gmail.com>
* TypeTest.cs: Add a test for #574819.
svn path=/trunk/mcs/; revision=150560
Zoltan Varga [Fri, 29 Jan 2010 17:41:53 +0000 (17:41 -0000)]
2010-01-29 Zoltan Varga <vargaz@gmail.com>
* class.c (make_generic_param_class): Initialize interface offsets since we
set klass->inited. Fixes #574819.
svn path=/trunk/mono/; revision=150558
Carlos Alberto Cortez [Fri, 29 Jan 2010 06:15:38 +0000 (06:15 -0000)]
2010-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* VersionTest.cs: New tests for Parse and TryParse.
svn path=/trunk/mcs/; revision=150538
Carlos Alberto Cortez [Fri, 29 Jan 2010 06:13:45 +0000 (06:13 -0000)]
2010-01-29 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Version.cs: Implement Parse and TryParse.
svn path=/trunk/mcs/; revision=150537
Zoltan Varga [Fri, 29 Jan 2010 03:12:31 +0000 (03:12 -0000)]
2010-01-29 Zoltan Varga <vargaz@gmail.com>
* mini.h (MONO_INST_FAULT): New instruction flag for loads which can cause
a fault, only used by the LLVM backend.
* ir-emit.h: Add _FAULT variants of the LOAD_MEMBASE macros. Mark
OP_CHECK_THIS with OP_IMPLICIT_EXCEPTION.
* method-to-ir.c: Use the new LOAD_MEMBASE_FAULT opcodes, get rid of the
calls to MONO_EMIT_NULL_CHECK which is automatically done by the new macros.
* mini-llvm.c: Only generate volatile loads from load instructions which have
the MONO_INST_FAULT flag set.
svn path=/trunk/mono/; revision=150534
Zoltan Varga [Fri, 29 Jan 2010 03:12:24 +0000 (03:12 -0000)]
2010-01-29 Zoltan Varga <vargaz@gmail.com>
* unwind.c (mono_unwind_decode_fde): Fix the decoding of the LSDA offset on
64 bit platforms.
svn path=/trunk/mono/; revision=150533
Rolf Bjarne Kvinge [Thu, 28 Jan 2010 23:22:13 +0000 (23:22 -0000)]
2010-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
the correct thread (by using the stored SynchronizationContext).
* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
is passed to the WriteStreamClosedCallback.
svn path=/trunk/mcs/; revision=150512
Gonzalo Paniagua Javier [Thu, 28 Jan 2010 23:01:51 +0000 (23:01 -0000)]
2010-01-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
* UnmanagedMemoryStream.cs: fix a regression from my previous patch.
svn path=/trunk/mcs/; revision=150507
Marek Habersack [Thu, 28 Jan 2010 21:11:49 +0000 (21:11 -0000)]
Fix the build
svn path=/trunk/mcs/; revision=150501
Zoltan Varga [Thu, 28 Jan 2010 21:02:30 +0000 (21:02 -0000)]
Remove a debug printf.
svn path=/trunk/mono/; revision=150500
Zoltan Varga [Thu, 28 Jan 2010 20:59:58 +0000 (20:59 -0000)]
2010-01-28 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_save_seq_point_info): Fix the handling of bblocks without
sequence points. Fixes #571236.
svn path=/trunk/mono/; revision=150498
Miguel de Icaza [Thu, 28 Jan 2010 20:58:26 +0000 (20:58 -0000)]
Revert 150495 and 150496 from mini.c
svn path=/trunk/mono/; revision=150497
Zoltan Varga [Thu, 28 Jan 2010 20:53:18 +0000 (20:53 -0000)]
Revert "2010-01-28 Zoltan Varga <vargaz@gmail.com>"
This reverts commit
1db9444081b8fa80d36fe245101d95827341f5b1.
svn path=/trunk/mono/; revision=150496
Zoltan Varga [Thu, 28 Jan 2010 20:51:05 +0000 (20:51 -0000)]
2010-01-28 Zoltan Varga <vargaz@gmail.com>
* mini.c (mono_save_seq_point_info): Fix the handling of bblocks without
sequence points. Fixes #571236.
svn path=/trunk/mono/; revision=150495
Zoltan Varga [Thu, 28 Jan 2010 20:29:18 +0000 (20:29 -0000)]
Add a missing file.
svn path=/trunk/mcs/; revision=150466
Zoltan Varga [Thu, 28 Jan 2010 20:02:13 +0000 (20:02 -0000)]
2010-01-28 Zoltan Varga <vargaz@gmail.com>
* dtest.cs: Add minimal tests for assembly unloading.
svn path=/trunk/mono/; revision=150457
Zoltan Varga [Thu, 28 Jan 2010 20:02:07 +0000 (20:02 -0000)]
2010-01-28 Zoltan Varga <vargaz@gmail.com>
* debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
end of the appdomain unload process, after assemblies have been unloaded.
Fixes #574842.
svn path=/trunk/mono/; revision=150456
Zoltan Varga [Thu, 28 Jan 2010 20:02:01 +0000 (20:02 -0000)]
2010-01-28 Zoltan Varga <vargaz@gmail.com>
* domain.c (mono_domain_free): Send the END_UNLOAD profiler event before
calling the JIT domain cleanup hook.
svn path=/trunk/mono/; revision=150455
Zoltan Varga [Thu, 28 Jan 2010 19:43:17 +0000 (19:43 -0000)]
2010-01-28 Zoltan Varga <vargaz@gmail.com>
* AssemblyUnloadEvent: New file.
* VirtualMachine.cs Connection.cs: Add support for assembly unload events.
svn path=/trunk/mcs/; revision=150399
Marek Safar [Thu, 28 Jan 2010 19:22:58 +0000 (19:22 -0000)]
Better exception message.
svn path=/trunk/mcs/; revision=150391
Rolf Bjarne Kvinge [Thu, 28 Jan 2010 12:05:07 +0000 (12:05 -0000)]
2010-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: The async events must be invoked on a threadpool
thread if the async method wasn't executed on the main thread, so save
the synchronization context when the async method is called, and post
the event to that synchronization context when done. This is also
required when the async methods are executed on the main thread, since
HttpWebRequest callbacks are now always executed on a threadpool thread.
svn path=/trunk/mcs/; revision=150370
Rolf Bjarne Kvinge [Thu, 28 Jan 2010 11:57:22 +0000 (11:57 -0000)]
In class/corlib/System.Reflection:
2010-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* Assembly.cs: GetSatelliteAssembly: Ask LoadSatellite to not throw
exceptions, since we ignore them anyway.
In class/corlib/System:
2010-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* AppDomain.cs: LoadSatellite: add a boolean parameter specifiying
whether we should throw on exceptions or not.
svn path=/trunk/mcs/; revision=150366
Rolf Bjarne Kvinge [Thu, 28 Jan 2010 11:57:12 +0000 (11:57 -0000)]
2010-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* TimeSpan.cs: TryParse: Handle null values to not throw ANEs.
svn path=/trunk/mcs/; revision=150365
Atsushi Eno [Thu, 28 Jan 2010 11:42:13 +0000 (11:42 -0000)]
2010-01-28 Atsushi Enomoto <atsushi@ximian.com>
* Driver.cs, MoonlightChannelBaseExtension.cs, CommandLineOptions.cs:
Now that ServiceContractGenerator generates both sync and async
methods, it has to explicitly remove sync methods from moonlight
proxies since they are not supported.
Also now we can generate sync proxies for monotouch, so
differentiate them again to support sync proxy generation (if you
don't want to generate sync methods, just use -moonlight).
svn path=/trunk/mcs/; revision=150364
Atsushi Eno [Thu, 28 Jan 2010 11:41:47 +0000 (11:41 -0000)]
2010-01-28 Atsushi Enomoto <atsushi@ximian.com>
* ServiceContractGenerator.cs : when Options.AsynchronousMethods is
specified, generate async methods *as well as* sync methods (i.e.
not exclusively).
In moonlight proxy generator (svcutil -moonlight) mode, sync
methods will be removed at svcutil itself.
This fix brings sync proxy methods back to monotouch.
* ServiceContractGeneratorTest.cs : add test for async method
generation option to generate sync methods as well.
svn path=/trunk/mcs/; revision=150363
Marek Safar [Thu, 28 Jan 2010 11:35:22 +0000 (11:35 -0000)]
2010-01-28 Marek Safar <marek.safar@gmail.com>
* decl.cs: Use only one set of modifiers.
svn path=/trunk/mcs/; revision=150362
Atsushi Eno [Thu, 28 Jan 2010 08:36:05 +0000 (08:36 -0000)]
2010-01-28 Atsushi Enomoto <atsushi@ximian.com>
* SerializationCodeGenerator.cs : generate valid code for non-
identifier names. This should fix bug #488293.
svn path=/trunk/mcs/; revision=150356
Gonzalo Paniagua Javier [Thu, 28 Jan 2010 07:08:19 +0000 (07:08 -0000)]
2010-01-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
* zlib-helper.c: no need for sync flush when compressing.
Thanks to Hin-Tak Leung.
svn path=/trunk/mono/; revision=150349
Atsushi Eno [Thu, 28 Jan 2010 05:54:20 +0000 (05:54 -0000)]
2010-01-28 Atsushi Enomoto <atsushi@ximian.com>
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
storing of zeros. Fixed bug #543332.
* XmlReaderCommonTests.cs : added test for bug #543332.
svn path=/trunk/mcs/; revision=150347
Gonzalo Paniagua Javier [Wed, 27 Jan 2010 22:40:18 +0000 (22:40 -0000)]
2010-01-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Stopwatch.cs: add new Restart().
svn path=/trunk/mcs/; revision=150317